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:
1 parent
68281b0874
commit
f756d37f6d
4 files changed
+5
-17
No files matched your search
@@ -114,12 +114,9 @@ PanelWindow {
|
|||||||
id: island
|
id: island
|
||||||
property alias row: islandRow
|
property alias row: islandRow
|
||||||
property string side
|
property string side
|
||||||
// An island showing a single module can drop its pill or hanging tab
|
readonly property bool hanging: root.islandStyle === "notch"
|
||||||
// and float like the "float" style.
|
color: root.islandStyle === "pill" ? Theme.notchFill : Theme.transparent
|
||||||
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)
|
border.width: root.islandStyle === "pill" ? 1 : 0
|
||||||
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
|
plain: true
|
||||||
visible: root.notch && ConfigService.ready && ConfigService.data.notch[side].length > 0
|
visible: root.notch && ConfigService.ready && ConfigService.data.notch[side].length > 0
|
||||||
// Hanging islands keep their ears on screen.
|
// Hanging islands keep their ears on screen.
|
||||||
@@ -128,7 +125,7 @@ PanelWindow {
|
|||||||
return side === "left" ? inset : root.width - inset - width;
|
return side === "left" ? inset : root.width - inset - width;
|
||||||
}
|
}
|
||||||
y: root.islandY
|
y: root.islandY
|
||||||
width: islandRow.implicitWidth + (bare ? 12 : 24)
|
width: islandRow.implicitWidth + (root.islandStyle === "float" ? 12 : 24)
|
||||||
height: BarDrawers.height
|
height: BarDrawers.height
|
||||||
radius: root.islandStyle === "pill" ? height / 2 : BarDrawers.radius
|
radius: root.islandStyle === "pill" ? height / 2 : BarDrawers.radius
|
||||||
DrawerShape {
|
DrawerShape {
|
||||||
|
|||||||
@@ -280,8 +280,7 @@
|
|||||||
"panelOpenSpeed": 100,
|
"panelOpenSpeed": 100,
|
||||||
"panelCloseSpeed": 100,
|
"panelCloseSpeed": 100,
|
||||||
"workspaceStyle": "bar",
|
"workspaceStyle": "bar",
|
||||||
"islandStyle": "float",
|
"islandStyle": "float"
|
||||||
"backSingle": true
|
|
||||||
},
|
},
|
||||||
"dashboard": {
|
"dashboard": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
|
|||||||
@@ -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(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(!["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(!["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");
|
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;
|
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");
|
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");
|
||||||
|
|||||||
@@ -94,13 +94,6 @@ SettingsPage {
|
|||||||
setting: "notch.islandStyle"
|
setting: "notch.islandStyle"
|
||||||
choices: ["float", "pill", "notch"]
|
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 {
|
ModulePicker {
|
||||||
title: "Left island"
|
title: "Left island"
|
||||||
icon: ""
|
icon: ""
|
||||||
|
|||||||
Reference in new issue
Block a user