forked from Shinonome/dots-hyprland
make xwayland indicator configurable
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user