mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-03 10:56:16 +00:00
ScreenCorners: fix when bar is not visible on a screen
This commit is contained in:
@@ -41,7 +41,8 @@ NLoader {
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
@@ -62,7 +62,6 @@ NLoader {
|
||||
hidden = true
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Timer for show delay
|
||||
@@ -188,7 +187,7 @@ NLoader {
|
||||
Image {
|
||||
id: appIcon
|
||||
width: iconSize * scaling
|
||||
height: iconSize * scaling
|
||||
height: iconSize * scaling
|
||||
anchors.centerIn: parent
|
||||
source: dock.getAppIcon(modelData)
|
||||
visible: source.toString() !== ""
|
||||
@@ -259,7 +258,7 @@ NLoader {
|
||||
radius: Style.radiusTiny
|
||||
anchors.top: parent.bottom
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.topMargin: 2* scaling
|
||||
anchors.topMargin: 2 * scaling
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user