summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/shell/quickshell/Clock.qml
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/Clock.qml')
-rw-r--r--accounts/gkleen@sif/shell/quickshell/Clock.qml23
1 files changed, 17 insertions, 6 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/Clock.qml b/accounts/gkleen@sif/shell/quickshell/Clock.qml
index 4644d5e7..b7004528 100644
--- a/accounts/gkleen@sif/shell/quickshell/Clock.qml
+++ b/accounts/gkleen@sif/shell/quickshell/Clock.qml
@@ -73,11 +73,15 @@ Item {
73 Timer { 73 Timer {
74 id: hangTimer 74 id: hangTimer
75 interval: 100 75 interval: 100
76 onTriggered: tooltip.visible = tooltip.nextVisible 76 onTriggered: {
77 tooltip.visible = tooltip.nextVisible;
78 if (!tooltip.visible)
79 tooltipLoader.active = false;
80 }
77 } 81 }
78 82
79 implicitWidth: clockTooltipContent.width 83 implicitWidth: tooltipLayout.childrenRect.width + 16
80 implicitHeight: clockTooltipContent.height 84 implicitHeight: tooltipLayout.childrenRect.height + 16
81 color: "black" 85 color: "black"
82 86
83 onVisibleChanged: { 87 onVisibleChanged: {
@@ -95,13 +99,20 @@ Item {
95 99
96 anchors.fill: parent 100 anchors.fill: parent
97 101
98 WrapperItem { 102 Item {
99 id: clockTooltipContent 103 id: clockTooltipContent
100 104
101 margin: 8 105 anchors.fill: parent
102 106
103 ColumnLayout { 107 ColumnLayout {
104 anchors.centerIn: parent 108 id: tooltipLayout
109
110 anchors {
111 left: parent.left
112 top: parent.top
113 leftMargin: 8
114 topMargin: 8
115 }
105 116
106 Text { 117 Text {
107 id: yearLabel 118 id: yearLabel