Changeset View
Changeset View
Standalone View
Standalone View
applets/mediacontroller/contents/ui/main.qml
Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Line(s) | 137 | } else { | |||
---|---|---|---|---|---|
138 | plasmoid.status = PlasmaCore.Types.PassiveStatus | 138 | plasmoid.status = PlasmaCore.Types.PassiveStatus | ||
139 | } | 139 | } | ||
140 | } | 140 | } | ||
141 | } | 141 | } | ||
142 | 142 | | |||
143 | Plasmoid.fullRepresentation: ExpandedRepresentation {} | 143 | Plasmoid.fullRepresentation: ExpandedRepresentation {} | ||
144 | 144 | | |||
145 | Plasmoid.compactRepresentation: PlasmaCore.IconItem { | 145 | Plasmoid.compactRepresentation: PlasmaCore.IconItem { | ||
146 | source: root.state === "playing" ? "media-playback-start" : | 146 | source: root.state === "playing" ? "media-playback-playing" : | ||
147 | root.state === "paused" ? "media-playback-pause" : | 147 | root.state === "paused" ? "media-playback-paused" : | ||
148 | "media-playback-stop" | 148 | "media-playback-stopped" | ||
149 | active: compactMouse.containsMouse | 149 | active: compactMouse.containsMouse | ||
150 | 150 | | |||
151 | MouseArea { | 151 | MouseArea { | ||
152 | id: compactMouse | 152 | id: compactMouse | ||
153 | anchors.fill: parent | 153 | anchors.fill: parent | ||
154 | hoverEnabled: true | 154 | hoverEnabled: true | ||
155 | acceptedButtons: Qt.LeftButton | Qt.MiddleButton | Qt.BackButton | Qt.ForwardButton | 155 | acceptedButtons: Qt.LeftButton | Qt.MiddleButton | Qt.BackButton | Qt.ForwardButton | ||
156 | onClicked: { | 156 | onClicked: { | ||
▲ Show 20 Lines • Show All 114 Lines • Show Last 20 Lines |