theme switch

This commit is contained in:
BarsTiger
2022-05-29 15:36:08 +03:00
parent 8bc4397805
commit 41523cd1c5
6 changed files with 330 additions and 291 deletions

View File

@@ -25,6 +25,7 @@ def t_popup(title, text, style=0):
def fill_settings(ui) -> None:
settings = Settings.get_settings()
ui.chooseAnimationBox.setCurrentText(settings.get("animation"))
ui.chooseThemeBox.setCurrentText(settings.get("theme"))
ui.pusher_app_id_edit.setText(settings.get("app_id"))
ui.pusher_key_edit.setText(settings.get("key"))
ui.pusher_secret_edit.setText(settings.get("secret"))
@@ -37,6 +38,7 @@ def update_settings(ui) -> None:
settings = {
"animation": get_text(ui.chooseAnimationBox.currentText()),
"theme": get_text(ui.chooseThemeBox.currentText()),
"app_id": get_text(ui.pusher_app_id_edit.text().strip()),
"key": get_text(ui.pusher_key_edit.text().strip()),
"secret": get_text(ui.pusher_secret_edit.text().strip()),