Add AppLauncher opacity, topCenter & bottomCenter

This commit is contained in:
Ly-sec 2025-08-26 14:31:59 +02:00
parent 3c39ea192b
commit f3f0f611cb
4 changed files with 80 additions and 13 deletions

View file

@ -18,11 +18,17 @@ NPanel {
panelHeight: Math.min(550 * scaling, screen?.height * 0.8)
// Positioning derives from Settings.data.bar.position for vertical (top/bottom)
// and from Settings.data.appLauncher.position for horizontal vs center.
// Options: center, top_left, top_right, bottom_left, bottom_right
// Options: center, top_left, top_right, bottom_left, bottom_right, bottom_center, top_center
readonly property string launcherPosition: Settings.data.appLauncher.position
panelAnchorCentered: launcherPosition === "center"
panelAnchorLeft: launcherPosition !== "center" && (launcherPosition.endsWith("_left"))
panelAnchorRight: launcherPosition !== "center" && (launcherPosition.endsWith("_right"))
panelAnchorBottomCentered: launcherPosition === "bottom_center"
panelAnchorTopCentered: launcherPosition === "top_center"
// Background opacity following bar's approach
panelBackgroundColor: Qt.rgba(Color.mSurface.r, Color.mSurface.g, Color.mSurface.b,
Settings.data.appLauncher.backgroundOpacity)
// Properties
property string searchText: ""