Changeset View
Changeset View
Standalone View
Standalone View
applets/taskmanager/package/contents/ui/ToolTipInstance.qml
Show First 20 Lines • Show All 163 Lines • ▼ Show 20 Line(s) | 35 | Column { | |||
---|---|---|---|---|---|
164 | } | 164 | } | ||
165 | 165 | | |||
166 | // thumbnail container | 166 | // thumbnail container | ||
167 | Item { | 167 | Item { | ||
168 | id: thumbnail | 168 | id: thumbnail | ||
169 | width: header.width | 169 | width: header.width | ||
170 | // similar to 0.5625 = 1 / (16:9) as most screens are | 170 | // similar to 0.5625 = 1 / (16:9) as most screens are | ||
171 | // round necessary, otherwise shadow mask for players has gap! | 171 | // round necessary, otherwise shadow mask for players has gap! | ||
172 | height: Math.round(0.5 * width) | 172 | height: albumArtImage.available ? width : Math.round(0.5 * width) | ||
173 | anchors.horizontalCenter: parent.horizontalCenter | 173 | anchors.horizontalCenter: parent.horizontalCenter | ||
174 | 174 | | |||
175 | visible: isWin | 175 | visible: isWin | ||
176 | 176 | | |||
177 | Item { | 177 | Item { | ||
178 | id: thumbnailSourceItem | 178 | id: thumbnailSourceItem | ||
179 | anchors.fill: parent | 179 | anchors.fill: parent | ||
180 | 180 | | |||
▲ Show 20 Lines • Show All 130 Lines • ▼ Show 20 Line(s) | 300 | ColumnLayout { | |||
311 | 311 | | |||
312 | PlasmaExtras.Heading { | 312 | PlasmaExtras.Heading { | ||
313 | Layout.fillWidth: true | 313 | Layout.fillWidth: true | ||
314 | level: 5 | 314 | level: 5 | ||
315 | wrapMode: Text.NoWrap | 315 | wrapMode: Text.NoWrap | ||
316 | elide: Text.ElideRight | 316 | elide: Text.ElideRight | ||
317 | text: artist || "" | 317 | text: artist || "" | ||
318 | } | 318 | } | ||
319 | } | 319 | } | ||
ngraham: No need to reduce the opacity here if the song name is bold. | |||||
trmdi: I think that makes it look nicer. | |||||
320 | 320 | | |||
321 | MouseArea { | 321 | MouseArea { | ||
322 | height: units.iconSizes.smallMedium | 322 | height: units.iconSizes.smallMedium | ||
323 | width: height | 323 | width: height | ||
324 | enabled: canGoBack | 324 | enabled: canGoBack | ||
325 | 325 | | |||
326 | acceptedButtons: Qt.LeftButton | 326 | acceptedButtons: Qt.LeftButton | ||
327 | hoverEnabled: true | 327 | hoverEnabled: true | ||
▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines |
No need to reduce the opacity here if the song name is bold.