From 38229543afc97b2efc7a98dfd6f9d7e889b8f3dd Mon Sep 17 00:00:00 2001 From: Mikkeli Matlock Date: Mon, 26 Jan 2026 01:03:23 +0900 Subject: [PATCH] theme and ui tweaks --- README.md | 19 ++++++++++--------- extra/themes/rei.json | 8 ++++---- pi/ui/lib/screens/dashboard_screen.dart | 13 ++++++++----- 3 files changed, 22 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 1f25adc..6cfacb7 100644 --- a/README.md +++ b/README.md @@ -24,15 +24,16 @@ smart-serow/ │ ├── images/ # Static images │ └── themes/ # Theme JSON files (→ generate_theme.py) ├── pi/ -│ └── ui/ # Flutter app -│ ├── lib/ -│ │ ├── main.dart # Entry point -│ │ ├── app_root.dart # Screen state management -│ │ ├── screens/ # Full-screen views -│ │ ├── widgets/ # Reusable components -│ │ ├── services/ # Singletons (config, sensors, theme) -│ │ └── theme/ # Colors and theme provider -│ └── config.json # Runtime config (navigator, paths) +│ ├── ui/ # Flutter app +│ │ ├── lib/ +│ │ │ ├── main.dart # Entry point +│ │ │ ├── app_root.dart # Screen state management +│ │ │ ├── screens/ # Full-screen views +│ │ │ ├── widgets/ # Reusable components +│ │ │ ├── services/ # Singletons (config, sensors, theme) +│ │ │ └── theme/ # Colors and theme provider +│ │ └── config.json # Runtime config (navigator, paths) +│ └── backend/ # Python GPS service (Flask + gpsd) ├── scripts/ # Build, deploy, and setup helpers └── pi_sysroot/ # Pi libraries for cross-linking (gitignored) ``` diff --git a/extra/themes/rei.json b/extra/themes/rei.json index 76b988b..7505fec 100644 --- a/extra/themes/rei.json +++ b/extra/themes/rei.json @@ -1,14 +1,14 @@ { "dark": { - "background": "#101010", + "background": "#404040", "foreground": "#EAEAEA", "highlight": "#FA1504", "subdued": "#E47841" }, "bright": { - "background": "#E47841", + "background": "#fda052", "foreground": "#202020", - "highlight": "#F0F0F0", - "subdued": "#BC4600" + "highlight": "#FB2E0A", + "subdued": "#EAEAEA" } } diff --git a/pi/ui/lib/screens/dashboard_screen.dart b/pi/ui/lib/screens/dashboard_screen.dart index 57005a7..70eff1f 100644 --- a/pi/ui/lib/screens/dashboard_screen.dart +++ b/pi/ui/lib/screens/dashboard_screen.dart @@ -72,21 +72,23 @@ class _DashboardScreenState extends State { child: Column( crossAxisAlignment: CrossAxisAlignment.stretch, children: [ - // Header + // Header (voltage Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, + mainAxisAlignment: MainAxisAlignment.end, children: [ Text( - 'SMART SEROW', + 'CHASSIS VOLTAGE ', style: Theme.of(context).textTheme.titleMedium?.copyWith( + fontSize: 80, color: theme.subdued, - letterSpacing: 2, + letterSpacing: 1, ), ), Text( '${_voltage.toStringAsFixed(1)}V', style: Theme.of(context).textTheme.titleMedium?.copyWith( - color: _voltage < 12.0 ? theme.highlight : theme.foreground, + fontSize: 80, + color: _voltage < 11.9 ? theme.highlight : theme.foreground, ), ), ], @@ -112,6 +114,7 @@ class _DashboardScreenState extends State { Text( 'Pi Temp', style: Theme.of(context).textTheme.headlineSmall?.copyWith( + fontSize: 80, color: theme.subdued, ), ),