more ui stuff

This commit is contained in:
SpookyDervish
2025-10-30 07:53:19 +11:00
parent 4f23e7570c
commit f6cfc7c630
4 changed files with 27 additions and 6 deletions

View File

@@ -28,7 +28,6 @@ class ConfigHandler:
def apply_settings(self):
self.app.query_one("#code-editor").soft_wrap = bool(int(self.get("editor", "word_wrap")))
self.app.theme = self.get("appearance", "colour_theme")
self.app.notify(self.get("appearance", "colour_theme"))
def write_settings(self):
with open(self.config_dir / "config.ini", "w") as configfile:
@@ -46,7 +45,9 @@ class ConfigHandler:
"word_wrap": "0"
}
self.config["plugins"] = {
"enabled": "1"
"enabled": "1",
"log": "1",
"log_timeout": "10"
}
self.config["appearance"] = {
"colour_theme": "textual-dark"