forked from Shinonome/dots-hyprland
add option to not animate digital bg clock (closes #2055)
This commit is contained in:
@@ -445,7 +445,7 @@ Variants {
|
|||||||
color: bgRoot.colText
|
color: bgRoot.colText
|
||||||
style: Text.Raised
|
style: Text.Raised
|
||||||
styleColor: Appearance.colors.colShadow
|
styleColor: Appearance.colors.colShadow
|
||||||
animateChange: true
|
animateChange: Config.options.background.clock.digital.animateChange
|
||||||
}
|
}
|
||||||
component ClockStatusText: Row {
|
component ClockStatusText: Row {
|
||||||
id: statusTextRow
|
id: statusTextRow
|
||||||
|
|||||||
@@ -165,6 +165,9 @@ Singleton {
|
|||||||
property bool dateInClock: true
|
property bool dateInClock: true
|
||||||
property bool constantlyRotate: false
|
property bool constantlyRotate: false
|
||||||
}
|
}
|
||||||
|
property JsonObject digital: JsonObject {
|
||||||
|
property bool animateChange: true
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
property string wallpaperPath: ""
|
property string wallpaperPath: ""
|
||||||
|
|||||||
@@ -55,6 +55,20 @@ ContentPage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ContentSubsection {
|
||||||
|
visible: Config.options.background.clock.style === "digital"
|
||||||
|
title: Translation.tr("Digital clock settings")
|
||||||
|
|
||||||
|
ConfigSwitch {
|
||||||
|
buttonIcon: "animation"
|
||||||
|
text: Translation.tr("Animate time change")
|
||||||
|
checked: Config.options.background.clock.digital.animateChange
|
||||||
|
onCheckedChanged: {
|
||||||
|
Config.options.background.clock.digital.animateChange = checked;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ContentSubsection {
|
ContentSubsection {
|
||||||
visible: Config.options.background.clock.style === "cookie"
|
visible: Config.options.background.clock.style === "cookie"
|
||||||
title: Translation.tr("Cookie clock settings")
|
title: Translation.tr("Cookie clock settings")
|
||||||
|
|||||||
Reference in New Issue
Block a user