Changeset View
Changeset View
Standalone View
Standalone View
lookandfeel/contents/lockscreen/MediaControls.qml
Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Line(s) | 111 | ColumnLayout { | |||
---|---|---|---|---|---|
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 | visible: mpris2Source.canGoBack || mpris2Source.canGoNext | ||
140 | Accessible.name: i18n("Previous track") | ||||
140 | } | 141 | } | ||
141 | 142 | | |||
142 | PlasmaComponents.ToolButton { | 143 | PlasmaComponents.ToolButton { | ||
143 | Layout.fillHeight: true | 144 | Layout.fillHeight: true | ||
144 | Layout.preferredWidth: height // make this button bigger | 145 | Layout.preferredWidth: height // make this button bigger | ||
145 | iconName: mpris2Source.playing ? "media-playback-pause" : "media-playback-start" | 146 | iconName: mpris2Source.playing ? "media-playback-pause" : "media-playback-start" | ||
146 | onClicked: mpris2Source.playPause() | 147 | onClicked: mpris2Source.playPause() | ||
148 | Accessible.name: i18n("Play or Pause media") | ||||
broulik: Text depending on state? ie. Play media or Pause media? | |||||
It should, but there's a Qt (I think) bug which means dynamic updates don't get propagated to the screen reader correctly and it will just read out the initial version forever. Working on that next. davidedmundson: It should, but there's a Qt (I think) bug which means dynamic updates don't get propagated to… | |||||
147 | } | 149 | } | ||
148 | 150 | | |||
149 | PlasmaComponents.ToolButton { | 151 | PlasmaComponents.ToolButton { | ||
150 | enabled: mpris2Source.canGoNext | 152 | enabled: mpris2Source.canGoNext | ||
151 | iconName: LayoutMirroring.enabled ? "media-skip-backward" : "media-skip-forward" | 153 | iconName: LayoutMirroring.enabled ? "media-skip-backward" : "media-skip-forward" | ||
152 | onClicked: mpris2Source.goNext() | 154 | onClicked: mpris2Source.goNext() | ||
153 | visible: mpris2Source.canGoBack || mpris2Source.canGoNext | 155 | visible: mpris2Source.canGoBack || mpris2Source.canGoNext | ||
156 | Accessible.name: i18n("Next track") | ||||
154 | } | 157 | } | ||
155 | } | 158 | } | ||
156 | } | 159 | } |
Text depending on state? ie. Play media or Pause media?