theme switch
This commit is contained in:
@@ -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()),
|
||||
|
||||
Reference in New Issue
Block a user