Commit d7654042 authored by Krešimir Čohar's avatar Krešimir Čohar

[sddm-theme/lock screen] Use QQC2 for the clock labels

Summary:
This patch replaces the PlasmaComponents labels in Clock.qml with QQC2 ones. This resolves the issue of the clock letters/numbers getting clipped.

BUG: 404651
FIXED-IN: 5.15.3

Test Plan:
Before and after
{F6680490}

Reviewers: #plasma, #vdg, filipf, ngraham, hein

Reviewed By: #plasma, #vdg, ngraham, hein

Subscribers: mart, davidedmundson, plasma-devel

Tags: #plasma

Maniphest Tasks: T10325

Differential Revision: https://phabricator.kde.org/D19647
parent d3aa8b07
......@@ -19,15 +19,15 @@
import QtQuick 2.8
import QtQuick.Layouts 1.1
import QtQuick.Controls 2.5
import org.kde.plasma.core 2.0
import org.kde.plasma.components 2.0
ColumnLayout {
readonly property bool softwareRendering: GraphicsInfo.api === GraphicsInfo.Software
Label {
text: Qt.formatTime(timeSource.data["Local"]["DateTime"])
color: ColorScope.textColor
style: softwareRendering ? Text.Outline : Text.Normal
styleColor: softwareRendering ? ColorScope.backgroundColor : "transparent" //no outline, doesn't matter
font.pointSize: 48
......@@ -35,6 +35,7 @@ ColumnLayout {
}
Label {
text: Qt.formatDate(timeSource.data["Local"]["DateTime"], Qt.DefaultLocaleLongDate)
color: ColorScope.textColor
style: softwareRendering ? Text.Outline : Text.Normal
styleColor: softwareRendering ? ColorScope.backgroundColor : "transparent" //no outline, doesn't matter
font.pointSize: 24
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment