Changeset View
Changeset View
Standalone View
Standalone View
applets/taskmanager/package/contents/ui/AudioStream.qml
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Line(s) | 24 | Item { | |||
---|---|---|---|---|---|
91 | // The indicator should still shown even if the label is hidden, | 91 | // The indicator should still shown even if the label is hidden, | ||
92 | // but only if there's enough room for it. | 92 | // but only if there's enough room for it. | ||
93 | visible: opacity > 0 && (task.width > icon.paintedWidth + audioStreamIconBox.width) | 93 | visible: opacity > 0 && (task.width > icon.paintedWidth + audioStreamIconBox.width) | ||
94 | 94 | | |||
95 | PlasmaCore.IconItem { | 95 | PlasmaCore.IconItem { | ||
96 | id: audioStreamIcon | 96 | id: audioStreamIcon | ||
97 | anchors.fill: parent | 97 | anchors.fill: parent | ||
98 | } | 98 | } | ||
99 | | ||||
100 | MouseArea { | ||||
101 | anchors.fill: parent | ||||
102 | hoverEnabled: true | ||||
103 | onClicked: toggleMuted() | ||||
104 | | ||||
105 | PlasmaCore.FrameSvgItem { | ||||
106 | anchors.fill: parent | ||||
107 | visible: parent.containsMouse | ||||
108 | imagePath: "widgets/viewitem" | ||||
109 | prefix: "hover" | ||||
110 | } | ||||
111 | } | ||||
99 | } | 112 | } |