From ab531a83b700788440d02ca0c3026bb05612515e Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 12 Aug 2025 17:24:39 +1000 Subject: lock: better scaling --- modules/lock/Fetch.qml | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'modules/lock/Fetch.qml') 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 { -- cgit v1.2.3-freya