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

Inspect GUI to be able to make useful Advanced Interface Style Sheet (CSS) #1744

Open
jabcreations opened this issue Jan 14, 2023 · 2 comments

Comments

@jabcreations
Copy link

How do I use the inspector to inspect the GUI itself instead of the current tab's website DOM?

I use dark mode and want to customize the GUI's colors a bit. Adding * {color: #fff;} to a CSS file helps though breaks things like the back/forward buttons (I always use icon with text on side for button customization).

@Emdek
Copy link
Member

Emdek commented Jan 30, 2023

@jabcreations, you mean the browser UI?
See this:
https://doc.qt.io/qt-5/stylesheet-reference.html
There is an option to set such stylesheet, and there is some initial groundwork for defining custom color palettes (obviously with predefined dark / inverted one) for the UI too, but got stalled due to lack of feedback.

@jabcreations
Copy link
Author

Okay, I'd be happy to provide feedback though I'd need some ideas. I am very particular about how I want the GUI of any given browser to be.

I did get QToolBar {background-color: #f0f !important;} to work though only with the "Fusion" widget style. Setting max-height: 24px !important did not result in any changes. Waterfox Classic and Vivaldi can have their browser GUI DOM inspected and thus customized albeit anything Gecko is an HTML/CSS nightmare; Vivaldi's code isn't too atrocious.

Okay...so I can edit my style sheet and switch between Fusion, another theme and then back to Fusion to avoid having to restart the browser to apply updated styles. I updated the CSS selector to QToolBar, QStatusBar and now the status bar is also fuschia.

When I set the toolbars background-color to black the icons disappear ... and I'm having a little trouble. I attempted to use QStatusBar * {filter: invert(1);} to reverse the color/background without success, I'm not sure how to change the icon appearance otherwise. Having a DOM inspector for the browser's GUI would help tremendously.

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

No branches or pull requests

2 participants