forked from Shinonome/dots-hyprland
time column: fix am pm spacing
This commit is contained in:
@@ -6,8 +6,9 @@ import qs.modules.common
|
|||||||
import qs.modules.common.widgets
|
import qs.modules.common.widgets
|
||||||
import qs.modules.common.functions
|
import qs.modules.common.functions
|
||||||
import QtQuick
|
import QtQuick
|
||||||
|
import QtQuick.Layouts
|
||||||
|
|
||||||
Column {
|
ColumnLayout {
|
||||||
id: root
|
id: root
|
||||||
required property list<string> clockNumbers
|
required property list<string> clockNumbers
|
||||||
property bool isEnabled: Config.options.background.clock.cookie.timeIndicators
|
property bool isEnabled: Config.options.background.clock.cookie.timeIndicators
|
||||||
@@ -24,7 +25,7 @@ Column {
|
|||||||
property bool hourMarksEnabled: Config.options.background.clock.cookie.hourMarks
|
property bool hourMarksEnabled: Config.options.background.clock.cookie.hourMarks
|
||||||
property bool isAmPm: !modelData.match(/\d{2}/i)
|
property bool isAmPm: !modelData.match(/\d{2}/i)
|
||||||
property real numberSizeWithoutGlow: isAmPm ? 26 : 68
|
property real numberSizeWithoutGlow: isAmPm ? 26 : 68
|
||||||
property real numberSizeWithGlow: isAmPm ? 10 : 40
|
property real numberSizeWithGlow: isAmPm ? 20 : 40
|
||||||
property real numberSize: root.isEnabled ? (hourMarksEnabled ? numberSizeWithGlow : numberSizeWithoutGlow) : 100 // open/close animation
|
property real numberSize: root.isEnabled ? (hourMarksEnabled ? numberSizeWithGlow : numberSizeWithoutGlow) : 100 // open/close animation
|
||||||
|
|
||||||
anchors.horizontalCenter: root.horizontalCenter
|
anchors.horizontalCenter: root.horizontalCenter
|
||||||
|
|||||||
Reference in New Issue
Block a user