From b414ac1c7a09888107ef767a59cb153b60baee4e Mon Sep 17 00:00:00 2001 From: Filip Fila Date: Wed, 3 Jul 2019 11:05:44 +0200 Subject: [PATCH] [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 --- lookandfeel/contents/lockscreen/MediaControls.qml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lookandfeel/contents/lockscreen/MediaControls.qml b/lookandfeel/contents/lockscreen/MediaControls.qml index f6dc310a3..a3f1dc796 100644 --- a/lookandfeel/contents/lockscreen/MediaControls.qml +++ b/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 } }