From 264c2ab16bbacc0d75efcafef501c64d6407e40a Mon Sep 17 00:00:00 2001 From: miruka Date: Tue, 10 Mar 2020 09:48:51 -0400 Subject: [PATCH] Rename themes --- src/backend/backend.py | 1 + src/backend/user_files.py | 4 ++-- src/themes/{Default.qpl => Midnight.qpl} | 0 3 files changed, 3 insertions(+), 2 deletions(-) rename src/themes/{Default.qpl => Midnight.qpl} (100%) diff --git a/src/backend/backend.py b/src/backend/backend.py index c344f531..4ae42dd9 100644 --- a/src/backend/backend.py +++ b/src/backend/backend.py @@ -251,6 +251,7 @@ class Backend: ui_state = await self.ui_state.read() history = await self.history.read() theme = await Theme(self, settings["theme"]).read() + print(theme) return (settings, ui_state, history, theme) diff --git a/src/backend/user_files.py b/src/backend/user_files.py index 5844df3c..d6b60bf6 100644 --- a/src/backend/user_files.py +++ b/src/backend/user_files.py @@ -193,7 +193,7 @@ class UISettings(JSONDataFile): "alertOnMessageForMsec": 4000, "clearRoomFilterOnEnter": True, "clearRoomFilterOnEscape": True, - "theme": "Default.qpl", + "theme": "Midnight.qpl", "writeAliases": {}, "media": { "autoLoad": True, @@ -284,7 +284,7 @@ class Theme(DataFile): async def default_data(self) -> str: - async with aiofiles.open("src/themes/Default.qpl") as file: + async with aiofiles.open("src/themes/Midnight.qpl") as file: return await file.read() diff --git a/src/themes/Default.qpl b/src/themes/Midnight.qpl similarity index 100% rename from src/themes/Default.qpl rename to src/themes/Midnight.qpl