diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-22 00:07:11 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-22 00:07:11 +1000 |
| commit | 60deccddf0dca955de035a9f096fd47abe8d1786 (patch) | |
| tree | 64d1404f604b1d225b021806ba8f1a3f5922e368 /modules/windowinfo/Preview.qml | |
| parent | winfo: add buttons (diff) | |
| download | caelestia-shell-60deccddf0dca955de035a9f096fd47abe8d1786.tar.gz caelestia-shell-60deccddf0dca955de035a9f096fd47abe8d1786.tar.bz2 caelestia-shell-60deccddf0dca955de035a9f096fd47abe8d1786.zip | |
winfo: add no active client placeholders
Also change close button to kill
Diffstat (limited to 'modules/windowinfo/Preview.qml')
| -rw-r--r-- | modules/windowinfo/Preview.qml | 39 |
1 files changed, 37 insertions, 2 deletions
diff --git a/modules/windowinfo/Preview.qml b/modules/windowinfo/Preview.qml index 26941db..2e3dd8e 100644 --- a/modules/windowinfo/Preview.qml +++ b/modules/windowinfo/Preview.qml @@ -18,7 +18,7 @@ Item { Layout.preferredWidth: preview.implicitWidth + Appearance.padding.large * 2 Layout.fillHeight: true - ClippingRectangle { + StyledClippingRect { id: preview anchors.horizontalCenter: parent.horizontalCenter @@ -29,9 +29,44 @@ Item { implicitWidth: view.implicitWidth - color: "transparent" + color: Colours.palette.m3surfaceContainer radius: Appearance.rounding.small + Loader { + anchors.centerIn: parent + active: !Hyprland.activeClient + asynchronous: true + + sourceComponent: ColumnLayout { + spacing: 0 + + MaterialIcon { + Layout.alignment: Qt.AlignHCenter + text: "web_asset_off" + color: Colours.palette.m3outline + font.pointSize: Appearance.font.size.extraLarge * 3 + font.variableAxes: ({ + opsz: Appearance.font.size.extraLarge * 3 + }) + } + + StyledText { + Layout.alignment: Qt.AlignHCenter + text: qsTr("No active client") + color: Colours.palette.m3outline + font.pointSize: Appearance.font.size.extraLarge + font.weight: 500 + } + + StyledText { + Layout.alignment: Qt.AlignHCenter + text: qsTr("Try switching to a window") + color: Colours.palette.m3outline + font.pointSize: Appearance.font.size.large + } + } + } + ScreencopyView { id: view |