Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load and use Qt application style sheets from Plover.qss file #1514

Closed
MarkoSchuetz opened this issue Mar 31, 2022 · 0 comments · Fixed by #1535
Closed

Load and use Qt application style sheets from Plover.qss file #1514

MarkoSchuetz opened this issue Mar 31, 2022 · 0 comments · Fixed by #1535

Comments

@MarkoSchuetz
Copy link
Contributor

Is your feature request related to a problem? Please describe.

A use case would be to customize Plover plugins act/look more like OSDs. Specifically, to have the word tray window displayed with a fully customized style, e.g. transparent background (can also be achieved using window rules), a different font size and foreground color than the defaults, minimizing the padding around the word list, ....

Describe the solution you'd like

A straightforward solution is to implement looking for a Qt style sheet file in default locations, defining some sensible fallback values (e,g, the ones Plover uses currently) and setting the style sheet with the QApplication:setStyleSheet() function. In principle this would be a few lines only, but I expect the error/exception/fallback handling to make up most of the lines for this change. This solution would also provide the means for users to experiment with the style sheets on this Gallery Of Qt QSS Based Styles

Describe alternatives you've considered

I've considered KWin window rules to set e.g. the window background transparency, but that only goes part of the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant