From e612abad23aaafcc0bf24fa6ff9d998d94710647 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 24 Apr 2025 09:44:32 +0200 Subject: [PATCH] make xwayland indicator configurable --- .config/quickshell/modules/common/ConfigOptions.qml | 1 + .config/quickshell/modules/overview/OverviewWindow.qml | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.config/quickshell/modules/common/ConfigOptions.qml b/.config/quickshell/modules/common/ConfigOptions.qml index cddaf8f4b..b75bb7a0c 100644 --- a/.config/quickshell/modules/common/ConfigOptions.qml +++ b/.config/quickshell/modules/common/ConfigOptions.qml @@ -34,6 +34,7 @@ Singleton { property real scale: 0.18 // Relative to screen size property real numOfRows: 2 property real numOfCols: 5 + property bool showXwaylandIndicator: true } property QtObject resources: QtObject { diff --git a/.config/quickshell/modules/overview/OverviewWindow.qml b/.config/quickshell/modules/overview/OverviewWindow.qml index da65237e6..9f255d7a0 100644 --- a/.config/quickshell/modules/overview/OverviewWindow.qml +++ b/.config/quickshell/modules/overview/OverviewWindow.qml @@ -25,6 +25,7 @@ Rectangle { // Window property bool pressed: false property var iconToWindowRatio: 0.35 + property var xwaylandIndicatorToIconRatio: 0.35 property var iconToWindowRatioCompact: 0.6 property var iconPath: Quickshell.iconPath(Icons.noKnowledgeIconGuess(windowData?.class)) property bool compactMode: Appearance.font.pixelSize.smaller * 4 > targetWindowHeight || Appearance.font.pixelSize.smaller * 4 > targetWindowWidth @@ -108,11 +109,11 @@ Rectangle { // Window IconImage { id: xwaylandIndicator - visible: windowData?.xwayland + visible: ConfigOptions.overview.showXwaylandIndicator && windowData?.xwayland anchors.right: parent.right anchors.bottom: parent.bottom source: Quickshell.iconPath("xorg") - implicitSize: windowIcon.implicitSize * 0.35 + implicitSize: windowIcon.implicitSize * xwaylandIndicatorToIconRatio } }