-
Notifications
You must be signed in to change notification settings - Fork 168
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
Detect dark GTK theme changes at runtime to adjust background/highlight colors automatically #150
Comments
This might not hang as low as we thought. Neither tree views nor text view tags can be styled with CSS. |
I'm not 110% sure how it works these days anymore because somewhere in recent years GTK changed from having the notion of a theme's "dark variant" property/switch to having entirely separate dark themes (Adwaita and Adwaita-dark). What does it look like when you use the Adwaita-dark theme (that you can set in gnome-tweak-tool)? At least in 0.3.x (which is GTK2) it looks 100% fine, both in the main window (treeviews) and the task editor windows, so I assumed it would also work that way in the GTK3 version? |
Hmm you are right, I actually tested it and it's that big of a problem. The only things that look bad are the tasks with colored backgrounds and task titles. The first can be fixed by forcing a darker type color, the second can be fixed in the #235 branch |
Tested out the current git version on Ubuntu 20.04 (Ubuntu being my benchmark for "will downstream break our UI" ;) with both the Yaru dark theme and Adwaita dark, and GTG works "fine".
Shouldn't be too hard to fix the "MOSTLY WORKING" and "NOT WORKING" issues mentioned above if someone is interested in playing with the code to have it support theme changes detection. |
hey so I just installed the application via popos app store as a flatpack but I haven't come across the option to change to dark theme is there a plugin for it? |
@Xanaxus @johannesgunnar Hey guys, sorry for not responding. Master has a dark mode toggle now that sets up (almost) everything correctly. It's still missing some color changes in the text editor, that will have to wait until the taskview branch lands. |
Interesting, though I have to ask, why would it have a dark mode switch/setting, vs just autodetecting system theme changes? |
We need to have a switch somewhere so we can change colors that aren't affected by CSS. We could remove the switch from the GUI, but AFAIK Gnome doesn't have a way to set a global dark mode yet. You can change the theme using Tweaks but I don't think that's detectable via Gtk. |
Spiritual successor: issue #608 |
As described in this blogpost, it would be really nice to have a support for black Gtk theme. (GEdit has the black theme as well).
The text was updated successfully, but these errors were encountered: