diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-19 16:39:59 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-19 16:39:59 +1000 |
| commit | 554892a363cd492a9a2268a1fecc9b739d7b8c9c (patch) | |
| tree | 0032296713cc2984cfb34359eddffe5d7da203c1 /modules | |
| parent | dashboard: fix blurry media pane (diff) | |
| download | caelestia-shell-554892a363cd492a9a2268a1fecc9b739d7b8c9c.tar.gz caelestia-shell-554892a363cd492a9a2268a1fecc9b739d7b8c9c.tar.bz2 caelestia-shell-554892a363cd492a9a2268a1fecc9b739d7b8c9c.zip | |
dashboard: fix tab indicator offset
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/dashboard/Content.qml | 2 | ||||
| -rw-r--r-- | modules/dashboard/Tabs.qml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/dashboard/Content.qml b/modules/dashboard/Content.qml index dedee33..d16d374 100644 --- a/modules/dashboard/Content.qml +++ b/modules/dashboard/Content.qml @@ -26,7 +26,7 @@ Item { anchors.topMargin: Appearance.padding.normal anchors.margins: Appearance.padding.large - nonAnimWidth: root.nonAnimWidth + nonAnimWidth: root.nonAnimWidth - anchors.margins * 2 currentIndex: view.currentIndex } diff --git a/modules/dashboard/Tabs.qml b/modules/dashboard/Tabs.qml index e678e6a..f45bdea 100644 --- a/modules/dashboard/Tabs.qml +++ b/modules/dashboard/Tabs.qml @@ -55,7 +55,7 @@ Item { x: { const tab = bar.currentItem; - const width = (root.nonAnimWidth - Config.dashboard.sizes.tabIndicatorSpacing * (bar.count - 1) * 2) / bar.count; + const width = (root.nonAnimWidth - bar.spacing * (bar.count - 1)) / bar.count; return width * tab.TabBar.index + (width - tab.implicitWidth) / 2; } |