diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-18 00:19:51 +0800 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-18 00:19:51 +0800 |
| commit | d7a24880818f266543ea3cbafda372c994fcbf45 (patch) | |
| tree | 8f175c358662aa7a8be92e12608e8e30eb229f4a /modules/dashboard | |
| parent | dashboard: design layout (diff) | |
| download | caelestia-shell-d7a24880818f266543ea3cbafda372c994fcbf45.tar.gz caelestia-shell-d7a24880818f266543ea3cbafda372c994fcbf45.tar.bz2 caelestia-shell-d7a24880818f266543ea3cbafda372c994fcbf45.zip | |
dashboard: fill current tab icon
Diffstat (limited to 'modules/dashboard')
| -rw-r--r-- | modules/dashboard/Tabs.qml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/dashboard/Tabs.qml b/modules/dashboard/Tabs.qml index 49f836b..5b9793a 100644 --- a/modules/dashboard/Tabs.qml +++ b/modules/dashboard/Tabs.qml @@ -84,6 +84,7 @@ Item { required property string iconName readonly property bool current: TabBar.tabBar.currentItem === this + property real fill: current ? 1 : 0 background: null @@ -204,6 +205,9 @@ Item { text: tab.iconName color: tab.current ? Colours.palette.m3primary : Colours.palette.m3onSurfaceVariant font.pointSize: Appearance.font.size.large + font.variableAxes: ({ + FILL: tab.fill + }) } StyledText { @@ -215,6 +219,15 @@ Item { text: tab.text color: tab.current ? Colours.palette.m3primary : Colours.palette.m3onSurfaceVariant } + + } + + Behavior on fill { + NumberAnimation { + duration: Appearance.anim.durations.normal + easing.type: Easing.BezierSpline + easing.bezierCurve: Appearance.anim.curves.standard + } } } |