sanpii / effitask

Graphical task manager, based on the todo.txt format.
MIT License
225 stars 15 forks source link

Can't get dark theme to be enabled #76

Open maheshsundaram opened 3 years ago

maheshsundaram commented 3 years ago

(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!
sanpii commented 3 years ago

Can you post a screenshot?

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

maheshsundaram commented 3 years ago

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