Changeset View
Changeset View
Standalone View
Standalone View
applets/taskmanager/package/contents/ui/Task.qml
Context not available. | |||||
457 | // the text label margin, which derives from the icon width. | 457 | // the text label margin, which derives from the icon width. | ||
---|---|---|---|---|---|
458 | State { | 458 | State { | ||
459 | name: "standalone" | 459 | name: "standalone" | ||
460 | when: !label.visible && !audioStreamIconLoader.shown | 460 | when: !label.visible | ||
461 | 461 | | |||
462 | AnchorChanges { | 462 | AnchorChanges { | ||
463 | target: iconBox | 463 | target: iconBox | ||
Context not available. | |||||
494 | readonly property bool shown: item && item.visible | 494 | readonly property bool shown: item && item.visible | ||
495 | 495 | | |||
496 | source: "AudioStream.qml" | 496 | source: "AudioStream.qml" | ||
497 | width: units.roundToIconSize(Math.min(Math.min(iconBox.width, iconBox.height), units.iconSizes.smallMedium)) | 497 | width: Math.min(Math.min(iconBox.width, iconBox.height) * 0.45, units.iconSizes.smallMedium) | ||
498 | height: width | 498 | height: width | ||
499 | 499 | | |||
500 | anchors { | 500 | anchors { | ||
501 | right: parent.right | 501 | right: frame.right | ||
502 | rightMargin: iconBox.adjustMargin(true, parent.width, taskFrame.margins.right) | 502 | top: frame.top | ||
503 | verticalCenter: parent.verticalCenter | 503 | rightMargin: iconBox.adjustMargin(true, parent.width, taskFrame.margins.right) + units.smallSpacing / 2 | ||
504 | topMargin: iconBox.adjustMargin(true, parent.width, taskFrame.margins.top) + units.smallSpacing / 2 | ||||
504 | } | 505 | } | ||
505 | } | 506 | } | ||
506 | 507 | | |||
Context not available. |