From 36e3171391bc7a9f39a67e430b53c45502e0f2cc Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 27 Apr 2025 23:49:15 +0200 Subject: [PATCH] separator lines for tabbar --- .../modules/common/widgets/PrimaryTabBar.qml | 7 +++++++ .config/quickshell/modules/overview/SearchWidget.qml | 2 +- .../quickshell/modules/sidebarRight/SidebarRight.qml | 2 +- .../sidebarRight/calendar/CalendarDayButton.qml | 2 +- .../modules/sidebarRight/todo/TodoWidget.qml | 12 +++++++++++- 5 files changed, 21 insertions(+), 4 deletions(-) diff --git a/.config/quickshell/modules/common/widgets/PrimaryTabBar.qml b/.config/quickshell/modules/common/widgets/PrimaryTabBar.qml index 97eb3c6f..7be539a7 100644 --- a/.config/quickshell/modules/common/widgets/PrimaryTabBar.qml +++ b/.config/quickshell/modules/common/widgets/PrimaryTabBar.qml @@ -83,4 +83,11 @@ ColumnLayout { } } + + Rectangle { // Tabbar bottom border + id: tabBarBottomBorder + Layout.fillWidth: true + height: 1 + color: Appearance.m3colors.m3outlineVariant + } } diff --git a/.config/quickshell/modules/overview/SearchWidget.qml b/.config/quickshell/modules/overview/SearchWidget.qml index 5cd2338d..461f0dcf 100644 --- a/.config/quickshell/modules/overview/SearchWidget.qml +++ b/.config/quickshell/modules/overview/SearchWidget.qml @@ -254,7 +254,7 @@ Item { // Wrapper visible: root.showResults Layout.fillWidth: true height: 1 - color: Appearance.m3colors.m3outline + color: Appearance.m3colors.m3outlineVariant } ListView { // App results diff --git a/.config/quickshell/modules/sidebarRight/SidebarRight.qml b/.config/quickshell/modules/sidebarRight/SidebarRight.qml index 537fa024..8b08af8e 100644 --- a/.config/quickshell/modules/sidebarRight/SidebarRight.qml +++ b/.config/quickshell/modules/sidebarRight/SidebarRight.qml @@ -6,12 +6,12 @@ import "./quickToggles/" import QtQuick import QtQuick.Controls import QtQuick.Layouts +import Qt5Compat.GraphicalEffects import Quickshell.Io import Quickshell import Quickshell.Widgets import Quickshell.Wayland import Quickshell.Hyprland -import Qt5Compat.GraphicalEffects Scope { property int sidebarWidth: Appearance.sizes.sidebarWidth diff --git a/.config/quickshell/modules/sidebarRight/calendar/CalendarDayButton.qml b/.config/quickshell/modules/sidebarRight/calendar/CalendarDayButton.qml index da4f5c8f..aa523c75 100644 --- a/.config/quickshell/modules/sidebarRight/calendar/CalendarDayButton.qml +++ b/.config/quickshell/modules/sidebarRight/calendar/CalendarDayButton.qml @@ -42,7 +42,7 @@ Button { font.weight: bold ? Font.Bold : isToday == -1 ? Font.Normal : Font.DemiBold color: (isToday == 1) ? Appearance.m3colors.m3onPrimary : (isToday == 0) ? Appearance.colors.colOnLayer1 : - Appearance.m3colors.m3outline + Appearance.m3colors.m3outlineVariant Behavior on color { ColorAnimation { diff --git a/.config/quickshell/modules/sidebarRight/todo/TodoWidget.qml b/.config/quickshell/modules/sidebarRight/todo/TodoWidget.qml index 6878754e..ba6dd67f 100644 --- a/.config/quickshell/modules/sidebarRight/todo/TodoWidget.qml +++ b/.config/quickshell/modules/sidebarRight/todo/TodoWidget.qml @@ -113,6 +113,13 @@ Item { } } + Rectangle { // Tabbar bottom border + id: tabBarBottomBorder + Layout.fillWidth: true + height: 1 + color: Appearance.m3colors.m3outlineVariant + } + SwipeView { id: swipeView Layout.topMargin: 10 @@ -120,7 +127,10 @@ Item { Layout.fillHeight: true clip: true currentIndex: currentTab - onCurrentIndexChanged: currentTab = currentIndex + onCurrentIndexChanged: { + tabIndicator.enableIndicatorAnimation = true + currentTab = currentIndex + } // To Do tab TaskList {