forked from Shinonome/dots-hyprland
background: add scale config option for clock
This commit is contained in:
@@ -257,6 +257,7 @@ Variants {
|
|||||||
// The clock
|
// The clock
|
||||||
Loader {
|
Loader {
|
||||||
id: clockLoader
|
id: clockLoader
|
||||||
|
scale: Config.options.background.clock.scale
|
||||||
active: Config.options.background.clock.show
|
active: Config.options.background.clock.show
|
||||||
anchors {
|
anchors {
|
||||||
left: wallpaper.left
|
left: wallpaper.left
|
||||||
|
|||||||
@@ -128,6 +128,7 @@ Singleton {
|
|||||||
property real y: -500
|
property real y: -500
|
||||||
property bool show: true
|
property bool show: true
|
||||||
property string style: "cookie" // Options: "cookie", "digital"
|
property string style: "cookie" // Options: "cookie", "digital"
|
||||||
|
property real scale: 1
|
||||||
}
|
}
|
||||||
property string wallpaperPath: ""
|
property string wallpaperPath: ""
|
||||||
property string thumbnailPath: ""
|
property string thumbnailPath: ""
|
||||||
|
|||||||
@@ -20,6 +20,17 @@ ContentPage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ConfigSpinBox {
|
||||||
|
text: Translation.tr("Scale (%)")
|
||||||
|
value: Config.options.background.clock.scale * 100
|
||||||
|
from: 1
|
||||||
|
to: 200
|
||||||
|
stepSize: 2
|
||||||
|
onValueChanged: {
|
||||||
|
Config.options.background.clock.scale = value / 100;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ContentSubsection {
|
ContentSubsection {
|
||||||
title: Translation.tr("Clock style")
|
title: Translation.tr("Clock style")
|
||||||
ConfigSelectionArray {
|
ConfigSelectionArray {
|
||||||
|
|||||||
Reference in New Issue
Block a user