Add a notch island style and tidy the Notch settings page
Islands can float (as before), sit on rounded pills or hang from the top edge like the notch, both in the notch colour. The Notch page now runs Notch, Islands, Open notch, Colour, Animation, and the colour change speed only shows when it does something (glassy when open). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
049ce180da
commit
a0de1d2c41
4 files changed
+148
-123
No files matched your search
@@ -64,70 +64,75 @@ SettingsPage {
|
||||
}
|
||||
SettingsSection {
|
||||
title: "Notch"
|
||||
description: "Splits the bar into side islands with a notch at the top centre. Super+C, Super+X and a click on the notch open it: dashboard pages on the left (scroll to switch), controls and weather in the middle, notifications on the right. The launcher drops out of it."
|
||||
description: "Splits the bar into side islands with a notch at the top centre. Super+N switches between notch mode and the full bar."
|
||||
PreferenceToggle {
|
||||
label: "Notch"
|
||||
description: root.options.enabled ? "On: notch mode" : "Off: the full bar"
|
||||
label: "Notch mode"
|
||||
description: root.options.enabled ? "On: islands and a notch" : "Off: the full bar"
|
||||
icon: ""
|
||||
setting: "notch.enabled"
|
||||
}
|
||||
SettingRow {
|
||||
title: "Preview"
|
||||
description: "Super+C, Super+X or a click on the notch open it too"
|
||||
icon: ""
|
||||
GlassButton {
|
||||
objectName: "notchOpenButton"
|
||||
text: "Open notch"
|
||||
enabled: root.options.enabled
|
||||
onClicked: ShellState.openNotch()
|
||||
}
|
||||
}
|
||||
}
|
||||
SettingsSection {
|
||||
title: "Look"
|
||||
description: "0% is the normal glass. Raise the opacity towards a solid colour: e.g. 50% with a purple colour, or 100% black for OLED."
|
||||
title: "Islands"
|
||||
description: "The bar modules either side of the notch."
|
||||
enabled: root.options.enabled
|
||||
PreferenceSlider {
|
||||
label: "Notch opacity"
|
||||
icon: ""
|
||||
setting: "notch.opacity"
|
||||
from: 0
|
||||
to: 100
|
||||
step: 1
|
||||
unit: "%"
|
||||
PreferenceChoice {
|
||||
label: "Island style"
|
||||
description: "float: modules on the wallpaper; pill: rounded pills; notch: hung from the top edge like the notch. Pill and notch use the notch colour."
|
||||
icon: ""
|
||||
setting: "notch.islandStyle"
|
||||
choices: ["float", "pill", "notch"]
|
||||
}
|
||||
ModulePicker {
|
||||
title: "Left island"
|
||||
icon: ""
|
||||
key: "left"
|
||||
}
|
||||
ModulePicker {
|
||||
title: "Right island"
|
||||
icon: ""
|
||||
key: "right"
|
||||
}
|
||||
PreferenceChoice {
|
||||
label: "Workspace style"
|
||||
description: "\"bar\" uses the style from Settings → Bar"
|
||||
icon: ""
|
||||
setting: "notch.workspaceStyle"
|
||||
choices: ["bar", "numbers", "roman", "kanji", "dots", "pacman"]
|
||||
}
|
||||
}
|
||||
SettingsSection {
|
||||
title: "Open notch"
|
||||
description: "Dashboard pages on the left (scroll to switch), controls and weather in the middle, notifications on the right. The cog edits its tiles in place, separately from the Control Center."
|
||||
enabled: root.options.enabled
|
||||
PreferenceToggle {
|
||||
label: "Glassy when open"
|
||||
description: "Keeps the colour and opacity on the docked notch; the open notch fades back to the normal glass"
|
||||
icon: ""
|
||||
setting: "notch.glassOnOpen"
|
||||
label: "Open on Media while audio plays"
|
||||
description: "Otherwise it opens on the last page"
|
||||
icon: ""
|
||||
setting: "notch.mediaFirst"
|
||||
}
|
||||
PreferenceToggle {
|
||||
visible: root.options.glassOnOpen
|
||||
label: "Launcher keeps notch colour"
|
||||
description: "Off: the launcher turns glassy when open too"
|
||||
icon: ""
|
||||
setting: "notch.launcherMatch"
|
||||
}
|
||||
PreferenceSlider {
|
||||
label: "Opening speed"
|
||||
description: "Notch and launcher; 100% follows the shell's animation duration"
|
||||
icon: ""
|
||||
setting: "notch.openSpeed"
|
||||
from: 25
|
||||
to: 300
|
||||
step: 5
|
||||
unit: "%"
|
||||
}
|
||||
PreferenceSlider {
|
||||
label: "Closing speed"
|
||||
description: "100% follows the shell's animation duration"
|
||||
icon: ""
|
||||
setting: "notch.closeSpeed"
|
||||
from: 25
|
||||
to: 300
|
||||
step: 5
|
||||
unit: "%"
|
||||
}
|
||||
PreferenceSlider {
|
||||
label: "Colour change speed"
|
||||
description: "How fast the docked colour turns glassy when opening (closing never outlasts the close)"
|
||||
icon: ""
|
||||
setting: "notch.colorSpeed"
|
||||
from: 25
|
||||
to: 300
|
||||
step: 5
|
||||
unit: "%"
|
||||
ModulePicker {
|
||||
title: "Module strip"
|
||||
description: "Bar modules left of the clock, e.g. AI usage or the screen recorder. The mouse wheel scrolls it when it overflows."
|
||||
icon: ""
|
||||
key: "strip"
|
||||
}
|
||||
}
|
||||
SettingsSection {
|
||||
title: "Colour"
|
||||
description: "0% opacity is the normal glass. Raise it towards a solid colour: e.g. 50% with a purple colour, or 100% black for OLED."
|
||||
enabled: root.options.enabled
|
||||
SettingRow {
|
||||
title: "Notch colour"
|
||||
description: root.options.color ? "Custom colour" : "Glass tint (Appearance)"
|
||||
@@ -155,60 +160,61 @@ SettingsPage {
|
||||
onChosen: color => ConfigService.setValue("notch.color", color.toString())
|
||||
}
|
||||
}
|
||||
}
|
||||
SettingsSection {
|
||||
title: "Opening"
|
||||
enabled: root.options.enabled
|
||||
PreferenceSlider {
|
||||
label: "Opacity"
|
||||
icon: ""
|
||||
setting: "notch.opacity"
|
||||
from: 0
|
||||
to: 100
|
||||
step: 1
|
||||
unit: "%"
|
||||
}
|
||||
PreferenceToggle {
|
||||
label: "Open on Media while audio plays"
|
||||
description: "Otherwise it opens on the last page"
|
||||
icon: ""
|
||||
setting: "notch.mediaFirst"
|
||||
label: "Glassy when open"
|
||||
description: "The open notch fades back to the normal glass; the docked notch keeps the colour"
|
||||
icon: ""
|
||||
setting: "notch.glassOnOpen"
|
||||
}
|
||||
SettingRow {
|
||||
title: "Preview"
|
||||
icon: ""
|
||||
GlassButton {
|
||||
objectName: "notchOpenButton"
|
||||
text: "Open notch"
|
||||
enabled: root.options.enabled
|
||||
onClicked: ShellState.openNotch()
|
||||
}
|
||||
PreferenceToggle {
|
||||
visible: root.options.glassOnOpen
|
||||
label: "Launcher keeps notch colour"
|
||||
description: "Off: the launcher turns glassy too"
|
||||
icon: ""
|
||||
setting: "notch.launcherMatch"
|
||||
}
|
||||
}
|
||||
SettingsSection {
|
||||
title: "Workspaces"
|
||||
enabled: root.options.enabled
|
||||
PreferenceChoice {
|
||||
label: "Workspace style"
|
||||
description: "Notch mode only; \"bar\" uses the style from Settings → Bar"
|
||||
PreferenceSlider {
|
||||
visible: root.options.glassOnOpen
|
||||
label: "Colour change speed"
|
||||
description: "How fast it turns glassy when opening (closing never outlasts the close)"
|
||||
icon: ""
|
||||
setting: "notch.workspaceStyle"
|
||||
choices: ["bar", "numbers", "roman", "kanji", "dots", "pacman"]
|
||||
setting: "notch.colorSpeed"
|
||||
from: 25
|
||||
to: 300
|
||||
step: 5
|
||||
unit: "%"
|
||||
}
|
||||
}
|
||||
SettingsSection {
|
||||
title: "Modules"
|
||||
description: "Which bar modules show in notch mode. The strip sits left of the clock in the open notch; the mouse wheel scrolls it sideways when it overflows."
|
||||
title: "Animation"
|
||||
description: "Notch and launcher; 100% follows the shell's animation duration."
|
||||
enabled: root.options.enabled
|
||||
ModulePicker {
|
||||
title: "Notch strip"
|
||||
description: "Left of the clock in the open notch, e.g. AI usage or the screen recorder"
|
||||
icon: ""
|
||||
key: "strip"
|
||||
PreferenceSlider {
|
||||
label: "Opening speed"
|
||||
icon: ""
|
||||
setting: "notch.openSpeed"
|
||||
from: 25
|
||||
to: 300
|
||||
step: 5
|
||||
unit: "%"
|
||||
}
|
||||
ModulePicker {
|
||||
title: "Left island"
|
||||
icon: ""
|
||||
key: "left"
|
||||
PreferenceSlider {
|
||||
label: "Closing speed"
|
||||
icon: ""
|
||||
setting: "notch.closeSpeed"
|
||||
from: 25
|
||||
to: 300
|
||||
step: 5
|
||||
unit: "%"
|
||||
}
|
||||
ModulePicker {
|
||||
title: "Right island"
|
||||
icon: ""
|
||||
key: "right"
|
||||
}
|
||||
}
|
||||
SettingNote {
|
||||
text: "Super+N switches between notch mode and the full bar. The cog in the open notch edits its tiles in place, separately from the Control Center. Follow Control Center (in that editor) mirrors the Control Center again."
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user