removed logo expand animation

This commit is contained in:
SomeElse
2026-05-17 22:41:59 +00:00
parent 6db876fc8a
commit 1b7588578b
2 changed files with 1 additions and 17 deletions

View File

@@ -19,8 +19,6 @@ ModuleChip {
onLauncherActiveChanged: { onLauncherActiveChanged: {
spinTarget += launcherActive ? 360 : -360 spinTarget += launcherActive ? 360 : -360
if (launcherActive && !clickAnim.running)
clickAnim.restart()
} }
width: Cfg.Config.logoIconSize * 2 + 4 width: Cfg.Config.logoIconSize * 2 + 4
@@ -35,20 +33,12 @@ ModuleChip {
TapHandler { TapHandler {
onTapped: { onTapped: {
clickAnim.restart()
if (root.targetScreen && root.targetScreen.launcher) { if (root.targetScreen && root.targetScreen.launcher) {
root.targetScreen.launcher.toggle() root.targetScreen.launcher.toggle()
} }
} }
} }
SequentialAnimation {
id: clickAnim
NumberAnimation { target: logoText; property: "scale"; from: 1.0; to: 0.7; duration: 60; easing.type: Easing.OutQuad }
NumberAnimation { target: logoText; property: "scale"; from: 0.7; to: 1.2; duration: 150; easing.type: Easing.OutBack }
NumberAnimation { target: logoText; property: "scale"; to: 1.0; duration: 100 }
}
Text { Text {
id: logoText id: logoText
anchors.centerIn: parent anchors.centerIn: parent
@@ -59,12 +49,6 @@ ModuleChip {
Behavior on color { ColorAnimation { duration: 250 } } Behavior on color { ColorAnimation { duration: 250 } }
scale: clickAnim.running ? logoText.scale : 1.0
Behavior on scale {
enabled: !clickAnim.running
NumberAnimation { duration: 250; easing.type: Easing.OutBack }
}
rotation: root.spinTarget rotation: root.spinTarget
Behavior on rotation { Behavior on rotation {
NumberAnimation { NumberAnimation {

View File

@@ -19,7 +19,7 @@ QtObject {
// ──────────────────────────────────────────────────────────────────────── // ────────────────────────────────────────────────────────────────────────
// ── Position & Dimensions ───────────────────────────────────────────────── // ── Position & Dimensions ─────────────────────────────────────────────────
property string barPosition: "top" property string barPosition: "bottom"
property int barHeight: 35 property int barHeight: 35
property int margin: 20 property int margin: 20
property int radius: 26 property int radius: 26