From 94e1a77a3c9b2e163272a228adb51edf7c617af1 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Thu, 19 Dec 2024 13:17:31 +0100 Subject: [PATCH] Make better theme --- lib/main.dart | 15 +++++++++++---- lib/player_ui/app_bar.dart | 3 ++- lib/player_ui/bottom_bar.dart | 1 + 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index fe25d61..959ae6a 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -20,11 +20,18 @@ class MyApp extends StatelessWidget { title: 'Gergle', theme: ThemeData( useMaterial3: true, - - // primaryColor: const Color(0x002244FF), - colorScheme: ColorScheme.fromSeed( - seedColor: Colors.lightBlue, + colorScheme: const ColorScheme( brightness: Brightness.dark, + primary: Color(0xFF86CECB), + onPrimary: Color.fromARGB(255, 200, 255, 252), + secondary: Color.fromARGB(255, 19, 122, 127), + onSecondary: Color.fromARGB(255, 25, 157, 164), + error: Colors.red, + onError: Colors.redAccent, + surface: Color.fromARGB(255, 12, 72, 75), + surfaceBright: Color.fromARGB(255, 19, 122, 127), + surfaceDim: Color.fromARGB(255, 8, 53, 54), + onSurface: Color.fromARGB(255, 255, 255, 255), ), ), home: MultiBlocProvider( diff --git a/lib/player_ui/app_bar.dart b/lib/player_ui/app_bar.dart index 03e1dc1..b8b4774 100644 --- a/lib/player_ui/app_bar.dart +++ b/lib/player_ui/app_bar.dart @@ -12,7 +12,8 @@ class PlayerUIAppBar { static AppBar appbar(BuildContext context) { return AppBar( title: const Text('Gergle'), - backgroundColor: Theme.of(context).primaryColor, + backgroundColor: Theme.of(context).colorScheme.surfaceBright, + surfaceTintColor: Colors.transparent, actions: [ IconButton( icon: const Icon(Icons.copy_all), diff --git a/lib/player_ui/bottom_bar.dart b/lib/player_ui/bottom_bar.dart index 8516ffc..97bb1c5 100644 --- a/lib/player_ui/bottom_bar.dart +++ b/lib/player_ui/bottom_bar.dart @@ -26,6 +26,7 @@ class PlayerUIBottomBar extends StatelessWidget { @override Widget build(BuildContext context) { return BottomAppBar( + color: Theme.of(context).colorScheme.surfaceBright, child: Row( children: [ IconButton(