import 'package:flutter/material.dart'; class MeloTheme { static const Color rot = Color(0xFFCC0000); static const Color rotHell = Color(0x33CC0000); static const Color schwarz = Color(0xFF0D0D0D); static const Color dunkel1 = Color(0xFF1A1A1A); static const Color dunkel2 = Color(0xFF2A2A2A); static const Color textPrimaer = Color(0xFFFFFFFF); static const Color textSekundaer = Color(0xFF888888); /// Akzentfarbe – wechselt pro angemeldeter Person (Login-Effekt). /// UI hängt per ValueListenableBuilder an [akzentNotifier]. static final ValueNotifier akzentNotifier = ValueNotifier(rot); static Color get akzent => akzentNotifier.value; static set akzent(Color farbe) => akzentNotifier.value = farbe; static ThemeData get theme => ThemeData( brightness: Brightness.dark, scaffoldBackgroundColor: schwarz, colorScheme: ColorScheme.dark( primary: akzent, secondary: akzent, surface: schwarz, ), appBarTheme: const AppBarTheme( backgroundColor: schwarz, foregroundColor: textPrimaer, elevation: 0, ), bottomNavigationBarTheme: BottomNavigationBarThemeData( backgroundColor: schwarz, selectedItemColor: akzent, unselectedItemColor: textSekundaer, ), cardTheme: CardThemeData( color: dunkel1, shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(14), ), ), chipTheme: ChipThemeData( backgroundColor: dunkel1, selectedColor: akzent, labelStyle: const TextStyle(color: textPrimaer), shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(20), ), ), ); }