1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 13:32:50 -05:00

show file path on custom theme tooltip

This commit is contained in:
bbedward
2025-08-20 22:36:53 -04:00
parent e3ba365d39
commit 5faf972890
2 changed files with 18 additions and 3 deletions

View File

@@ -528,11 +528,16 @@ Item {
anchors.bottom: parent.top anchors.bottom: parent.top
anchors.bottomMargin: Theme.spacingS anchors.bottomMargin: Theme.spacingS
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
visible: customMouseArea.containsMouse && (Theme.currentThemeName !== "custom") visible: customMouseArea.containsMouse
StyledText { StyledText {
id: customTooltipText id: customTooltipText
text: "Load custom theme from JSON file" text: {
if (Theme.currentThemeName === "custom")
return SettingsData.customThemeFile || "Custom theme loaded"
else
return "Load custom theme from JSON file"
}
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText color: Theme.surfaceText
anchors.centerIn: parent anchors.centerIn: parent

View File

@@ -55,7 +55,17 @@ These are the essential colors that define your theme's appearance:
} }
``` ```
You can the colors at the top level if you do not want "dark" and "light" variants. You can define colors at the top level if you do not want "dark" and "light" variants.
For example:
```json
{
"name": "Theme name",
"primary": "#eeeeee",
....
}
```
## Example Themes ## Example Themes