Revert "Let single-module islands drop their pill or notch tab"

This reverts commit 4f078bdf5c.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-11-29 14:43:49 +01:00
1 parent 68281b0874
commit f756d37f6d
4 files changed
+5 -17

No files matched your search

+4 -7
View File
@@ -114,12 +114,9 @@ PanelWindow {
id: island
property alias row: islandRow
property string side
// 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
readonly property bool hanging: root.islandStyle === "notch"
color: root.islandStyle === "pill" ? Theme.notchFill : Theme.transparent
border.width: root.islandStyle === "pill" ? 1 : 0
plain: true
visible: root.notch && ConfigService.ready && ConfigService.data.notch[side].length > 0
// Hanging islands keep their ears on screen.
@@ -128,7 +125,7 @@ PanelWindow {
return side === "left" ? inset : root.width - inset - width;
}
y: root.islandY
width: islandRow.implicitWidth + (bare ? 12 : 24)
width: islandRow.implicitWidth + (root.islandStyle === "float" ? 12 : 24)
height: BarDrawers.height
radius: root.islandStyle === "pill" ? height / 2 : BarDrawers.radius
DrawerShape {
+1 -2
View File
@@ -280,8 +280,7 @@
"panelOpenSpeed": 100,
"panelCloseSpeed": 100,
"workspaceStyle": "bar",
"islandStyle": "float",
"backSingle": true
"islandStyle": "float"
},
"dashboard": {
"enabled": true,
-1
View File
@@ -92,7 +92,6 @@ function validate(c) {
if(typeof c.notch.glassOnOpen!=="boolean" || typeof c.notch.launcherMatch!=="boolean" || ["openSpeed","closeSpeed","colorSpeed","panelOpenSpeed","panelCloseSpeed"].some(k=>!Number.isFinite(c.notch[k]) || c.notch[k]<25 || c.notch[k]>300))throw Error("Invalid notch animation");
if(!["bar","numbers","roman","kanji","dots","pacman"].includes(c.notch.workspaceStyle))throw Error("Invalid notch workspace style");
if(!["float","pill","notch"].includes(c.notch.islandStyle))throw Error("Invalid notch island style");
if(typeof c.notch.backSingle!=="boolean")throw Error("Invalid notch island preferences");
if(typeof c.osd.enabled!=="boolean" || !["slide","drop","fade","shrink"].includes(c.osd.animation) || !["top-right","top-center","bottom-center"].includes(c.osd.position) || !Number.isInteger(c.osd.timeout) || c.osd.timeout<500 || c.osd.timeout>5000 || !Number.isInteger(c.osd.step) || c.osd.step<1 || c.osd.step>20)throw Error("Invalid OSD preferences");
const notes=c.notifications;
if(!notes || ["enabled","doNotDisturb","criticalInDnd"].some(k=>typeof notes[k]!=="boolean") || !["slide","drop","fade","shrink"].includes(notes.animation) || !["top-right","top-center"].includes(notes.position) || !Number.isInteger(notes.timeout) || notes.timeout<1000 || notes.timeout>30000 || !Number.isInteger(notes.maxPopups) || notes.maxPopups<1 || notes.maxPopups>6)throw Error("Invalid notification preferences");
-7
View File
@@ -94,13 +94,6 @@ SettingsPage {
setting: "notch.islandStyle"
choices: ["float", "pill", "notch"]
}
PreferenceToggle {
label: "Background for single modules"
description: root.options.backSingle ? "On: an island with one module keeps its pill or tab" : "Off: an island with one module floats on the wallpaper"
icon: "󰆟"
setting: "notch.backSingle"
enabled: root.options.islandStyle !== "float"
}
ModulePicker {
title: "Left island"
icon: "󰁍"