shell+hl: adjust workspace move curve
Looks a lot better on the bar and overlay.
This commit is contained in:
parent
789228079c
commit
b73b476c68
4 changed files with 8 additions and 7 deletions
|
@ -44,6 +44,7 @@ animations {
|
||||||
|
|
||||||
bezier = windowIn, 0.06, 0.71, 0.25, 1
|
bezier = windowIn, 0.06, 0.71, 0.25, 1
|
||||||
bezier = windowResize, 0.04, 0.67, 0.38, 1
|
bezier = windowResize, 0.04, 0.67, 0.38, 1
|
||||||
|
bezier = workspacesMove, 0.1, 0.75, 0.15, 1
|
||||||
|
|
||||||
animation = windowsIn, 1, 3, windowIn, slide #popin 20%
|
animation = windowsIn, 1, 3, windowIn, slide #popin 20%
|
||||||
animation = windowsOut, 1, 3, windowIn, slide #popin 70%
|
animation = windowsOut, 1, 3, windowIn, slide #popin 70%
|
||||||
|
@ -51,7 +52,7 @@ animations {
|
||||||
animation = border, 1, 10, default
|
animation = border, 1, 10, default
|
||||||
animation = borderangle, 1, 8, default
|
animation = borderangle, 1, 8, default
|
||||||
animation = fade, 1, 3, default
|
animation = fade, 1, 3, default
|
||||||
animation = workspaces, 1, 6, default, slidevert
|
animation = workspaces, 1, 5, workspacesMove, slidevert
|
||||||
animation = layers, 1, 5, windowIn, slide
|
animation = layers, 1, 5, windowIn, slide
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ PanelWindow {
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: barRect
|
id: barRect
|
||||||
|
|
||||||
x: 10 - Lock.Controller.bkgSlide * (barRect.width + 10)
|
x: 10 - Lock.Controller.lockSlide * (barRect.width + 10)
|
||||||
width: parent.width - 15
|
width: parent.width - 15
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
|
|
|
@ -21,15 +21,15 @@ Singleton {
|
||||||
|
|
||||||
Behavior on lockSlide {
|
Behavior on lockSlide {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
duration: 600
|
duration: 500
|
||||||
easing.type: Easing.BezierSpline
|
easing.type: Easing.BezierSpline
|
||||||
easing.bezierCurve: [0.0, 0.75, 0.15, 1.0, 1.0, 1.0]
|
easing.bezierCurve: [0.1, 0.75, 0.15, 1.0, 1.0, 1.0]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on bkgSlide {
|
Behavior on bkgSlide {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
duration: 600
|
duration: 500
|
||||||
easing.type: Easing.OutCirc
|
easing.type: Easing.OutCirc
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@ Singleton {
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: lockClearTimer
|
id: lockClearTimer
|
||||||
interval: 600
|
interval: 500
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
lock.locked = false;
|
lock.locked = false;
|
||||||
lockContextLoader.active = false;
|
lockContextLoader.active = false;
|
||||||
|
|
|
@ -4,12 +4,12 @@ import Quickshell.Io
|
||||||
import Quickshell.Wayland
|
import Quickshell.Wayland
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
import ".."
|
|
||||||
import "screenshot" as Screenshot
|
import "screenshot" as Screenshot
|
||||||
import "bar" as Bar
|
import "bar" as Bar
|
||||||
import "lock" as Lock
|
import "lock" as Lock
|
||||||
import "notifications" as Notifs
|
import "notifications" as Notifs
|
||||||
import "launcher" as Launcher
|
import "launcher" as Launcher
|
||||||
|
import "background"
|
||||||
|
|
||||||
ShellRoot {
|
ShellRoot {
|
||||||
Component.onCompleted: [Lock.Controller, Launcher.Controller.init()]
|
Component.onCompleted: [Lock.Controller, Launcher.Controller.init()]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue