Give notch-mode panels their own liquid drop animation
With no bar to unroll from, attached drawers in notch mode now open as a glass bead that swells out under the clicked island icon on a tapered neck, flips the wallpaper behind it like a lens, then widens into the panel and lets go. NotchDrop draws it with a signed-distance shader; BarDrawer swaps to it in notch mode, and hosts pass the icon's screen x. The notch-shaped wallpaper picker keeps its own motion. Notch settings gain panel opening and closing speeds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6ad9c0b17e
commit
b03bd77941
14 files changed
+287
-9
No files matched your search
@@ -50,6 +50,9 @@ Singleton {
|
||||
readonly property real notchOpenDuration: duration * 100 / (ConfigService.ready ? Math.max(25, ConfigService.data.notch.openSpeed) : 100)
|
||||
readonly property real notchCloseDuration: duration * 100 / (ConfigService.ready ? Math.max(25, ConfigService.data.notch.closeSpeed) : 100)
|
||||
// Docked colour to the open fill and back (only differs with "glassy when open").
|
||||
// Notch-mode panels (Quick Fix, tray menus, plugin panels): the liquid drop.
|
||||
readonly property real notchPanelOpenDuration: duration * 4.2 * 100 / (ConfigService.ready ? Math.max(25, ConfigService.data.notch.panelOpenSpeed) : 100)
|
||||
readonly property real notchPanelCloseDuration: duration * 2.5 * 100 / (ConfigService.ready ? Math.max(25, ConfigService.data.notch.panelCloseSpeed) : 100)
|
||||
readonly property real notchColorDuration: duration * 0.6 * 100 / (ConfigService.ready ? Math.max(25, ConfigService.data.notch.colorSpeed) : 100)
|
||||
// Motion inside the open notch (pages, tiles, the pill's width) uses the opening speed.
|
||||
readonly property real notchDuration: notchOpenDuration
|
||||
|
||||
Reference in new issue
Block a user