diff --git a/quickshell/bar/Bar.qml b/quickshell/bar/Bar.qml index b9e56a8..c7eca5d 100644 --- a/quickshell/bar/Bar.qml +++ b/quickshell/bar/Bar.qml @@ -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 { diff --git a/quickshell/config/defaults.json b/quickshell/config/defaults.json index 6293a89..0bfd63c 100644 --- a/quickshell/config/defaults.json +++ b/quickshell/config/defaults.json @@ -280,8 +280,7 @@ "panelOpenSpeed": 100, "panelCloseSpeed": 100, "workspaceStyle": "bar", - "islandStyle": "float", - "backSingle": true + "islandStyle": "float" }, "dashboard": { "enabled": true, diff --git a/quickshell/services/ConfigLogic.js b/quickshell/services/ConfigLogic.js index b429c7d..5e243c1 100644 --- a/quickshell/services/ConfigLogic.js +++ b/quickshell/services/ConfigLogic.js @@ -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"); diff --git a/quickshell/settings/pages/Notch.qml b/quickshell/settings/pages/Notch.qml index 1bddbf3..d8e9628 100644 --- a/quickshell/settings/pages/Notch.qml +++ b/quickshell/settings/pages/Notch.qml @@ -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: "󰁍"