]> git.proxmox.com Git - flutter/pve_flutter_frontend.git/commitdiff
improve colors for indicator/toggles
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 8 Sep 2022 09:55:47 +0000 (11:55 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 8 Sep 2022 14:06:26 +0000 (16:06 +0200)
so that it fits better with our color schemes instead of using the
flutter defaults (which are especially bad in dark mode for our scheme)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
lib/main.dart

index d46762615ec8212fbf49f85724bf3512e48cd54d..c9b862e40294db3b1807383af348a17051ace79f 100644 (file)
@@ -114,6 +114,8 @@ class MyApp extends StatelessWidget {
             background: ProxmoxColors.supportGreyTint75,
             onBackground: Colors.black,
           ),
+          toggleableActiveColor: ProxmoxColors.supportBlue,
+          indicatorColor: ProxmoxColors.orange,
           textButtonTheme: TextButtonThemeData(
             style: TextButton.styleFrom(primary: ProxmoxColors.grey),
           ),
@@ -145,6 +147,8 @@ class MyApp extends StatelessWidget {
             background: ProxmoxColors.grey,
             onBackground: ProxmoxColors.supportGreyTint75,
           ),
+          toggleableActiveColor: ProxmoxColors.blue500,
+          indicatorColor: ProxmoxColors.orange,
           // flutter has a weird logic where it pulls colors from different
           // scheme properties depending on light/dark mode, avoid that...
           appBarTheme: AppBarTheme(