From 69ce5607280662ed370d19ebfecf183b7c6dd3b9 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Sun, 2 Mar 2025 20:16:05 -0600 Subject: [PATCH] theme changes --- web/repertory/.cspell/words.txt | 1 + web/repertory/lib/main.dart | 4 ++++ web/repertory/lib/widgets/mount_widget.dart | 5 +++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/web/repertory/.cspell/words.txt b/web/repertory/.cspell/words.txt index 6cd7eaca..10d12a3e 100644 --- a/web/repertory/.cspell/words.txt +++ b/web/repertory/.cspell/words.txt @@ -1,3 +1,4 @@ cupertino cupertinoicons +fromargb onetwothree \ No newline at end of file diff --git a/web/repertory/lib/main.dart b/web/repertory/lib/main.dart index 82519aa5..9377f74b 100644 --- a/web/repertory/lib/main.dart +++ b/web/repertory/lib/main.dart @@ -27,10 +27,14 @@ class MyApp extends StatelessWidget { ), themeMode: ThemeMode.dark, darkTheme: ThemeData( + useMaterial3: true, brightness: Brightness.dark, colorScheme: ColorScheme.fromSeed( brightness: Brightness.dark, + onSurface: Colors.white70, seedColor: Colors.deepOrange, + surface: Color.fromARGB(255, 32, 33, 36), + surfaceContainerLow: Color.fromARGB(255, 41, 42, 45), ), ), initialRoute: '/', diff --git a/web/repertory/lib/widgets/mount_widget.dart b/web/repertory/lib/widgets/mount_widget.dart index c1f37f98..2fc982b9 100644 --- a/web/repertory/lib/widgets/mount_widget.dart +++ b/web/repertory/lib/widgets/mount_widget.dart @@ -24,7 +24,7 @@ class _MountWidgetState extends State { final textColor = Theme.of(context).colorScheme.onSurface; final subTextColor = Theme.of(context).brightness == Brightness.dark - ? Colors.white70 + ? Colors.white38 : Colors.black87; final isActive = mount.state == Icons.toggle_on; @@ -61,7 +61,8 @@ class _MountWidgetState extends State { trailing: IconButton( icon: Icon( mount.state, - color: isActive ? textColor : subTextColor, + color: + isActive ? Color.fromARGB(255, 153, 86, 66) : subTextColor, ), onPressed: _enabled