effitask icon indicating copy to clipboard operation
effitask copied to clipboard

Can't get dark theme to be enabled

Open maheshsundaram opened this issue 5 years ago • 2 comments

(Thanks for reporting an issue to Effitask! If you haven't already read the contributor guidelines, Please do that now, then procede to fill out the details below.)

What are the minimum necessary steps to reproduce this issue?

  1. install dependencies (debian) - apt install libgtk-3-dev
  2. git clone the repo
  3. set GTK_THEME="x:dark"
  4. make
  5. make install PREFIX=$HOME/.local
  6. set TODO_DIR, TODO_FILE, DONE_FILE
  7. run effitask

What happens?

effitask uses light theme

What were you expecting to happen?

for effitask to use the dark theme

Please paste any error or log messages here

(if long, you can link to a gist)

Any other details

I use LXQT so maybe that is part of the reason? However in src/application/widget.rs I logged out that it should be using the dark theme:

         if let Ok(theme) = std::env::var("GTK_THEME") {
+            println!("GTK_THEME {}", theme);
             if theme.ends_with(":dark") {
+                println!("should use dark theme!");
                 stylesheet = "style_dark.css";
             }
 $ effitask 
GTK_THEME x:dark
should use dark theme!

maheshsundaram avatar Dec 29 '20 21:12 maheshsundaram

Can you post a screenshot?

The dark stylesheet is small and only adjust background colors. The other changes are made by the theme itself.

sanpii avatar Dec 29 '20 22:12 sanpii

@sanpii Aha I see, I didn't realize. effitask

maheshsundaram avatar Dec 29 '20 22:12 maheshsundaram