[Lock screen] Follow KDE title & subtitle style

Summary:
We're currently using a custom tyle for song titles and artist info in the lock screen's media controls.

This patch applies common KDE title & subtitle style as seen in e.g. Kickoff or plasma-nm applet-

Because the lock screen has increased font sizes, corrections for the title and subtitle have also been made.

Test Plan:
Before:
{F6960714}

After:
{F6960717}

Reviewers: #plasma, #vdg, ngraham

Reviewed By: #vdg, ngraham

Subscribers: broulik, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D22231
wilder-5.17
Filip Fila 7 years ago
parent 7e2c523111
commit b414ac1c7a
  1. 10
      lookandfeel/contents/lockscreen/MediaControls.qml

@ -112,25 +112,23 @@ Item {
Layout.fillWidth: true
spacing: 0
PlasmaExtras.Heading {
PlasmaComponents.Label {
Layout.fillWidth: true
level: 5
wrapMode: Text.NoWrap
elide: Text.ElideRight
text: mpris2Source.track || i18nd("plasma_lookandfeel_org.kde.lookandfeel", "No media playing")
textFormat: Text.PlainText
font.weight: Font.Bold
font.pointSize: theme.defaultFont.pointSize + 1
}
PlasmaExtras.Heading {
PlasmaExtras.DescriptiveLabel {
Layout.fillWidth: true
level: 5
wrapMode: Text.NoWrap
elide: Text.ElideRight
// if no artist is given, show player name instead
text: mpris2Source.artist || mpris2Source.identity || ""
textFormat: Text.PlainText
opacity: 0.75
font.pointSize: theme.smallestFont.pointSize + 1
}
}

Loading…
Cancel
Save