mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Bar: Fix potential blurry icons due to half pixel misalignment.
This commit is contained in:
+3
-3
@@ -57,13 +57,13 @@ Item {
|
|||||||
sourceComponent: Item {
|
sourceComponent: Item {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
// Bar container (background rendered by AllBackgrounds)
|
// Bar container - Content
|
||||||
Item {
|
Item {
|
||||||
id: bar
|
id: bar
|
||||||
|
|
||||||
// Position and size the bar content based on orientation
|
// Position and size the bar content based on orientation
|
||||||
x: (root.barPosition === "right") ? (parent.width - Style.barHeight) : 0.5
|
x: (root.barPosition === "right") ? (parent.width - Style.barHeight) : 0
|
||||||
y: (root.barPosition === "bottom") ? (parent.height - Style.barHeight) : 0.5
|
y: (root.barPosition === "bottom") ? (parent.height - Style.barHeight) : 0
|
||||||
width: root.barIsVertical ? Style.barHeight : parent.width
|
width: root.barIsVertical ? Style.barHeight : parent.width
|
||||||
height: root.barIsVertical ? parent.height : Style.barHeight
|
height: root.barIsVertical ? parent.height : Style.barHeight
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user