diff options
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/SystemTray.qml')
-rw-r--r-- | accounts/gkleen@sif/shell/quickshell/SystemTray.qml | 34 |
1 files changed, 24 insertions, 10 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/SystemTray.qml b/accounts/gkleen@sif/shell/quickshell/SystemTray.qml index 55b1690e..6f70be29 100644 --- a/accounts/gkleen@sif/shell/quickshell/SystemTray.qml +++ b/accounts/gkleen@sif/shell/quickshell/SystemTray.qml | |||
@@ -47,7 +47,7 @@ Item { | |||
47 | return "" | 47 | return "" |
48 | } | 48 | } |
49 | 49 | ||
50 | width: 16 | 50 | width: icon.width + 6 |
51 | height: parent.height | 51 | height: parent.height |
52 | anchors.verticalCenter: parent.verticalCenter | 52 | anchors.verticalCenter: parent.verticalCenter |
53 | 53 | ||
@@ -83,14 +83,24 @@ Item { | |||
83 | } | 83 | } |
84 | } | 84 | } |
85 | 85 | ||
86 | IconImage { | 86 | Rectangle { |
87 | anchors.centerIn: parent | 87 | anchors.fill: parent |
88 | width: parent.width | 88 | color: { |
89 | height: parent.width | 89 | if (trayItemArea.containsMouse) |
90 | source: trayItemWrapper.iconSource | 90 | return "#33808080"; |
91 | asynchronous: true | 91 | return "transparent"; |
92 | smooth: true | 92 | } |
93 | mipmap: true | 93 | |
94 | IconImage { | ||
95 | id: icon | ||
96 | |||
97 | anchors.centerIn: parent | ||
98 | implicitSize: 16 | ||
99 | source: trayItemWrapper.iconSource | ||
100 | asynchronous: true | ||
101 | smooth: true | ||
102 | mipmap: true | ||
103 | } | ||
94 | } | 104 | } |
95 | } | 105 | } |
96 | 106 | ||
@@ -116,7 +126,7 @@ Item { | |||
116 | color: "black" | 126 | color: "black" |
117 | 127 | ||
118 | implicitWidth: Math.max(tooltipTitle.contentWidth, tooltipDescription.contentWidth) + 16 | 128 | implicitWidth: Math.max(tooltipTitle.contentWidth, tooltipDescription.contentWidth) + 16 |
119 | implicitHeight: tooltipTitle.contentHeight + tooltipDescription.contentHeight + 16 | 129 | implicitHeight: (trayItem.tooltipTitle ? tooltipTitle.contentHeight : 0) + (trayItem.tooltipDescription ? tooltipDescription.contentHeight : 0) + 16 |
120 | 130 | ||
121 | WrapperMouseArea { | 131 | WrapperMouseArea { |
122 | id: tooltipMouseArea | 132 | id: tooltipMouseArea |
@@ -130,6 +140,8 @@ Item { | |||
130 | Text { | 140 | Text { |
131 | id: tooltipTitle | 141 | id: tooltipTitle |
132 | 142 | ||
143 | enabled: trayItem.tooltipTitle | ||
144 | |||
133 | font.pointSize: 10 | 145 | font.pointSize: 10 |
134 | font.family: "Fira Sans" | 146 | font.family: "Fira Sans" |
135 | font.bold: true | 147 | font.bold: true |
@@ -141,6 +153,8 @@ Item { | |||
141 | Text { | 153 | Text { |
142 | id: tooltipDescription | 154 | id: tooltipDescription |
143 | 155 | ||
156 | enabled: trayItem.tooltipDescription | ||
157 | |||
144 | font.pointSize: 10 | 158 | font.pointSize: 10 |
145 | font.family: "Fira Sans" | 159 | font.family: "Fira Sans" |
146 | color: "white" | 160 | color: "white" |