ScreenCorners: fix when bar is not visible on a screen

This commit is contained in:
quadbyte 2025-08-15 14:48:33 -04:00
parent f80e6a0294
commit a8e7f6e01d
2 changed files with 4 additions and 4 deletions

View file

@ -41,7 +41,8 @@ NLoader {
} }
margins { margins {
top: Math.floor(Style.barHeight * scaling) top: (Settings.data.bar.monitors.includes(modelData.name)
|| (Settings.data.bar.monitors.length === 0)) ? Math.floor(Style.barHeight * scaling) : 0
} }
// Source we want to show only as a ring // Source we want to show only as a ring

View file

@ -62,7 +62,6 @@ NLoader {
hidden = true hidden = true
} }
} }
} }
// Timer for show delay // Timer for show delay
@ -188,7 +187,7 @@ NLoader {
Image { Image {
id: appIcon id: appIcon
width: iconSize * scaling width: iconSize * scaling
height: iconSize * scaling height: iconSize * scaling
anchors.centerIn: parent anchors.centerIn: parent
source: dock.getAppIcon(modelData) source: dock.getAppIcon(modelData)
visible: source.toString() !== "" visible: source.toString() !== ""
@ -259,7 +258,7 @@ NLoader {
radius: Style.radiusTiny radius: Style.radiusTiny
anchors.top: parent.bottom anchors.top: parent.bottom
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
anchors.topMargin: 2* scaling anchors.topMargin: 2 * scaling
} }
} }
} }