summaryrefslogtreecommitdiff
path: root/modules/bar
diff options
context:
space:
mode:
authorBruno Inec <contact@sweenu.xyz>2025-08-27 07:58:54 +0200
committerGitHub <noreply@github.com>2025-08-27 15:58:54 +1000
commitfc3b08f6cb70ed4aa90aa25a485472c876033b2a (patch)
treeca3bee2a9590803adea7bd1d93c3abc1b2bfd080 /modules/bar
parentosd: add mic volume (diff)
downloadcaelestia-shell-fc3b08f6cb70ed4aa90aa25a485472c876033b2a.tar.gz
caelestia-shell-fc3b08f6cb70ed4aa90aa25a485472c876033b2a.tar.bz2
caelestia-shell-fc3b08f6cb70ed4aa90aa25a485472c876033b2a.zip
bar/clock: allow hiding icon (#484)
* bar(clock): allow hiding the calendar icon * loader + showCalendarIcon -> showIcon --------- Co-authored-by: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Diffstat (limited to 'modules/bar')
-rw-r--r--modules/bar/components/Clock.qml16
1 files changed, 11 insertions, 5 deletions
diff --git a/modules/bar/components/Clock.qml b/modules/bar/components/Clock.qml
index 46f0e47..be29c0b 100644
--- a/modules/bar/components/Clock.qml
+++ b/modules/bar/components/Clock.qml
@@ -1,3 +1,5 @@
+pragma ComponentBehavior: Bound
+
import qs.components
import qs.services
import qs.config
@@ -10,13 +12,17 @@ Column {
spacing: Appearance.spacing.small
- MaterialIcon {
- id: icon
+ Loader {
+ anchors.horizontalCenter: parent.horizontalCenter
- text: "calendar_month"
- color: root.colour
+ active: Config.bar.clock.showIcon
+ visible: active
+ asynchronous: true
- anchors.horizontalCenter: parent.horizontalCenter
+ sourceComponent: MaterialIcon {
+ text: "calendar_month"
+ color: root.colour
+ }
}
StyledText {