Let single-module islands drop their pill or notch tab
A new "Background for single modules" toggle (notch.backSingle, on by default) lets an island that shows only one module float on the wallpaper instead of sitting in a circle or a hanging tab. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f96d16df87
commit
4f078bdf5c
4 files changed
+17
-5
No files matched your search
@@ -114,9 +114,12 @@ PanelWindow {
|
||||
id: island
|
||||
property alias row: islandRow
|
||||
property string side
|
||||
readonly property bool hanging: root.islandStyle === "notch"
|
||||
color: root.islandStyle === "pill" ? Theme.notchFill : Theme.transparent
|
||||
border.width: root.islandStyle === "pill" ? 1 : 0
|
||||
// An island showing a single module can drop its pill or hanging tab
|
||||
// and float like the "float" style.
|
||||
readonly property bool bare: root.islandStyle === "float" || (ConfigService.ready && !ConfigService.data.notch.backSingle && Array.prototype.filter.call(islandRow.visibleChildren, c => c.width > 0).length === 1)
|
||||
readonly property bool hanging: root.islandStyle === "notch" && !bare
|
||||
color: root.islandStyle === "pill" && !bare ? Theme.notchFill : Theme.transparent
|
||||
border.width: root.islandStyle === "pill" && !bare ? 1 : 0
|
||||
plain: true
|
||||
visible: root.notch && ConfigService.ready && ConfigService.data.notch[side].length > 0
|
||||
// Hanging islands keep their ears on screen.
|
||||
@@ -125,7 +128,7 @@ PanelWindow {
|
||||
return side === "left" ? inset : root.width - inset - width;
|
||||
}
|
||||
y: root.islandY
|
||||
width: islandRow.implicitWidth + (root.islandStyle === "float" ? 12 : 24)
|
||||
width: islandRow.implicitWidth + (bare ? 12 : 24)
|
||||
height: BarDrawers.height
|
||||
radius: root.islandStyle === "pill" ? height / 2 : BarDrawers.radius
|
||||
DrawerShape {
|
||||
|
||||
Reference in new issue
Block a user