quickshell and hyprland additions

This commit is contained in:
2026-03-15 13:56:00 +02:00
parent c9c27d1554
commit 1ad06b82a6
509 changed files with 68371 additions and 19 deletions

View File

@@ -0,0 +1,54 @@
pragma ComponentBehavior: Bound
import qs.config
import QtQuick
Text {
id: root
// from github.com/yannpelletier/twinshell with modifications
property bool animate: true
property string animateProp: "scale"
property real animateFrom: 0
property real animateTo: 1
property int animateDuration: Metrics.chronoDuration("small")
renderType: Text.NativeRendering
textFormat: Text.PlainText
color: Appearance.syntaxHighlightingTheme
font.family: Metrics.fontFamily("main")
font.pixelSize: Metrics.fontSize("normal")
Behavior on color {
enabled: Config.runtime.appearance.animations.enabled
ColorAnimation {
duration: Metrics.chronoDuration("small")
easing.type: Easing.BezierSpline
easing.bezierCurve: Appearance.animation.curves.standard
}
}
Behavior on text {
enabled: Config.runtime.appearance.animations.enabled && root.animate
SequentialAnimation {
Anim {
to: root.animateFrom
easing.bezierCurve: Appearance.animation.curves.standardAccel
}
PropertyAction {}
Anim {
to: root.animateTo
easing.bezierCurve: Appearance.animation.curves.standardDecel
}
}
}
component Anim: NumberAnimation {
target: root
property: root.animateProp
duration: root.animateDuration / 2
easing.type: Easing.BezierSpline
}
}