1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-27 06:52:50 -05:00

desktop clock: general scaling and stylng fixes for digital variant

This commit is contained in:
bbedward
2026-01-25 13:30:11 -05:00
parent f7df3b2a68
commit 832807a217
3 changed files with 226 additions and 110 deletions

View File

@@ -73,6 +73,17 @@ Column {
onToggled: checked => root.updateConfig("showAnalogSeconds", checked)
}
SettingsDivider {
visible: cfg.style === "digital" || cfg.style === "stacked"
}
SettingsToggleRow {
visible: cfg.style === "digital" || cfg.style === "stacked"
text: I18n.tr("Show Seconds")
checked: cfg.showDigitalSeconds ?? false
onToggled: checked => root.updateConfig("showDigitalSeconds", checked)
}
SettingsDivider {}
SettingsToggleRow {

View File

@@ -164,8 +164,7 @@ Item {
detection[item.id] = item.detected;
}
themeColorsTab.templateDetection = detection;
} catch (e) {
}
} catch (e) {}
}
}
}
@@ -1028,8 +1027,14 @@ Item {
height: 45
anchors.horizontalCenter: parent.horizontalCenter
model: [
{ "text": "Time", "icon": "access_time" },
{ "text": "Location", "icon": "place" }
{
"text": "Time",
"icon": "access_time"
},
{
"text": "Location",
"icon": "place"
}
]
Component.onCompleted: {
@@ -1104,7 +1109,8 @@ Item {
currentValue: SessionData.themeModeStartHour.toString()
options: {
var hours = [];
for (var i = 0; i < 24; i++) hours.push(i.toString());
for (var i = 0; i < 24; i++)
hours.push(i.toString());
return hours;
}
onValueChanged: value => {
@@ -1145,7 +1151,8 @@ Item {
currentValue: SessionData.themeModeEndHour.toString()
options: {
var hours = [];
for (var i = 0; i < 24; i++) hours.push(i.toString());
for (var i = 0; i < 24; i++)
hours.push(i.toString());
return hours;
}
onValueChanged: value => {
@@ -1356,7 +1363,7 @@ Item {
DankIcon {
name: SessionData.isLightMode ? "light_mode" : "dark_mode"
size: Theme.iconSizeMedium
size: Theme.iconSize
color: SessionData.isLightMode ? "#FFA726" : "#7E57C2"
anchors.verticalCenter: parent.verticalCenter
}
@@ -1392,7 +1399,7 @@ Item {
DankIcon {
name: "schedule"
size: Theme.iconSizeMedium
size: Theme.iconSize
color: Theme.primary
anchors.verticalCenter: parent.verticalCenter
}