From 881b5f4efd4cb41cbe39b8f6f95df67cd3ff8728 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Fri, 15 Aug 2025 10:09:30 -0500 Subject: [PATCH] [ui] UI theme should match repertory blue #61 --- web/repertory/lib/main.dart | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/web/repertory/lib/main.dart b/web/repertory/lib/main.dart index 544fed3a..ed724e9d 100644 --- a/web/repertory/lib/main.dart +++ b/web/repertory/lib/main.dart @@ -41,6 +41,10 @@ class MyApp extends StatefulWidget { } class _MyAppState extends State { + static const Color accentBlue = Color(0xFF1050A0); + static const Color surfaceDark = Color(0xFF202124); + static const Color surfaceContainerLowDark = Color(0xFF292A2D); + @override Widget build(context) { final snackBarTheme = SnackBarThemeData( @@ -56,12 +60,26 @@ class _MyAppState extends State { brightness: Brightness.dark, colorScheme: ColorScheme.fromSeed( brightness: Brightness.dark, + seedColor: accentBlue, onSurface: Colors.white70, - seedColor: Colors.deepOrange, - surface: Color.fromARGB(255, 32, 33, 36), - surfaceContainerLow: Color.fromARGB(255, 41, 42, 45), + surface: surfaceDark, + surfaceContainerLow: surfaceContainerLowDark, ), + scaffoldBackgroundColor: surfaceDark, snackBarTheme: snackBarTheme, + appBarTheme: const AppBarTheme(scrolledUnderElevation: 0), + inputDecorationTheme: const InputDecorationTheme( + focusedBorder: UnderlineInputBorder(borderSide: BorderSide(width: 2)), + ), + elevatedButtonTheme: ElevatedButtonThemeData( + style: ElevatedButton.styleFrom( + minimumSize: const Size.fromHeight(40), + ), + ), + filledButtonTheme: FilledButtonThemeData( + style: FilledButton.styleFrom(minimumSize: const Size.fromHeight(40)), + ), + dividerTheme: const DividerThemeData(thickness: 0.6, space: 0), ), title: constants.appTitle, initialRoute: '/auth',