Add support for dark theme welcome window

This commit is contained in:
Veronica Berglyd Olsen
2023-12-30 17:23:43 +01:00
parent 05e9729c22
commit df95cd85e8
5 changed files with 7 additions and 10 deletions
+2 -3
View File
@@ -255,9 +255,8 @@ class GuiTheme:
backLNess = backCol.lightnessF()
textLNess = textCol.lightnessF()
self.isLightTheme = backLNess > textLNess
if self.helpText == [0, 0, 0]:
self.isLightTheme = backLNess > textLNess
if self.isLightTheme:
helpLCol = textLNess + 0.35*(backLNess - textLNess)
else:
@@ -487,7 +486,7 @@ class GuiIcons:
}
IMAGE_MAP: dict[str, tuple[str, str]] = {
"welcome": ("welcome.jpg", "welcome.jpg"),
"welcome": ("welcome-light.jpg", "welcome-dark.jpg"),
"nw-text": ("novelwriter-text-light.svg", "novelwriter-text-dark.svg"),
}