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:
1 parent
e4ca1f5d9c
commit
efaace0f15
9 files changed
+87
-19
No files matched your search
+17
-10
@@ -51,7 +51,7 @@ PanelWindow {
|
||||
Behavior on progress {
|
||||
NumberAnimation {
|
||||
id: morph
|
||||
duration: ShellState.notchOpen ? Theme.duration * 2 : Theme.duration * 1.3
|
||||
duration: ShellState.notchOpen ? Theme.notchOpenDuration * 2 : Theme.notchCloseDuration * 1.3
|
||||
easing.type: Easing.BezierSpline
|
||||
easing.bezierCurve: ShellState.notchOpen ? [0.2, 0, 0, 1, 1, 1] : [0.3, 0, 0.8, 0.15, 1, 1]
|
||||
}
|
||||
@@ -64,7 +64,7 @@ PanelWindow {
|
||||
Behavior on targetWidth {
|
||||
enabled: root.settled
|
||||
NumberAnimation {
|
||||
duration: Theme.duration * 1.4
|
||||
duration: Theme.notchDuration * 1.4
|
||||
easing.type: Easing.BezierSpline
|
||||
easing.bezierCurve: [0.2, 0, 0, 1, 1, 1]
|
||||
}
|
||||
@@ -72,7 +72,7 @@ PanelWindow {
|
||||
Behavior on targetHeight {
|
||||
enabled: root.settled
|
||||
NumberAnimation {
|
||||
duration: Theme.duration * 1.4
|
||||
duration: Theme.notchDuration * 1.4
|
||||
easing.type: Easing.BezierSpline
|
||||
easing.bezierCurve: [0.2, 0, 0, 1, 1, 1]
|
||||
}
|
||||
@@ -135,7 +135,14 @@ PanelWindow {
|
||||
bodyHeight: root.bodyHeight
|
||||
ear: root.ear
|
||||
radius: Math.min(Theme.radius + 8, root.bodyHeight / 2)
|
||||
fillColor: Theme.notchFill
|
||||
// Fades between the docked and open fill at its own speed; closing, it
|
||||
// never outlasts the shrink so it docks in the docked colour.
|
||||
fillColor: ShellState.notchOpen ? Theme.notchOpenFill : Theme.notchFill
|
||||
Behavior on fillColor {
|
||||
ColorAnimation {
|
||||
duration: ShellState.notchOpen ? Theme.notchColorDuration : Math.min(Theme.notchColorDuration, Theme.notchCloseDuration * 1.3)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
@@ -296,7 +303,7 @@ PanelWindow {
|
||||
Behavior on opacity {
|
||||
enabled: root.settled
|
||||
NumberAnimation {
|
||||
duration: Theme.duration
|
||||
duration: Theme.notchDuration
|
||||
}
|
||||
}
|
||||
|
||||
@@ -321,7 +328,7 @@ PanelWindow {
|
||||
y: -pager.page * pager.height
|
||||
Behavior on y {
|
||||
NumberAnimation {
|
||||
duration: Theme.duration * 1.6
|
||||
duration: Theme.notchDuration * 1.6
|
||||
easing.type: Easing.BezierSpline
|
||||
easing.bezierCurve: [0.2, 0, 0, 1, 1, 1]
|
||||
}
|
||||
@@ -354,7 +361,7 @@ PanelWindow {
|
||||
border.color: Theme.hairline
|
||||
Behavior on color {
|
||||
ColorAnimation {
|
||||
duration: Theme.duration / 2
|
||||
duration: Theme.notchDuration / 2
|
||||
}
|
||||
}
|
||||
Column {
|
||||
@@ -503,7 +510,7 @@ PanelWindow {
|
||||
color: pager.page === index ? Theme.accent : Qt.alpha(Theme.text, 0.25)
|
||||
Behavior on height {
|
||||
NumberAnimation {
|
||||
duration: Theme.duration
|
||||
duration: Theme.notchDuration
|
||||
easing.type: Easing.OutCubic
|
||||
}
|
||||
}
|
||||
@@ -602,7 +609,7 @@ PanelWindow {
|
||||
Behavior on y {
|
||||
enabled: root.settled
|
||||
NumberAnimation {
|
||||
duration: Theme.duration
|
||||
duration: Theme.notchDuration
|
||||
easing.type: Easing.OutCubic
|
||||
}
|
||||
}
|
||||
@@ -692,7 +699,7 @@ PanelWindow {
|
||||
Behavior on opacity {
|
||||
enabled: root.settled
|
||||
NumberAnimation {
|
||||
duration: Theme.duration
|
||||
duration: Theme.notchDuration
|
||||
}
|
||||
}
|
||||
Rectangle {
|
||||
|
||||
Reference in new issue
Block a user