Make better theme

This commit is contained in:
Oystein Kristoffer Tveit 2024-12-19 13:17:31 +01:00
parent 6f90bb6fb5
commit 94e1a77a3c
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
3 changed files with 14 additions and 5 deletions

View File

@ -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(

View File

@ -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),

View File

@ -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(