Rename themes
This commit is contained in:
parent
7c83041f6c
commit
264c2ab16b
|
@ -251,6 +251,7 @@ class Backend:
|
||||||
ui_state = await self.ui_state.read()
|
ui_state = await self.ui_state.read()
|
||||||
history = await self.history.read()
|
history = await self.history.read()
|
||||||
theme = await Theme(self, settings["theme"]).read()
|
theme = await Theme(self, settings["theme"]).read()
|
||||||
|
print(theme)
|
||||||
|
|
||||||
return (settings, ui_state, history, theme)
|
return (settings, ui_state, history, theme)
|
||||||
|
|
||||||
|
|
|
@ -193,7 +193,7 @@ class UISettings(JSONDataFile):
|
||||||
"alertOnMessageForMsec": 4000,
|
"alertOnMessageForMsec": 4000,
|
||||||
"clearRoomFilterOnEnter": True,
|
"clearRoomFilterOnEnter": True,
|
||||||
"clearRoomFilterOnEscape": True,
|
"clearRoomFilterOnEscape": True,
|
||||||
"theme": "Default.qpl",
|
"theme": "Midnight.qpl",
|
||||||
"writeAliases": {},
|
"writeAliases": {},
|
||||||
"media": {
|
"media": {
|
||||||
"autoLoad": True,
|
"autoLoad": True,
|
||||||
|
@ -284,7 +284,7 @@ class Theme(DataFile):
|
||||||
|
|
||||||
|
|
||||||
async def default_data(self) -> str:
|
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()
|
return await file.read()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user