Changeset View
Changeset View
Standalone View
Standalone View
lookandfeel/contents/lockscreen/MediaControls.qml
Show First 20 Lines • Show All 130 Lines • ▼ Show 20 Line(s) | 124 | PlasmaExtras.Heading { | |||
---|---|---|---|---|---|
131 | textFormat: Text.PlainText | 131 | textFormat: Text.PlainText | ||
132 | } | 132 | } | ||
133 | } | 133 | } | ||
134 | 134 | | |||
135 | PlasmaComponents.ToolButton { | 135 | PlasmaComponents.ToolButton { | ||
136 | enabled: mpris2Source.canGoBack | 136 | enabled: mpris2Source.canGoBack | ||
137 | iconName: LayoutMirroring.enabled ? "media-skip-forward" : "media-skip-backward" | 137 | iconName: LayoutMirroring.enabled ? "media-skip-forward" : "media-skip-backward" | ||
138 | onClicked: mpris2Source.goPrevious() | 138 | onClicked: mpris2Source.goPrevious() | ||
139 | visible: mpris2Source.canGoBack || mpris2Source.canGoNext | ||||
139 | } | 140 | } | ||
140 | 141 | | |||
141 | PlasmaComponents.ToolButton { | 142 | PlasmaComponents.ToolButton { | ||
142 | Layout.fillHeight: true | 143 | Layout.fillHeight: true | ||
143 | Layout.preferredWidth: height // make this button bigger | 144 | Layout.preferredWidth: height // make this button bigger | ||
144 | iconName: mpris2Source.playing ? "media-playback-pause" : "media-playback-start" | 145 | iconName: mpris2Source.playing ? "media-playback-pause" : "media-playback-start" | ||
145 | onClicked: mpris2Source.playPause() | 146 | onClicked: mpris2Source.playPause() | ||
146 | } | 147 | } | ||
147 | 148 | | |||
148 | PlasmaComponents.ToolButton { | 149 | PlasmaComponents.ToolButton { | ||
149 | enabled: mpris2Source.canGoNext | 150 | enabled: mpris2Source.canGoNext | ||
150 | iconName: LayoutMirroring.enabled ? "media-skip-backward" : "media-skip-forward" | 151 | iconName: LayoutMirroring.enabled ? "media-skip-backward" : "media-skip-forward" | ||
151 | onClicked: mpris2Source.goNext() | 152 | onClicked: mpris2Source.goNext() | ||
153 | visible: mpris2Source.canGoBack || mpris2Source.canGoNext | ||||
152 | } | 154 | } | ||
153 | } | 155 | } | ||
154 | } | 156 | } |