add automatic color choice for monet

This commit is contained in:
0xMRTT 2022-08-11 16:37:03 +02:00
parent 8f2b40d01f
commit 9f222bd06e
No known key found for this signature in database
GPG key ID: AC9E06BF3DECB6FB
2 changed files with 7 additions and 1 deletions

View file

@ -243,7 +243,12 @@ class AdwcustomizerApplication(Adw.Application):
print(monet_theme)
print(theme)
if monet_theme == "automatic":
if self.style_manager.get_dark():
monet_theme = "dark"
else:
monet_theme = "light"
if monet_theme == "dark":
dark_theme = theme["schemes"]["dark"]
variable = {

View file

@ -144,6 +144,7 @@ class AdwcustomizerMainWindow(Adw.ApplicationWindow):
self.monet_theme_row.set_title(_("Theme"))
store = Gtk.StringList()
store.append("Automatic")
store.append("Dark")
store.append("Light")
self.monet_theme_row.set_model(store)