patch: expended theme to include auto.
This commit is contained in:
parent
97370a13af
commit
2c4f7f6b2e
2 changed files with 4 additions and 4 deletions
|
@ -529,7 +529,7 @@ class SettingsWindow(QMainWindow, Ui_Settings_Window):
|
|||
# Connect buttons to functions
|
||||
self.ui.check_for_update_Button.clicked.connect(self.check_for_updates)
|
||||
self.ui.update_and_restart_Button.clicked.connect(self.update_and_restart)
|
||||
self.ui.label_last_check_2.setText(self.time_to_string(self.ol35_last_state[0]))
|
||||
self.ui.label_last_check.setText(f"Last check: {self.time_to_string(self.ol35_last_state[0])}")
|
||||
self.ui.dev_widget.setVisible(False)
|
||||
|
||||
# Timer for long press detection
|
||||
|
@ -753,7 +753,7 @@ class SettingsWindow(QMainWindow, Ui_Settings_Window):
|
|||
self.ui.update_and_restart_Button.setEnabled(True)
|
||||
|
||||
last_date = self.time_to_string(self.ppu_ol35.get_last_state()[0])
|
||||
self.ui.label_last_check_2.setText(last_date)
|
||||
self.ui.label_last_check.setText(f"Last check: {last_date}")
|
||||
self.ui.label_latest_version.setText("Online version")
|
||||
self.ui.check_for_update_Button.setEnabled(True)
|
||||
|
||||
|
@ -985,7 +985,7 @@ def main():
|
|||
app_settings["theme"]["theme_pkg"] = False
|
||||
|
||||
if app_settings["theme"]["use_custom_theme"] and app_settings["theme"]["theme_pkg"]:
|
||||
app.setStyleSheet(qdarktheme.load_stylesheet(app_settings["theme"]["mode"].lower()))
|
||||
qdarktheme.setup_theme(app_settings["theme"]["mode"].lower())
|
||||
|
||||
u.save_settings(app_settings)
|
||||
del u
|
||||
|
|
|
@ -99,7 +99,7 @@ class Utilities:
|
|||
"theme": {
|
||||
"theme_pkg": False,
|
||||
"use_custom_theme": False,
|
||||
"mode": "Dark"
|
||||
"mode": "Auto"
|
||||
}
|
||||
}
|
||||
self.write_yaml(self.settings_path, settings)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue