Changeset View
Changeset View
Standalone View
Standalone View
lookandfeel/contents/lockscreen/MediaControls.qml
Show First 20 Lines • Show All 108 Lines • ▼ Show 20 Line(s) | 31 | RowLayout { | |||
---|---|---|---|---|---|
109 | } | 109 | } | ||
110 | 110 | | |||
111 | ColumnLayout { | 111 | ColumnLayout { | ||
112 | Layout.fillWidth: true | 112 | Layout.fillWidth: true | ||
113 | spacing: 0 | 113 | spacing: 0 | ||
114 | 114 | | |||
115 | PlasmaExtras.Heading { | 115 | PlasmaExtras.Heading { | ||
116 | Layout.fillWidth: true | 116 | Layout.fillWidth: true | ||
117 | level: 4 | 117 | level: 5 | ||
118 | wrapMode: Text.NoWrap | 118 | wrapMode: Text.NoWrap | ||
119 | elide: Text.ElideRight | 119 | elide: Text.ElideRight | ||
120 | text: mpris2Source.track || i18n("No media playing") | 120 | text: mpris2Source.track || i18n("No media playing") | ||
121 | textFormat: Text.PlainText | 121 | textFormat: Text.PlainText | ||
122 | font.weight: Font.Bold | ||||
122 | } | 123 | } | ||
123 | 124 | | |||
124 | PlasmaExtras.Heading { | 125 | PlasmaExtras.Heading { | ||
125 | Layout.fillWidth: true | 126 | Layout.fillWidth: true | ||
126 | level: 5 | 127 | level: 5 | ||
ngraham: These changes will worsen the problem of the song/artist name getting cut off when they're even… | |||||
rooty: Yes it was huge, sorry | |||||
127 | wrapMode: Text.NoWrap | 128 | wrapMode: Text.NoWrap | ||
128 | elide: Text.ElideRight | 129 | elide: Text.ElideRight | ||
129 | // if no artist is given, show player name instead | 130 | // if no artist is given, show player name instead | ||
130 | text: mpris2Source.artist || mpris2Source.identity || "" | 131 | text: mpris2Source.artist || mpris2Source.identity || "" | ||
131 | textFormat: Text.PlainText | 132 | textFormat: Text.PlainText | ||
133 | opacity: 0.75 | ||||
132 | } | 134 | } | ||
133 | } | 135 | } | ||
134 | 136 | | |||
135 | PlasmaComponents.ToolButton { | 137 | PlasmaComponents.ToolButton { | ||
136 | enabled: mpris2Source.canGoBack | 138 | enabled: mpris2Source.canGoBack | ||
137 | iconName: LayoutMirroring.enabled ? "media-skip-forward" : "media-skip-backward" | 139 | iconName: LayoutMirroring.enabled ? "media-skip-forward" : "media-skip-backward" | ||
138 | onClicked: mpris2Source.goPrevious() | 140 | onClicked: mpris2Source.goPrevious() | ||
139 | visible: mpris2Source.canGoBack || mpris2Source.canGoNext | 141 | visible: mpris2Source.canGoBack || mpris2Source.canGoNext | ||
Show All 20 Lines |
These changes will worsen the problem of the song/artist name getting cut off when they're even marginally long. I would be in favor of fixing that (in another patch :) ).