frontend: Make property step_id public

main
mirkobrombin 2 years ago
parent 70b5c41922
commit bc293a12b7

@ -38,6 +38,10 @@ class VanillaDefaultTheme(Gtk.Box):
self.btn_default.connect('toggled', self.__set_theme, "light") self.btn_default.connect('toggled', self.__set_theme, "light")
self.btn_dark.connect('toggled', self.__set_theme, "dark") self.btn_dark.connect('toggled', self.__set_theme, "dark")
@property
def step_id(self):
return self.__key
def __build_ui(self): def __build_ui(self):
self.btn_dark.set_group(self.btn_default) self.btn_dark.set_group(self.btn_default)

@ -80,6 +80,10 @@ class VanillaDefaultWelcome(Adw.Bin):
# set distro logo # set distro logo
self.status_page.set_icon_name(self.__distro_info["logo"]) self.status_page.set_icon_name(self.__distro_info["logo"])
@property
def step_id(self):
return self.__key
def __start_welcome_animation(self): def __start_welcome_animation(self):
def change_langs(): def change_langs():
while True: while True:

@ -39,6 +39,10 @@ class VanillaLayoutApplications(Adw.Bin):
# signals # signals
self.btn_next.connect("clicked", self.__next_step) self.btn_next.connect("clicked", self.__next_step)
@property
def step_id(self):
return self.__key
def __build_ui(self): def __build_ui(self):
self.status_page.set_icon_name(self.__step["icon"]) self.status_page.set_icon_name(self.__step["icon"])
self.status_page.set_title(self.__step["title"]) self.status_page.set_title(self.__step["title"])
@ -47,12 +51,12 @@ class VanillaLayoutApplications(Adw.Bin):
def present_customize(widget, dialog): def present_customize(widget, dialog):
dialog.show() dialog.show()
print(self.__window.builder.get_temp_finals("packages"))
def close_customize(widget, dialog): def close_customize(widget, dialog):
dialog.hide() dialog.hide()
for item in self.__step["bundles"]: for item in self.__step["bundles"]:
_selection_dialog = VanillaDialog( _selection_dialog = VanillaDialog(
self.__window, self.__window,
"Select Applications", "Select Applications",

@ -39,6 +39,10 @@ class VanillaLayoutPreferences(Adw.Bin):
# signals # signals
self.btn_next.connect("clicked", self.__next_step) self.btn_next.connect("clicked", self.__next_step)
@property
def step_id(self):
return self.__key
def __build_ui(self): def __build_ui(self):
self.status_page.set_icon_name(self.__step["icon"]) self.status_page.set_icon_name(self.__step["icon"])
self.status_page.set_title(self.__step["title"]) self.status_page.set_title(self.__step["title"])

@ -44,6 +44,10 @@ class VanillaLayoutYesNo(Adw.Bin):
self.btn_no.connect("clicked", self.__on_response, False) self.btn_no.connect("clicked", self.__on_response, False)
self.btn_info.connect("clicked", self.__on_info) self.btn_info.connect("clicked", self.__on_info)
@property
def step_id(self):
return self.__key
def __build_ui(self): def __build_ui(self):
self.status_page.set_icon_name(self.__step["icon"]) self.status_page.set_icon_name(self.__step["icon"])
self.status_page.set_title(self.__step["title"]) self.status_page.set_title(self.__step["title"])

Loading…
Cancel
Save