File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,6 @@ PanelWindow {
5858 function setEcoMode (eco : bool ): void {
5959 root .ecoMode = eco;
6060 }
61-
6261 }
6362
6463 GlobalShortcut {
@@ -248,6 +247,7 @@ PanelWindow {
248247 fontSize: root .fontSize
249248 colMain: root .colFg
250249 colBg: " transparent"
250+ colBorder: root .colCyan
251251 }
252252
253253 // language
Original file line number Diff line number Diff line change 6464 interval: 1200
6565 running: true
6666 repeat: true
67+
6768 onTriggered: {
6869 var randomValue = Math .floor (Math .random () * (680000 - 100000 ) + 100000 );
6970 tmr .interval = 1000000 + randomValue;
@@ -87,10 +88,12 @@ Item {
8788 anchors .right : weatherContainer .left
8889 anchors .rightMargin : hoverDetector .containsMouse ? 8 : 0
8990 anchors .verticalCenter : parent .verticalCenter
90- width: infoText .contentWidth + 4
91- height: infoText .contentHeight
91+ width: infoText .contentWidth + 10
92+ height: infoText .contentHeight + 2
9293 color: root .colBg
9394 radius: 6
95+ border .width : 1
96+ border .color : root .colBorder
9497 opacity: hoverDetector .containsMouse ? 1 : 0
9598 scale: hoverDetector .containsMouse ? 1 : 0
9699 transformOrigin: Item .Right
@@ -120,11 +123,13 @@ Item {
120123 Text {
121124 id: infoText
122125 anchors .centerIn : parent
126+ anchors .verticalCenter : parent .verticalCenter
123127 text: root .temperature + " "
124128 color: root .colMain
129+
125130 font {
126131 family: root .fontFamily
127- pixelSize: root .fontSize
132+ pixelSize: root .fontSize - 1
128133 bold: true
129134 }
130135 }
@@ -157,6 +162,7 @@ Item {
157162 anchors .fill : parent
158163 hoverEnabled: true
159164 propagateComposedEvents: true
165+
160166 onPressed : function (mouse ) {
161167 mouse .accepted = false ;
162168 }
You can’t perform that action at this time.
0 commit comments