diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-18 00:38:10 +0800 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-18 00:38:10 +0800 |
| commit | 52d0c0807bd06a221d85bb7d86d32f9a799763ad (patch) | |
| tree | 49cb78904887d7c19dacadb337adb59ef4217069 /modules/dashboard/Tabs.qml | |
| parent | feat: dashboard user (diff) | |
| download | caelestia-shell-52d0c0807bd06a221d85bb7d86d32f9a799763ad.tar.gz caelestia-shell-52d0c0807bd06a221d85bb7d86d32f9a799763ad.tar.bz2 caelestia-shell-52d0c0807bd06a221d85bb7d86d32f9a799763ad.zip | |
dashboard: scale face based on info height
Also increase spacing
Diffstat (limited to 'modules/dashboard/Tabs.qml')
| -rw-r--r-- | modules/dashboard/Tabs.qml | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/modules/dashboard/Tabs.qml b/modules/dashboard/Tabs.qml index 5b9793a..4a1fa0e 100644 --- a/modules/dashboard/Tabs.qml +++ b/modules/dashboard/Tabs.qml @@ -84,7 +84,6 @@ Item { required property string iconName readonly property bool current: TabBar.tabBar.currentItem === this - property real fill: current ? 1 : 0 background: null @@ -204,10 +203,16 @@ Item { text: tab.iconName color: tab.current ? Colours.palette.m3primary : Colours.palette.m3onSurfaceVariant + fill: tab.current ? 1 : 0 font.pointSize: Appearance.font.size.large - font.variableAxes: ({ - FILL: tab.fill - }) + + Behavior on fill { + NumberAnimation { + duration: Appearance.anim.durations.normal + easing.type: Easing.BezierSpline + easing.bezierCurve: Appearance.anim.curves.standard + } + } } StyledText { @@ -221,14 +226,6 @@ Item { } } - - Behavior on fill { - NumberAnimation { - duration: Appearance.anim.durations.normal - easing.type: Easing.BezierSpline - easing.bezierCurve: Appearance.anim.curves.standard - } - } } component Anim: NumberAnimation { |