mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-07-08 03:57:48 +00:00
add automatic color choice for monet
This commit is contained in:
parent
8f2b40d01f
commit
9f222bd06e
|
@ -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 = {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue