animScale config option

This commit is contained in:
Zacharias-Brohn
2025-11-29 11:32:08 +01:00
parent e90abf5620
commit 5134e006b3
7 changed files with 23 additions and 16 deletions
+1
View File
@@ -1,5 +1,6 @@
import Quickshell.Io
import qs.Modules
import qs.Config
JsonObject {
property int wallFadeDuration: MaterialEasing.standardTime
+2
View File
@@ -21,6 +21,7 @@ Singleton {
property alias barConfig: adapter.barConfig
property alias transparency: adapter.transparency
property alias baseFont: adapter.baseFont
property alias animScale: adapter.animScale
FileView {
id: root
@@ -50,6 +51,7 @@ Singleton {
property BarConfig barConfig: BarConfig {}
property Transparency transparency: Transparency {}
property string baseFont: "Segoe UI Variable Text"
property real animScale: 1.0
}
}
}
@@ -4,22 +4,24 @@ import Quickshell
Singleton {
id: root
property real scale: Config.animScale
readonly property list<real> emphasized: [0.05, 0, 2 / 15, 0.06, 1 / 6, 0.4, 5 / 24, 0.82, 0.25, 1, 1, 1]
readonly property list<real> emphasizedAccel: [0.3, 0, 0.8, 0.15, 1, 1]
readonly property int emphasizedAccelTime: 200
readonly property int emphasizedAccelTime: 200 * scale
readonly property list<real> emphasizedDecel: [0.05, 0.7, 0.1, 1, 1, 1]
readonly property int emphasizedDecelTime: 400
readonly property int emphasizedTime: 500
readonly property int emphasizedDecelTime: 400 * scale
readonly property int emphasizedTime: 500 * scale
readonly property list<real> expressiveDefaultSpatial: [0.38, 1.21, 0.22, 1.00, 1, 1]
readonly property int expressiveDefaultSpatialTime: 500
readonly property int expressiveDefaultSpatialTime: 500 * scale
readonly property list<real> expressiveEffects: [0.34, 0.80, 0.34, 1.00, 1, 1]
readonly property int expressiveEffectsTime: 200
readonly property int expressiveEffectsTime: 200 * scale
readonly property list<real> expressiveFastSpatial: [0.42, 1.67, 0.21, 0.90, 1, 1]
readonly property int expressiveFastSpatialTime: 350
readonly property int expressiveFastSpatialTime: 350 * scale
readonly property list<real> standard: [0.2, 0, 0, 1, 1, 1]
readonly property list<real> standardAccel: [0.3, 0, 1, 1, 1, 1]
readonly property int standardAccelTime: 200
readonly property int standardAccelTime: 200 * scale
readonly property list<real> standardDecel: [0, 0, 0, 1, 1, 1]
readonly property int standardDecelTime: 250
readonly property int standardTime: 300
readonly property int standardDecelTime: 250 * scale
readonly property int standardTime: 300 * scale
}
+2 -1
View File
@@ -1,8 +1,9 @@
import QtQuick
import qs.Modules
import qs.Config
NumberAnimation {
duration: 400
duration: MaterialEasing.standardTime
easing.type: Easing.BezierSpline
easing.bezierCurve: MaterialEasing.standard
}
+2 -1
View File
@@ -1,8 +1,9 @@
import QtQuick
import qs.Modules
import qs.Config
ColorAnimation {
duration: 400
duration: MaterialEasing.standardTime
easing.type: Easing.BezierSpline
easing.bezierCurve: MaterialEasing.standard
}
+3 -3
View File
@@ -80,7 +80,7 @@ Scope {
id: openAnim
Anim {
target: appListRect
duration: MaterialEasing.expressiveFastSpatialTime
duration: MaterialEasing.expressiveDefaultSpatialTime
easing.bezierCurve: MaterialEasing.expressiveDefaultSpatial
property: "implicitHeight"
from: 40
@@ -116,11 +116,11 @@ Scope {
id: closeAnim
Anim {
target: appListRect
duration: MaterialEasing.expressiveFastSpatialTime
duration: MaterialEasing.expressiveDefaultSpatialTime
easing.bezierCurve: MaterialEasing.expressiveDefaultSpatial
property: "implicitHeight"
from: appListContainer.implicitHeight
to: 40
to: 0
}
SequentialAnimation {
PauseAnimation { duration: 120 }
+2 -2
View File
@@ -22,7 +22,7 @@ Item {
property string queuedMode
readonly property bool isDetached: detachedMode.length > 0
property int animLength: 400
property int animLength: MaterialEasing.emphasizedDecelTime
property list<real> animCurve: MaterialEasing.emphasized
function detach(mode: string): void {
@@ -39,7 +39,7 @@ Item {
function close(): void {
hasCurrent = false;
animCurve = MaterialEasing.emphasizedDecel;
animLength = 400;
animLength = MaterialEasing.emphasizedDecelTime;
detachedMode = "";
animCurve = MaterialEasing.emphasized;
}