forked from Shinonome/dots-hyprland
add setting to show/hide the clock in background
This commit is contained in:
@@ -217,6 +217,7 @@ Variants {
|
|||||||
// The clock
|
// The clock
|
||||||
Item {
|
Item {
|
||||||
id: clock
|
id: clock
|
||||||
|
visible: Config.options.background.show_clock
|
||||||
anchors {
|
anchors {
|
||||||
left: wallpaper.left
|
left: wallpaper.left
|
||||||
top: wallpaper.top
|
top: wallpaper.top
|
||||||
|
|||||||
@@ -119,6 +119,7 @@ Singleton {
|
|||||||
property bool fixedClockPosition: false
|
property bool fixedClockPosition: false
|
||||||
property real clockX: -500
|
property real clockX: -500
|
||||||
property real clockY: -500
|
property real clockY: -500
|
||||||
|
property bool show_clock: true
|
||||||
property string wallpaperPath: ""
|
property string wallpaperPath: ""
|
||||||
property string thumbnailPath: ""
|
property string thumbnailPath: ""
|
||||||
property JsonObject parallax: JsonObject {
|
property JsonObject parallax: JsonObject {
|
||||||
|
|||||||
@@ -624,4 +624,16 @@ ContentPage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ContentSection {
|
||||||
|
title: Translation.tr("Background")
|
||||||
|
|
||||||
|
ConfigSwitch {
|
||||||
|
text: Translation.tr("Show clock")
|
||||||
|
checked: Config.options.background.show_clock
|
||||||
|
onCheckedChanged: {
|
||||||
|
Config.options.background.show_clock = checked;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user