diff options
Diffstat (limited to 'raveos-sddm-theme/sddm-rave-theme/Components/Clock.qml')
| -rw-r--r-- | raveos-sddm-theme/sddm-rave-theme/Components/Clock.qml | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/raveos-sddm-theme/sddm-rave-theme/Components/Clock.qml b/raveos-sddm-theme/sddm-rave-theme/Components/Clock.qml index e9d1399..6c6b7c8 100644 --- a/raveos-sddm-theme/sddm-rave-theme/Components/Clock.qml +++ b/raveos-sddm-theme/sddm-rave-theme/Components/Clock.qml @@ -9,8 +9,8 @@ import QtQuick.Controls 2.15 Column { id: clock - width: parent.width / 2 - spacing: 8 + width: parent.width + spacing: root.font.pointSize * 0.45 Image { id: logoImage @@ -18,8 +18,8 @@ Column { anchors.horizontalCenter: parent.horizontalCenter source: (config.Logo && config.Logo !== "") ? Qt.resolvedUrl("../" + config.Logo) : "" fillMode: Image.PreserveAspectFit - width: root.font.pointSize * 13 - height: root.font.pointSize * 13 + width: Math.min(root.font.pointSize * 8.5, root.height * 0.10) + height: Math.min(root.font.pointSize * 8.5, root.height * 0.10) visible: config.Logo && config.Logo !== "" } @@ -28,8 +28,10 @@ Column { anchors.horizontalCenter: parent.horizontalCenter - font.pointSize: root.font.pointSize * 2 + font.pointSize: root.font.pointSize * 1.8 color: config.HeaderTextColor + style: Text.Raised + styleColor: Qt.rgba(0, 0, 0, 0.45) renderType: Text.QtRendering text: config.HeaderText } @@ -39,9 +41,11 @@ Column { anchors.horizontalCenter: parent.horizontalCenter - font.pointSize: root.font.pointSize * 3.5 + font.pointSize: Math.min(root.font.pointSize * 2.4, root.height * 0.040) font.bold: true color: config.TimeTextColor + style: Text.Raised + styleColor: Qt.rgba(0, 0, 0, 0.45) renderType: Text.QtRendering function updateTime() { @@ -55,8 +59,10 @@ Column { anchors.horizontalCenter: parent.horizontalCenter color: config.DateTextColor - font.pointSize: root.font.pointSize * 0.95 + font.pointSize: root.font.pointSize * 0.82 font.bold: true + style: Text.Raised + styleColor: Qt.rgba(0, 0, 0, 0.45) renderType: Text.QtRendering function updateTime() { |