mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Bar/Panels: Unified transparency for panels and bar!
This commit is contained in:
@@ -22,7 +22,7 @@ Item {
|
||||
// Reference to MainScreen (for panel access)
|
||||
required property var windowRoot
|
||||
|
||||
readonly property color panelBackgroundColor: Qt.alpha(Color.mSurface, Settings.data.ui.panelBackgroundOpacity)
|
||||
readonly property color panelBackgroundColor: Color.mSurface
|
||||
|
||||
anchors.fill: parent
|
||||
|
||||
@@ -34,6 +34,9 @@ Item {
|
||||
// This caches the Shape to a GPU texture, reducing GPU tessellation overhead
|
||||
layer.enabled: true
|
||||
|
||||
// Apply opacity to all backgrounds
|
||||
opacity: Settings.data.ui.panelBackgroundOpacity
|
||||
|
||||
// The unified Shape container
|
||||
Shape {
|
||||
id: backgroundsShape
|
||||
@@ -55,7 +58,7 @@ Item {
|
||||
bar: root.bar
|
||||
shapeContainer: backgroundsShape
|
||||
windowRoot: root.windowRoot
|
||||
backgroundColor: Qt.alpha(Color.mSurface, Settings.data.bar.backgroundOpacity)
|
||||
backgroundColor: Settings.data.bar.transparent ? Color.transparent : panelBackgroundColor
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user