[pve-devel] [PATCH pve-flutter-frontend 2/9] resource tab: improve colors for headers

Dominik Csapak d.csapak at proxmox.com
Fri Apr 12 10:04:51 CEST 2024


since material 3, the colors are different, and there is no 'muted'
color for the unselected labels anymore. instead use secondary for the
selected, and onPrimary for the unselected ones.

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 lib/pages/main_layout_slim.dart | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/pages/main_layout_slim.dart b/lib/pages/main_layout_slim.dart
index 2a5e646..ec80dba 100644
--- a/lib/pages/main_layout_slim.dart
+++ b/lib/pages/main_layout_slim.dart
@@ -1056,8 +1056,11 @@ class MobileAccessManagement extends StatelessWidget {
           automaticallyImplyLeading: false,
           bottom: TabBar(
               isScrollable: true,
-              labelStyle:
+              unselectedLabelStyle:
                   TextStyle(color: Theme.of(context).colorScheme.onPrimary),
+              labelStyle:
+                  TextStyle(color: Theme.of(context).colorScheme.secondary),
+              indicatorColor: Theme.of(context).colorScheme.secondary,
               tabs: const [
                 Tab(
                   text: 'Users',
-- 
2.39.2





More information about the pve-devel mailing list