Skip to content

Commit

Permalink
cs_themes: Enable stack switcher when navingating out the theme modules
Browse files Browse the repository at this point in the history
  • Loading branch information
anaximeno committed Jul 21, 2024
1 parent c21def1 commit e4d8ca2
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def on_module_selected(self):

self.spices = Spice_Harvester('theme', self.window)

self.sidePage.stack = SettingsStack()
self.sidePage.stack = SettingsStack() # XXX
self.sidePage.add_widget(self.sidePage.stack)

self.settings = Gio.Settings.new("org.cinnamon.desktop.interface")
Expand Down Expand Up @@ -554,6 +554,11 @@ def set_mode(self, mode, startup=False):

self.sidePage.stack.set_visible_child_full(mode, transition)

def on_navigate_out_of_module(self):
switcher_widget = Gio.Application.get_default().stack_switcher
switcher_widget.set_opacity(1.0)
switcher_widget.set_sensitive(True)

def on_color_button_clicked(self, button, variant):
print("Color button clicked")
self.activate_variant(variant)
Expand Down

0 comments on commit e4d8ca2

Please sign in to comment.