Changeset View
Changeset View
Standalone View
Standalone View
applets/taskmanager/package/contents/ui/ToolTipInstance.qml
Show First 20 Lines • Show All 297 Lines • ▼ Show 20 Line(s) | 289 | PlasmaExtras.DescriptiveLabel { | |||
---|---|---|---|---|---|
298 | font.pointSize: theme.smallestFont.pointSize | 298 | font.pointSize: theme.smallestFont.pointSize | ||
299 | } | 299 | } | ||
300 | } | 300 | } | ||
301 | } | 301 | } | ||
302 | 302 | | |||
303 | PlasmaComponents3.ToolButton { | 303 | PlasmaComponents3.ToolButton { | ||
304 | enabled: canGoBack | 304 | enabled: canGoBack | ||
305 | icon.name: LayoutMirroring.enabled ? "media-skip-forward" : "media-skip-backward" | 305 | icon.name: LayoutMirroring.enabled ? "media-skip-forward" : "media-skip-backward" | ||
306 | icon.height: units.iconSizes.smallMedium | | |||
307 | icon.width: units.iconSizes.smallMedium | | |||
308 | onClicked: mpris2Source.goPrevious(mprisSourceName) | 306 | onClicked: mpris2Source.goPrevious(mprisSourceName) | ||
309 | } | 307 | } | ||
310 | 308 | | |||
311 | PlasmaComponents3.ToolButton { | 309 | PlasmaComponents3.ToolButton { | ||
312 | enabled: playing ? canPause : canPlay | 310 | enabled: playing ? canPause : canPlay | ||
313 | icon.name: playing ? "media-playback-pause" : "media-playback-start" | 311 | icon.name: playing ? "media-playback-pause" : "media-playback-start" | ||
314 | icon.height: units.iconSizes.smallMedium | | |||
315 | icon.width: units.iconSizes.smallMedium | | |||
316 | onClicked: { | 312 | onClicked: { | ||
317 | if (!playing) { | 313 | if (!playing) { | ||
318 | mpris2Source.play(mprisSourceName); | 314 | mpris2Source.play(mprisSourceName); | ||
319 | } else { | 315 | } else { | ||
320 | mpris2Source.pause(mprisSourceName); | 316 | mpris2Source.pause(mprisSourceName); | ||
321 | } | 317 | } | ||
322 | } | 318 | } | ||
323 | } | 319 | } | ||
324 | 320 | | |||
325 | PlasmaComponents3.ToolButton { | 321 | PlasmaComponents3.ToolButton { | ||
326 | enabled: canGoNext | 322 | enabled: canGoNext | ||
327 | icon.name: LayoutMirroring.enabled ? "media-skip-backward" : "media-skip-forward" | 323 | icon.name: LayoutMirroring.enabled ? "media-skip-backward" : "media-skip-forward" | ||
328 | icon.height: units.iconSizes.smallMedium | | |||
329 | icon.width: units.iconSizes.smallMedium | | |||
330 | onClicked: mpris2Source.goNext(mprisSourceName) | 324 | onClicked: mpris2Source.goNext(mprisSourceName) | ||
331 | } | 325 | } | ||
332 | } | 326 | } | ||
333 | 327 | | |||
334 | function generateTitle() { | 328 | function generateTitle() { | ||
335 | if (!isWin) { | 329 | if (!isWin) { | ||
336 | return genericName != undefined ? genericName : ""; | 330 | return genericName != undefined ? genericName : ""; | ||
337 | } | 331 | } | ||
▲ Show 20 Lines • Show All 99 Lines • Show Last 20 Lines |