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: 3 | ||
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 | } | 122 | } | ||
123 | 123 | | |||
124 | PlasmaExtras.Heading { | 124 | PlasmaExtras.Heading { | ||
125 | Layout.fillWidth: true | 125 | Layout.fillWidth: true | ||
126 | level: 5 | 126 | level: 4 | ||
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 | 127 | wrapMode: Text.NoWrap | ||
128 | elide: Text.ElideRight | 128 | elide: Text.ElideRight | ||
129 | // if no artist is given, show player name instead | 129 | // if no artist is given, show player name instead | ||
130 | text: mpris2Source.artist || mpris2Source.identity || "" | 130 | text: mpris2Source.artist || mpris2Source.identity || "" | ||
131 | textFormat: Text.PlainText | 131 | textFormat: Text.PlainText | ||
132 | } | 132 | } | ||
133 | } | 133 | } | ||
134 | 134 | | |||
Show All 25 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 :) ).