mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
background: add scale config option for clock
This commit is contained in:
@@ -257,6 +257,7 @@ Variants {
|
||||
// The clock
|
||||
Loader {
|
||||
id: clockLoader
|
||||
scale: Config.options.background.clock.scale
|
||||
active: Config.options.background.clock.show
|
||||
anchors {
|
||||
left: wallpaper.left
|
||||
|
||||
@@ -128,6 +128,7 @@ Singleton {
|
||||
property real y: -500
|
||||
property bool show: true
|
||||
property string style: "cookie" // Options: "cookie", "digital"
|
||||
property real scale: 1
|
||||
}
|
||||
property string wallpaperPath: ""
|
||||
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 {
|
||||
title: Translation.tr("Clock style")
|
||||
ConfigSelectionArray {
|
||||
|
||||
Reference in New Issue
Block a user