A whole bunch of changes
This commit is contained in:
parent
901ec678a3
commit
956231048e
122 changed files with 5442 additions and 914 deletions
|
|
@ -31,6 +31,20 @@ class AppTheme {
|
|||
static const _darkOutline = Color(0xFF7E877F); // --text-3
|
||||
static const _darkOutlineVariant = Color(0xFF262926); // --line
|
||||
|
||||
// --- Hero card (used by ReceiptsScreen) ---
|
||||
static const heroGradientLight = [Color(0xFF316F44), Color(0xFF1B4527)]; // --hero-from/to
|
||||
static const heroGradientDark = [Color(0xFF2E6B41), Color(0xFF17331F)];
|
||||
static const heroText = Colors.white; // --hero-text (same in both themes)
|
||||
static const heroTextSecondaryLight = Color(0xC7FFFFFF); // --hero-text-2, 78% white
|
||||
static const heroTextSecondaryDark = Color(0xB8FFFFFF); // --hero-text-2, 72% white
|
||||
|
||||
/// The hero card's gradient colors for whichever brightness is active.
|
||||
static List<Color> heroGradient(BuildContext context) =>
|
||||
Theme.of(context).brightness == Brightness.dark ? heroGradientDark : heroGradientLight;
|
||||
|
||||
static Color heroTextSecondary(BuildContext context) =>
|
||||
Theme.of(context).brightness == Brightness.dark ? heroTextSecondaryDark : heroTextSecondaryLight;
|
||||
|
||||
static ThemeData get light {
|
||||
final colorScheme = ColorScheme.fromSeed(
|
||||
seedColor: _lightPrimary,
|
||||
|
|
@ -91,6 +105,7 @@ class AppTheme {
|
|||
backgroundColor: colorScheme.surface,
|
||||
foregroundColor: colorScheme.onSurface,
|
||||
surfaceTintColor: Colors.transparent,
|
||||
centerTitle: true,
|
||||
titleTextStyle: TextStyle(
|
||||
color: colorScheme.onSurface,
|
||||
fontSize: 18,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue