remove config write
This commit is contained in:
@@ -51,22 +51,6 @@ ColumnLayout {
|
||||
font.family: Appearance.font.family.clock
|
||||
font.bold: true
|
||||
}
|
||||
|
||||
Loader {
|
||||
Layout.leftMargin: Appearance.spacing.small
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
|
||||
active: Config.services.useTwelveHourClock
|
||||
visible: active
|
||||
|
||||
sourceComponent: CustomText {
|
||||
text: Time.amPmStr
|
||||
color: DynamicColors.palette.m3primary
|
||||
font.pointSize: Math.floor(Appearance.font.size.extraLarge * 2 * root.centerScale)
|
||||
font.family: Appearance.font.family.clock
|
||||
font.bold: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
CustomText {
|
||||
|
||||
@@ -139,16 +139,10 @@ WlSessionLockSurface {
|
||||
}
|
||||
}
|
||||
|
||||
CachingImage {
|
||||
Image {
|
||||
id: background
|
||||
anchors.fill: parent
|
||||
asynchronous: true
|
||||
path: WallpaperPath.currentWallpaperPath
|
||||
opacity: 1
|
||||
|
||||
Component.onCompleted: {
|
||||
console.log(path);
|
||||
}
|
||||
source: WallpaperPath.lockscreenBg
|
||||
}
|
||||
|
||||
Item {
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
import Quickshell
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import qs.Modules
|
||||
import qs.Components
|
||||
import qs.Config
|
||||
|
||||
RowLayout {
|
||||
id: root
|
||||
|
||||
property list<string> time: Time.longTime.split("")
|
||||
|
||||
CustomText {
|
||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
||||
animate: true
|
||||
|
||||
text: root.time[0]
|
||||
font.pixelSize: 64
|
||||
font.weight: Font.Normal
|
||||
font.letterSpacing: 0.5
|
||||
color: DynamicColors.palette.m3onSurface
|
||||
}
|
||||
CustomText {
|
||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
||||
animate: true
|
||||
|
||||
text: root.time[1]
|
||||
font.pixelSize: 64
|
||||
font.weight: Font.Normal
|
||||
font.letterSpacing: 0.5
|
||||
color: DynamicColors.palette.m3onSurface
|
||||
}
|
||||
CustomText {
|
||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
||||
Layout.bottomMargin: 8
|
||||
animate: true
|
||||
|
||||
text: root.time[2]
|
||||
font.pixelSize: 64
|
||||
font.weight: Font.Normal
|
||||
font.letterSpacing: 0.5
|
||||
color: DynamicColors.palette.m3onSurface
|
||||
}
|
||||
CustomText {
|
||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
||||
animate: true
|
||||
|
||||
text: root.time[3]
|
||||
font.pixelSize: 64
|
||||
font.weight: Font.Normal
|
||||
font.letterSpacing: 0.5
|
||||
color: DynamicColors.palette.m3onSurface
|
||||
}
|
||||
CustomText {
|
||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
||||
animate: true
|
||||
|
||||
text: root.time[4]
|
||||
font.pixelSize: 64
|
||||
font.weight: Font.Normal
|
||||
font.letterSpacing: 0.5
|
||||
color: DynamicColors.palette.m3onSurface
|
||||
}
|
||||
CustomText {
|
||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
||||
Layout.bottomMargin: 8
|
||||
animate: true
|
||||
|
||||
text: root.time[5]
|
||||
font.pixelSize: 64
|
||||
font.weight: Font.Normal
|
||||
font.letterSpacing: 0.5
|
||||
color: DynamicColors.palette.m3onSurface
|
||||
}
|
||||
CustomText {
|
||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
||||
animate: true
|
||||
|
||||
text: root.time[6]
|
||||
font.pixelSize: 64
|
||||
font.weight: Font.Normal
|
||||
font.letterSpacing: 0.5
|
||||
color: DynamicColors.palette.m3onSurface
|
||||
}
|
||||
CustomText {
|
||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignVCenter
|
||||
animate: true
|
||||
|
||||
text: root.time[7]
|
||||
font.pixelSize: 64
|
||||
font.weight: Font.Normal
|
||||
font.letterSpacing: 0.5
|
||||
color: DynamicColors.palette.m3onSurface
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user