Add notch speeds and a glassy-when-open option

- Settings → Notch → Look: separate opening, closing and colour-change
  speeds for the notch and the notch-mode launcher.
- "Glassy when open" keeps the custom colour/opacity on the docked notch
  and fades the open notch and launcher back to the normal glass; closing
  never outlasts the shrink, so it docks in the docked colour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mxandClaude Opus 5.5 committed 2026-11-12 17:24:31 +01:00
1 parent e4ca1f5d9c
commit efaace0f15
9 files changed
+87 -19

No files matched your search

+11 -5
View File
@@ -275,7 +275,13 @@ PanelWindow {
bodyHeight: panel.height
ear: BarDrawers.ear
radius: panel.radius
fillColor: Theme.notchFill
// Docked colour, turning to the open fill as the launcher unfolds.
fillColor: ShellState.launcherOpen ? Theme.notchOpenFill : Theme.notchFill
Behavior on fillColor {
ColorAnimation {
duration: ShellState.launcherOpen ? Theme.notchColorDuration : Math.min(Theme.notchColorDuration, Theme.notchCloseDuration)
}
}
}
GlassPanel {
id: panel
@@ -294,25 +300,25 @@ PanelWindow {
clip: true
Behavior on width {
NumberAnimation {
duration: Theme.duration
duration: !root.notch ? Theme.duration : ShellState.launcherOpen ? Theme.notchOpenDuration : Theme.notchCloseDuration
easing.type: Easing.OutCubic
}
}
Behavior on height {
enabled: !root.snapping
NumberAnimation {
duration: Theme.duration
duration: !root.notch ? Theme.duration : ShellState.launcherOpen ? Theme.notchOpenDuration : Theme.notchCloseDuration
easing.type: Easing.OutCubic
}
}
Behavior on opacity {
NumberAnimation {
duration: Theme.duration
duration: !root.notch ? Theme.duration : ShellState.launcherOpen ? Theme.notchOpenDuration : Theme.notchCloseDuration
}
}
Behavior on scale {
NumberAnimation {
duration: Theme.duration
duration: !root.notch ? Theme.duration : ShellState.launcherOpen ? Theme.notchOpenDuration : Theme.notchCloseDuration
easing.type: Easing.OutCubic
}
}