1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

update descriptions

This commit is contained in:
bbedward
2025-09-17 15:09:37 -04:00
parent 6c81aa0908
commit 38c4b33d15
2 changed files with 15 additions and 10 deletions

View File

@@ -19,6 +19,7 @@ Singleton {
property bool isLightMode: false
readonly property string dynamic: "dynamic"
readonly property string custom : "custom"
readonly property string homeDir: Paths.strip(StandardPaths.writableLocation(StandardPaths.HomeLocation))
readonly property string configDir: Paths.strip(StandardPaths.writableLocation(StandardPaths.ConfigLocation))
@@ -208,11 +209,11 @@ Singleton {
function switchTheme(themeName, savePrefs = true) {
if (themeName === dynamic) {
currentTheme = dynamic
currentThemeCategory = "dynamic"
currentThemeCategory = dynamic
extractColors()
} else if (themeName === "custom") {
currentTheme = "custom"
currentThemeCategory = "custom"
} else if (themeName === custom) {
currentTheme = custom
currentThemeCategory = custom
if (typeof SettingsData !== "undefined" && SettingsData.customThemeFile) {
loadCustomThemeFromFile(SettingsData.customThemeFile)
}

View File

@@ -161,12 +161,16 @@ Item {
StyledText {
text: {
if (Theme.currentTheme === Theme.dynamic)
return "Wallpaper-based dynamic colors"
else if (Theme.currentThemeCategory === "catppuccin")
return "Soothing pastel theme inspired by Catppuccin"
else
return "Material Design inspired color themes"
if (Theme.currentTheme === Theme.dynamic) {
return "Material colors generated from wallpaper"
}
if (Theme.currentThemeCategory === "catppuccin") {
return "Soothing pastel theme based on Catppuccin"
}
if (Theme.currentTheme === Theme.custom) {
return "Custom theme loaded from JSON file"
}
return "Material Design inspired color themes"
}
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText