From 52d0c0807bd06a221d85bb7d86d32f9a799763ad Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 18 May 2025 00:38:10 +0800 Subject: dashboard: scale face based on info height Also increase spacing --- modules/dashboard/Tabs.qml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'modules/dashboard/Tabs.qml') 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 { -- cgit v1.2.3-freya