diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-12 17:24:39 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-12 17:24:39 +1000 |
| commit | ab531a83b700788440d02ca0c3026bb05612515e (patch) | |
| tree | c04cb9f7ea46d22764c56d51043550e9c5a1b36c /modules/lock/Fetch.qml | |
| parent | lock: better scaling + fix null error (diff) | |
| download | caelestia-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.qml | 24 |
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 { |