mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-30 00:12:50 -05:00
update descriptions
This commit is contained in:
@@ -19,6 +19,7 @@ Singleton {
|
|||||||
property bool isLightMode: false
|
property bool isLightMode: false
|
||||||
|
|
||||||
readonly property string dynamic: "dynamic"
|
readonly property string dynamic: "dynamic"
|
||||||
|
readonly property string custom : "custom"
|
||||||
|
|
||||||
readonly property string homeDir: Paths.strip(StandardPaths.writableLocation(StandardPaths.HomeLocation))
|
readonly property string homeDir: Paths.strip(StandardPaths.writableLocation(StandardPaths.HomeLocation))
|
||||||
readonly property string configDir: Paths.strip(StandardPaths.writableLocation(StandardPaths.ConfigLocation))
|
readonly property string configDir: Paths.strip(StandardPaths.writableLocation(StandardPaths.ConfigLocation))
|
||||||
@@ -208,11 +209,11 @@ Singleton {
|
|||||||
function switchTheme(themeName, savePrefs = true) {
|
function switchTheme(themeName, savePrefs = true) {
|
||||||
if (themeName === dynamic) {
|
if (themeName === dynamic) {
|
||||||
currentTheme = dynamic
|
currentTheme = dynamic
|
||||||
currentThemeCategory = "dynamic"
|
currentThemeCategory = dynamic
|
||||||
extractColors()
|
extractColors()
|
||||||
} else if (themeName === "custom") {
|
} else if (themeName === custom) {
|
||||||
currentTheme = "custom"
|
currentTheme = custom
|
||||||
currentThemeCategory = "custom"
|
currentThemeCategory = custom
|
||||||
if (typeof SettingsData !== "undefined" && SettingsData.customThemeFile) {
|
if (typeof SettingsData !== "undefined" && SettingsData.customThemeFile) {
|
||||||
loadCustomThemeFromFile(SettingsData.customThemeFile)
|
loadCustomThemeFromFile(SettingsData.customThemeFile)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -161,12 +161,16 @@ Item {
|
|||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: {
|
text: {
|
||||||
if (Theme.currentTheme === Theme.dynamic)
|
if (Theme.currentTheme === Theme.dynamic) {
|
||||||
return "Wallpaper-based dynamic colors"
|
return "Material colors generated from wallpaper"
|
||||||
else if (Theme.currentThemeCategory === "catppuccin")
|
}
|
||||||
return "Soothing pastel theme inspired by Catppuccin"
|
if (Theme.currentThemeCategory === "catppuccin") {
|
||||||
else
|
return "Soothing pastel theme based on Catppuccin"
|
||||||
return "Material Design inspired color themes"
|
}
|
||||||
|
if (Theme.currentTheme === Theme.custom) {
|
||||||
|
return "Custom theme loaded from JSON file"
|
||||||
|
}
|
||||||
|
return "Material Design inspired color themes"
|
||||||
}
|
}
|
||||||
font.pixelSize: Theme.fontSizeSmall
|
font.pixelSize: Theme.fontSizeSmall
|
||||||
color: Theme.surfaceVariantText
|
color: Theme.surfaceVariantText
|
||||||
|
|||||||
Reference in New Issue
Block a user