From d1e5f484461e27133317c78b81347d05dc3a2760 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 24 Aug 2025 14:14:30 +1000 Subject: internal: rename Hyprland -> Hypr Prevent shadowing Fixes window info not changing on switching to an empty workspace --- modules/bar/popouts/ActiveWindow.qml | 10 +++++----- modules/bar/popouts/KbLayout.qml | 2 +- modules/bar/popouts/Wrapper.qml | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'modules/bar/popouts') diff --git a/modules/bar/popouts/ActiveWindow.qml b/modules/bar/popouts/ActiveWindow.qml index cad2bd8..adf7b77 100644 --- a/modules/bar/popouts/ActiveWindow.qml +++ b/modules/bar/popouts/ActiveWindow.qml @@ -12,7 +12,7 @@ Item { required property Item wrapper - implicitWidth: Hyprland.activeToplevel ? child.implicitWidth : -Appearance.padding.large * 2 + implicitWidth: Hypr.activeToplevel ? child.implicitWidth : -Appearance.padding.large * 2 implicitHeight: child.implicitHeight Column { @@ -33,7 +33,7 @@ Item { Layout.alignment: Qt.AlignVCenter implicitSize: details.implicitHeight - source: Icons.getAppIcon(Hyprland.activeToplevel?.lastIpcObject.class ?? "", "image-missing") + source: Icons.getAppIcon(Hypr.activeToplevel?.lastIpcObject.class ?? "", "image-missing") } ColumnLayout { @@ -44,14 +44,14 @@ Item { StyledText { Layout.fillWidth: true - text: Hyprland.activeToplevel?.title ?? "" + text: Hypr.activeToplevel?.title ?? "" font.pointSize: Appearance.font.size.normal elide: Text.ElideRight } StyledText { Layout.fillWidth: true - text: Hyprland.activeToplevel?.lastIpcObject.class ?? "" + text: Hypr.activeToplevel?.lastIpcObject.class ?? "" color: Colours.palette.m3onSurfaceVariant elide: Text.ElideRight } @@ -91,7 +91,7 @@ Item { ScreencopyView { id: preview - captureSource: Hyprland.activeToplevel?.wayland ?? null + captureSource: Hypr.activeToplevel?.wayland ?? null live: visible constraintSize.width: Config.bar.sizes.windowPreviewSize diff --git a/modules/bar/popouts/KbLayout.qml b/modules/bar/popouts/KbLayout.qml index ea7c490..8e5ae8d 100644 --- a/modules/bar/popouts/KbLayout.qml +++ b/modules/bar/popouts/KbLayout.qml @@ -2,5 +2,5 @@ import qs.components import qs.services StyledText { - text: qsTr("Keyboard layout: %1").arg(Hyprland.kbLayoutFull) + text: qsTr("Keyboard layout: %1").arg(Hypr.kbLayoutFull) } diff --git a/modules/bar/popouts/Wrapper.qml b/modules/bar/popouts/Wrapper.qml index 7cc3c79..845826d 100644 --- a/modules/bar/popouts/Wrapper.qml +++ b/modules/bar/popouts/Wrapper.qml @@ -89,7 +89,7 @@ Item { sourceComponent: WindowInfo { screen: root.screen - client: Hyprland.activeToplevel + client: Hypr.activeToplevel } } -- cgit v1.2.3-freya