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