Changeset View
Changeset View
Standalone View
Standalone View
applets/taskmanager/package/contents/ui/ToolTipInstance.qml
Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Line(s) | 121 | PlasmaExtras.Heading { | |||
---|---|---|---|---|---|
127 | text: isWin ? generateSubText() : "" | 127 | text: isWin ? generateSubText() : "" | ||
128 | textFormat: Text.PlainText | 128 | textFormat: Text.PlainText | ||
129 | opacity: 0.6 | 129 | opacity: 0.6 | ||
130 | visible: text !== "" | 130 | visible: text !== "" | ||
131 | } | 131 | } | ||
132 | } | 132 | } | ||
133 | 133 | | |||
134 | // Count badge. | 134 | // Count badge. | ||
135 | Badge { | 135 | Item { | ||
136 | Layout.alignment: Qt.AlignRight | Qt.AlignTop | 136 | Layout.alignment: Qt.AlignRight | Qt.AlignTop | ||
137 | Layout.preferredHeight: closeButton.height | ||||
138 | Layout.preferredWidth: closeButton.width | ||||
139 | | ||||
140 | Badge { | ||||
141 | anchors.centerIn: parent | ||||
137 | height: units.iconSizes.smallMedium | 142 | height: units.iconSizes.smallMedium | ||
138 | visible: flatIndex === 0 && smartLauncherCountVisible | 143 | visible: flatIndex === 0 && smartLauncherCountVisible | ||
139 | number: smartLauncherCount | 144 | number: smartLauncherCount | ||
140 | } | 145 | } | ||
146 | } | ||||
141 | 147 | | |||
142 | // close button | 148 | // close button | ||
143 | PlasmaComponents.ToolButton { | 149 | PlasmaComponents.ToolButton { | ||
144 | Layout.alignment: Qt.AlignRight | Qt.AlignTop | 150 | Layout.alignment: Qt.AlignRight | Qt.AlignTop | ||
145 | visible: isWin | 151 | visible: isWin | ||
146 | iconSource: "window-close" | 152 | iconSource: "window-close" | ||
147 | onClicked: { | 153 | onClicked: { | ||
148 | backend.cancelHighlightWindows(); | 154 | backend.cancelHighlightWindows(); | ||
▲ Show 20 Lines • Show All 308 Lines • Show Last 20 Lines |