Changeset View
Changeset View
Standalone View
Standalone View
applets/taskmanager/package/contents/ui/ToolTipInstance.qml
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Line(s) | 54 | readonly property string track: { | |||
---|---|---|---|---|---|
68 | var lastUrlPart = xesamUrl.substring(lastSlashPos + 1) | 68 | var lastUrlPart = xesamUrl.substring(lastSlashPos + 1) | ||
69 | return decodeURIComponent(lastUrlPart); | 69 | return decodeURIComponent(lastUrlPart); | ||
70 | } | 70 | } | ||
71 | readonly property string artist: currentMetadata["xesam:artist"] || "" | 71 | readonly property string artist: currentMetadata["xesam:artist"] || "" | ||
72 | readonly property string albumArt: currentMetadata["mpris:artUrl"] || "" | 72 | readonly property string albumArt: currentMetadata["mpris:artUrl"] || "" | ||
73 | 73 | | |||
74 | spacing: units.smallSpacing | 74 | spacing: units.smallSpacing | ||
75 | 75 | | |||
76 | // launcher icon + text labels + close button | 76 | // text labels + close button | ||
77 | RowLayout { | 77 | RowLayout { | ||
78 | id: header | 78 | id: header | ||
79 | // match spacing of DefaultToolTip.qml in plasma-framework | 79 | // match spacing of DefaultToolTip.qml in plasma-framework | ||
80 | spacing: isWin ? units.smallSpacing : units.largeSpacing | 80 | spacing: isWin ? units.smallSpacing : units.largeSpacing | ||
81 | 81 | | |||
82 | // This number controls the overall size of the window tooltips | 82 | // This number controls the overall size of the window tooltips | ||
83 | Layout.maximumWidth: units.gridUnit * 16 | 83 | Layout.maximumWidth: units.gridUnit * 16 | ||
84 | Layout.minimumWidth: isWin ? Layout.maximumWidth : 0 | 84 | Layout.minimumWidth: isWin ? Layout.maximumWidth : 0 | ||
85 | Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter | 85 | Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter | ||
86 | // match margins of DefaultToolTip.qml in plasma-framework | 86 | // match margins of DefaultToolTip.qml in plasma-framework | ||
87 | Layout.margins: isWin ? 0 : units.gridUnit / 2 | 87 | Layout.margins: isWin ? 0 : units.gridUnit / 2 | ||
88 | 88 | | |||
89 | // launcher icon | | |||
90 | PlasmaCore.IconItem { | | |||
91 | Layout.preferredWidth: units.iconSizes.medium | | |||
92 | Layout.preferredHeight: units.iconSizes.medium | | |||
93 | source: !isWin ? icon : "" | | |||
94 | animated: false | | |||
95 | usesPlasmaTheme: false | | |||
96 | visible: !isWin | | |||
97 | } | | |||
98 | | ||||
99 | // all textlabels | 89 | // all textlabels | ||
100 | ColumnLayout { | 90 | ColumnLayout { | ||
101 | spacing: 0 | 91 | spacing: 0 | ||
102 | // app name | 92 | // app name | ||
103 | PlasmaExtras.Heading { | 93 | PlasmaExtras.Heading { | ||
104 | id: appNameHeading | 94 | id: appNameHeading | ||
105 | level: 3 | 95 | level: 3 | ||
106 | maximumLineCount: 1 | 96 | maximumLineCount: 1 | ||
▲ Show 20 Lines • Show All 324 Lines • Show Last 20 Lines |