Make better theme
This commit is contained in:
parent
6f90bb6fb5
commit
94e1a77a3c
@ -20,11 +20,18 @@ class MyApp extends StatelessWidget {
|
|||||||
title: 'Gergle',
|
title: 'Gergle',
|
||||||
theme: ThemeData(
|
theme: ThemeData(
|
||||||
useMaterial3: true,
|
useMaterial3: true,
|
||||||
|
colorScheme: const ColorScheme(
|
||||||
// primaryColor: const Color(0x002244FF),
|
|
||||||
colorScheme: ColorScheme.fromSeed(
|
|
||||||
seedColor: Colors.lightBlue,
|
|
||||||
brightness: Brightness.dark,
|
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(
|
home: MultiBlocProvider(
|
||||||
|
@ -12,7 +12,8 @@ class PlayerUIAppBar {
|
|||||||
static AppBar appbar(BuildContext context) {
|
static AppBar appbar(BuildContext context) {
|
||||||
return AppBar(
|
return AppBar(
|
||||||
title: const Text('Gergle'),
|
title: const Text('Gergle'),
|
||||||
backgroundColor: Theme.of(context).primaryColor,
|
backgroundColor: Theme.of(context).colorScheme.surfaceBright,
|
||||||
|
surfaceTintColor: Colors.transparent,
|
||||||
actions: [
|
actions: [
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: const Icon(Icons.copy_all),
|
icon: const Icon(Icons.copy_all),
|
||||||
|
@ -26,6 +26,7 @@ class PlayerUIBottomBar extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return BottomAppBar(
|
return BottomAppBar(
|
||||||
|
color: Theme.of(context).colorScheme.surfaceBright,
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
IconButton(
|
IconButton(
|
||||||
|
Loading…
Reference in New Issue
Block a user