summaryrefslogtreecommitdiff
path: root/modules/lock/Fetch.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-12 17:24:39 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-12 17:24:39 +1000
commitab531a83b700788440d02ca0c3026bb05612515e (patch)
treec04cb9f7ea46d22764c56d51043550e9c5a1b36c /modules/lock/Fetch.qml
parentlock: better scaling + fix null error (diff)
downloadcaelestia-shell-ab531a83b700788440d02ca0c3026bb05612515e.tar.gz
caelestia-shell-ab531a83b700788440d02ca0c3026bb05612515e.tar.bz2
caelestia-shell-ab531a83b700788440d02ca0c3026bb05612515e.zip
lock: better scaling
Diffstat (limited to 'modules/lock/Fetch.qml')
-rw-r--r--modules/lock/Fetch.qml24
1 files changed, 19 insertions, 5 deletions
diff --git a/modules/lock/Fetch.qml b/modules/lock/Fetch.qml
index 755e7f8..815807b 100644
--- a/modules/lock/Fetch.qml
+++ b/modules/lock/Fetch.qml
@@ -87,12 +87,26 @@ ColumnLayout {
Layout.leftMargin: iconLoader.active ? 0 : width * 0.1
spacing: Appearance.spacing.normal
- FetchText {
- text: `OS : ${SysInfo.osPrettyName || SysInfo.osName}`
+ Loader {
+ Layout.fillWidth: true
+ asynchronous: true
+ active: root.height > 200
+ visible: active
+
+ sourceComponent: FetchText {
+ text: `OS : ${SysInfo.osPrettyName || SysInfo.osName}`
+ }
}
- FetchText {
- text: `WM : ${SysInfo.wm}`
+ Loader {
+ Layout.fillWidth: true
+ asynchronous: true
+ active: root.height > 110
+ visible: active
+
+ sourceComponent: FetchText {
+ text: `WM : ${SysInfo.wm}`
+ }
}
FetchText {
@@ -109,7 +123,7 @@ ColumnLayout {
Layout.alignment: Qt.AlignHCenter
asynchronous: true
- active: root.height > 220
+ active: root.height > 180
visible: active
sourceComponent: RowLayout {