Skip to content

Commit

Permalink
Lighter background for light theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Faugus authored Dec 12, 2024
1 parent a829223 commit ea8d8a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion faugus-launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ def __init__(self):
def check_theme(self):
settings = Gtk.Settings.get_default()
prefer_dark = settings.get_property('gtk-application-prefer-dark-theme')
if prefer_dark:
output = subprocess.check_output(['gsettings', 'get', 'org.gnome.desktop.interface', 'gtk-theme']).decode('utf-8')
theme = output.strip().strip("'")
if prefer_dark or 'dark' in theme:
self.theme = "hbox-dark-background"
else:
self.theme = "hbox-light-background"
Expand Down

0 comments on commit ea8d8a3

Please sign in to comment.