[GH-ISSUE #510] Linux GUI title bar is not dark in dark mode on Gnome #312

Closed
opened 2026-02-28 14:32:04 +03:00 by kerem · 3 comments
Owner

Originally created by @emilia-miki on GitHub (Aug 7, 2024).
Original GitHub issue: https://github.com/jpochyla/psst/issues/510

Describe the bug
On linux with GNOME as the DE, putting system appearance in dark mode and psst into dark mode in settings still keeps the title bar light.

To Reproduce
Install psst on linux with GNOME, use dark mode both in GNOME and psst.

Expected behavior
I expect the title bar to be dark, like the rest of the UI.

Screenshots
image

Environment

  • OS: NixOS on Apple Silicon, GNOME Shell 46.3.1
  • Version: commit 6c9cd3f916

Additional context
https://github.com/jpochyla/druid seems to be discontinued now, ideally it should be replaced with something that's more maintained. I didn't investigate druid much yet, maybe it uses an older version of GTK which is not configured properly on my machine. I haven't written any code in Rust since some uni projects, but if I have the time I'll try to get more info.

Originally created by @emilia-miki on GitHub (Aug 7, 2024). Original GitHub issue: https://github.com/jpochyla/psst/issues/510 **Describe the bug** On linux with GNOME as the DE, putting system appearance in dark mode and psst into dark mode in settings still keeps the title bar light. **To Reproduce** Install psst on linux with GNOME, use dark mode both in GNOME and psst. **Expected behavior** I expect the title bar to be dark, like the rest of the UI. **Screenshots** ![image](https://github.com/user-attachments/assets/8ecbfc24-3182-4e0c-9ea1-c15d57e78ecf) **Environment** - OS: NixOS on Apple Silicon, GNOME Shell 46.3.1 - Version: commit 6c9cd3f91653764b832ea5136cda04c9e0f8fe50 **Additional context** https://github.com/jpochyla/druid seems to be discontinued now, ideally it should be replaced with something that's more maintained. I didn't investigate druid much yet, maybe it uses an older version of GTK which is not configured properly on my machine. I haven't written any code in Rust since some uni projects, but if I have the time I'll try to get more info.
kerem 2026-02-28 14:32:04 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@emilia-miki commented on GitHub (Aug 8, 2024):

solved by setting environment variable GTK_THEME=Adwaita:dark

<!-- gh-comment-id:2274693789 --> @emilia-miki commented on GitHub (Aug 8, 2024): solved by setting environment variable GTK_THEME=Adwaita:dark
Author
Owner

@jacksongoode commented on GitHub (Aug 8, 2024):

Right, druid could be replaced, however the amount of work would be quite a lot and it would be nice to at least get this project into a confident bug-less state first. Is there something we can do to fix this so you don't have to set it yourself?

<!-- gh-comment-id:2274828449 --> @jacksongoode commented on GitHub (Aug 8, 2024): Right, druid could be replaced, however the amount of work would be quite a lot and it would be nice to at least get this project into a confident bug-less state first. Is there something we can do to fix this so you don't have to set it yourself?
Author
Owner

@emilia-miki commented on GitHub (Aug 8, 2024):

Right, druid could be replaced, however the amount of work would be quite a lot and it would be nice to at least get this project into a confident bug-less state first. Is there something we can do to fix this so you don't have to set it yourself?

Apparently you can't, because it's controlled by the window manager. Unless you're willing to draw a fully custom titlebar with https://docs.gtk.org/gtk3/class.HeaderBar.html, and I'm not sure if druid has some wrappers for that.

The problem is that GTK4 works correctly with both Adwaita-dark and Adwaita:dark as the theme name, but GTK3 accepts only Adwaita:dark, and my system by default used Adwaita-dark. Maybe you could add this to some FAQ or a warning log, but not much more.

<!-- gh-comment-id:2276218593 --> @emilia-miki commented on GitHub (Aug 8, 2024): > Right, druid could be replaced, however the amount of work would be quite a lot and it would be nice to at least get this project into a confident bug-less state first. Is there something we can do to fix this so you don't have to set it yourself? Apparently you can't, because it's controlled by the window manager. Unless you're willing to draw a fully custom titlebar with https://docs.gtk.org/gtk3/class.HeaderBar.html, and I'm not sure if druid has some wrappers for that. The problem is that GTK4 works correctly with both Adwaita-dark and Adwaita:dark as the theme name, but GTK3 accepts only Adwaita:dark, and my system by default used Adwaita-dark. Maybe you could add this to some FAQ or a warning log, but not much more.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/psst#312
No description provided.