make xwayland indicator configurable

This commit is contained in:
end-4
2025-04-24 09:44:32 +02:00
parent 6513ee82da
commit e612abad23
2 changed files with 4 additions and 2 deletions
@@ -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
}
}