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
				
			
		| 
						 | 
				
			
			@ -37,7 +37,7 @@ PanelWindow {
 | 
			
		|||
	Rectangle {
 | 
			
		||||
		id: barRect
 | 
			
		||||
 | 
			
		||||
		x: 10 - Lock.Controller.bkgSlide * (barRect.width + 10)
 | 
			
		||||
		x: 10 - Lock.Controller.lockSlide * (barRect.width + 10)
 | 
			
		||||
		width: parent.width - 15
 | 
			
		||||
 | 
			
		||||
		anchors {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -21,15 +21,15 @@ Singleton {
 | 
			
		|||
 | 
			
		||||
	Behavior on lockSlide {
 | 
			
		||||
   	NumberAnimation {
 | 
			
		||||
   		duration: 600
 | 
			
		||||
   		duration: 500
 | 
			
		||||
   		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 {
 | 
			
		||||
		NumberAnimation {
 | 
			
		||||
			duration: 600
 | 
			
		||||
			duration: 500
 | 
			
		||||
			easing.type: Easing.OutCirc
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			@ -46,7 +46,7 @@ Singleton {
 | 
			
		|||
 | 
			
		||||
	Timer {
 | 
			
		||||
		id: lockClearTimer
 | 
			
		||||
		interval: 600
 | 
			
		||||
		interval: 500
 | 
			
		||||
		onTriggered: {
 | 
			
		||||
			lock.locked = false;
 | 
			
		||||
			lockContextLoader.active = false;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,12 +4,12 @@ import Quickshell.Io
 | 
			
		|||
import Quickshell.Wayland
 | 
			
		||||
import QtQuick
 | 
			
		||||
import QtQuick.Layouts
 | 
			
		||||
import ".."
 | 
			
		||||
import "screenshot" as Screenshot
 | 
			
		||||
import "bar" as Bar
 | 
			
		||||
import "lock" as Lock
 | 
			
		||||
import "notifications" as Notifs
 | 
			
		||||
import "launcher" as Launcher
 | 
			
		||||
import "background"
 | 
			
		||||
 | 
			
		||||
ShellRoot {
 | 
			
		||||
	Component.onCompleted: [Lock.Controller, Launcher.Controller.init()]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue