From 06de6e416e8c0a1c216069974a0c57b09984a5e1 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Thu, 27 Oct 2022 20:00:49 -0400 Subject: [PATCH] statusbar: Don't use fractional font sizes --- components/mobileshell/qml/statusbar/StatusBar.qml | 7 ++++--- look-and-feel/contents/lockscreen/Clock.qml | 7 ------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/components/mobileshell/qml/statusbar/StatusBar.qml b/components/mobileshell/qml/statusbar/StatusBar.qml index 9358cc12..9a813bac 100644 --- a/components/mobileshell/qml/statusbar/StatusBar.qml +++ b/components/mobileshell/qml/statusbar/StatusBar.qml @@ -54,7 +54,8 @@ Item { property alias colorScopeColor: icons.backgroundColor property alias applets: appletIconsRow - readonly property real textPixelSize: PlasmaCore.Units.gridUnit * 0.6 + readonly property real textPixelSize: 11 + readonly property real smallerTextPixelSize: 9 readonly property real elementSpacing: PlasmaCore.Units.smallSpacing * 1.5 PlasmaCore.DataSource { @@ -208,14 +209,14 @@ Item { PlasmaComponents.Label { text: Qt.formatDate(timeSource.data.Local.DateTime, "ddd. MMMM d") color: PlasmaCore.ColorScope.disabledTextColor - font.pixelSize: root.textPixelSize * 0.8 + font.pixelSize: root.smallerTextPixelSize } Item { Layout.fillWidth: true } PlasmaComponents.Label { visible: root.showTime text: MobileShell.SignalStrengthProvider.label color: PlasmaCore.ColorScope.disabledTextColor - font.pixelSize: root.textPixelSize * 0.8 + font.pixelSize: root.smallerTextPixelSize horizontalAlignment: Qt.AlignRight } } diff --git a/look-and-feel/contents/lockscreen/Clock.qml b/look-and-feel/contents/lockscreen/Clock.qml index 0ba4c04c..a06c0b51 100644 --- a/look-and-feel/contents/lockscreen/Clock.qml +++ b/look-and-feel/contents/lockscreen/Clock.qml @@ -13,8 +13,6 @@ import org.kde.plasma.core 2.0 as PlasmaCore import org.kde.plasma.components 3.0 as PC3 import org.kde.plasma.private.mobileshell 1.0 as MobileShell -import org.kde.kirigami 2.20 as Kirigami - Item { id: root implicitHeight: clockColumn.implicitHeight @@ -30,11 +28,6 @@ Item { intervalAlignment: PlasmaCore.Types.AlignToMinute } - Kirigami.ImageColors { - id: imageColors - source: wallpaper - } - DropShadow { anchors.fill: parent source: clockColumn