mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Add bar position
This commit is contained in:
+2
-1
@@ -25,7 +25,8 @@ Variants {
|
||||
|| (Settings.data.bar.monitors.length === 0)) : false
|
||||
|
||||
anchors {
|
||||
top: true
|
||||
top: Settings.data.bar.barPosition === "top"
|
||||
bottom: Settings.data.bar.barPosition === "bottom"
|
||||
left: true
|
||||
right: true
|
||||
}
|
||||
|
||||
@@ -73,10 +73,14 @@ NLoader {
|
||||
border.width: Math.max(1, Style.borderS * scaling)
|
||||
width: 380 * scaling
|
||||
height: 500 * scaling
|
||||
anchors.top: parent.top
|
||||
anchors.right: parent.right
|
||||
anchors.topMargin: Style.marginXS * scaling
|
||||
anchors.rightMargin: Style.marginXS * scaling
|
||||
anchors {
|
||||
right: parent.right
|
||||
rightMargin: Style.marginXS * scaling
|
||||
top: Settings.data.bar.barPosition === "top" ? parent.top : undefined
|
||||
bottom: Settings.data.bar.barPosition === "bottom" ? parent.bottom : undefined
|
||||
topMargin: Settings.data.bar.barPosition === "top" ? Style.marginXS * scaling : undefined
|
||||
bottomMargin: Settings.data.bar.barPosition === "bottom" ? Style.barHeight * scaling + Style.marginXS * scaling : undefined
|
||||
}
|
||||
|
||||
// Animation properties
|
||||
property real scaleValue: 0.8
|
||||
|
||||
@@ -20,6 +20,7 @@ Rectangle {
|
||||
id: tooltip
|
||||
text: Time.dateString
|
||||
target: clock
|
||||
positionAbove: Settings.data.bar.barPosition === "bottom"
|
||||
}
|
||||
|
||||
onEntered: {
|
||||
|
||||
@@ -119,6 +119,7 @@ Rectangle {
|
||||
id: trayTooltip
|
||||
target: trayIcon
|
||||
text: modelData.tooltipTitle || modelData.name || modelData.id || "Tray Item"
|
||||
positionAbove: Settings.data.bar.barPosition === "bottom"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,10 +88,14 @@ NLoader {
|
||||
border.width: Math.max(1, Style.borderS * scaling)
|
||||
width: 340 * scaling
|
||||
height: 500 * scaling
|
||||
anchors.top: parent.top
|
||||
anchors.right: parent.right
|
||||
anchors.topMargin: Style.marginXS * scaling
|
||||
anchors.rightMargin: Style.marginXS * scaling
|
||||
anchors {
|
||||
right: parent.right
|
||||
rightMargin: Style.marginXS * scaling
|
||||
top: Settings.data.bar.barPosition === "top" ? parent.top : undefined
|
||||
bottom: Settings.data.bar.barPosition === "bottom" ? parent.bottom : undefined
|
||||
topMargin: Settings.data.bar.barPosition === "top" ? Style.marginXS * scaling : undefined
|
||||
bottomMargin: Settings.data.bar.barPosition === "bottom" ? Style.barHeight * scaling + Style.marginXS * scaling : undefined
|
||||
}
|
||||
|
||||
// Animation properties
|
||||
property real scaleValue: 0.8
|
||||
|
||||
Reference in New Issue
Block a user