summaryrefslogtreecommitdiff
path: root/modules/bar/components
diff options
context:
space:
mode:
Diffstat (limited to 'modules/bar/components')
-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 {