frontend: Make property step_id public

main
mirkobrombin 2 years ago
parent 70b5c41922
commit bc293a12b7

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

@ -79,6 +79,10 @@ class VanillaDefaultWelcome(Adw.Bin):
# set distro 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 change_langs():

@ -38,6 +38,10 @@ class VanillaLayoutApplications(Adw.Bin):
# signals
self.btn_next.connect("clicked", self.__next_step)
@property
def step_id(self):
return self.__key
def __build_ui(self):
self.status_page.set_icon_name(self.__step["icon"])
@ -46,13 +50,13 @@ class VanillaLayoutApplications(Adw.Bin):
selection_dialogs = []
def present_customize(widget, dialog):
dialog.show()
dialog.show()
print(self.__window.builder.get_temp_finals("packages"))
def close_customize(widget, dialog):
dialog.hide()
for item in self.__step["bundles"]:
_selection_dialog = VanillaDialog(
self.__window,
"Select Applications",
@ -104,8 +108,8 @@ class VanillaLayoutApplications(Adw.Bin):
for app in item["applications"]:
_apps_action_row = Adw.ActionRow(
title=app["name"],
icon_name=app["icon"]
title=app["name"],
icon_name=app["icon"]
)
_app_switcher = Gtk.Switch()
_app_switcher.set_active(True)

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

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

Loading…
Cancel
Save