theme and ui tweaks
This commit is contained in:
19
README.md
19
README.md
@@ -24,15 +24,16 @@ smart-serow/
|
|||||||
│ ├── images/ # Static images
|
│ ├── images/ # Static images
|
||||||
│ └── themes/ # Theme JSON files (→ generate_theme.py)
|
│ └── themes/ # Theme JSON files (→ generate_theme.py)
|
||||||
├── pi/
|
├── pi/
|
||||||
│ └── ui/ # Flutter app
|
│ ├── ui/ # Flutter app
|
||||||
│ ├── lib/
|
│ │ ├── lib/
|
||||||
│ │ ├── main.dart # Entry point
|
│ │ │ ├── main.dart # Entry point
|
||||||
│ │ ├── app_root.dart # Screen state management
|
│ │ │ ├── app_root.dart # Screen state management
|
||||||
│ │ ├── screens/ # Full-screen views
|
│ │ │ ├── screens/ # Full-screen views
|
||||||
│ │ ├── widgets/ # Reusable components
|
│ │ │ ├── widgets/ # Reusable components
|
||||||
│ │ ├── services/ # Singletons (config, sensors, theme)
|
│ │ │ ├── services/ # Singletons (config, sensors, theme)
|
||||||
│ │ └── theme/ # Colors and theme provider
|
│ │ │ └── theme/ # Colors and theme provider
|
||||||
│ └── config.json # Runtime config (navigator, paths)
|
│ │ └── config.json # Runtime config (navigator, paths)
|
||||||
|
│ └── backend/ # Python GPS service (Flask + gpsd)
|
||||||
├── scripts/ # Build, deploy, and setup helpers
|
├── scripts/ # Build, deploy, and setup helpers
|
||||||
└── pi_sysroot/ # Pi libraries for cross-linking (gitignored)
|
└── pi_sysroot/ # Pi libraries for cross-linking (gitignored)
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
{
|
{
|
||||||
"dark": {
|
"dark": {
|
||||||
"background": "#101010",
|
"background": "#404040",
|
||||||
"foreground": "#EAEAEA",
|
"foreground": "#EAEAEA",
|
||||||
"highlight": "#FA1504",
|
"highlight": "#FA1504",
|
||||||
"subdued": "#E47841"
|
"subdued": "#E47841"
|
||||||
},
|
},
|
||||||
"bright": {
|
"bright": {
|
||||||
"background": "#E47841",
|
"background": "#fda052",
|
||||||
"foreground": "#202020",
|
"foreground": "#202020",
|
||||||
"highlight": "#F0F0F0",
|
"highlight": "#FB2E0A",
|
||||||
"subdued": "#BC4600"
|
"subdued": "#EAEAEA"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,21 +72,23 @@ class _DashboardScreenState extends State<DashboardScreen> {
|
|||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
children: [
|
children: [
|
||||||
// Header
|
// Header (voltage
|
||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
children: [
|
children: [
|
||||||
Text(
|
Text(
|
||||||
'SMART SEROW',
|
'CHASSIS VOLTAGE ',
|
||||||
style: Theme.of(context).textTheme.titleMedium?.copyWith(
|
style: Theme.of(context).textTheme.titleMedium?.copyWith(
|
||||||
|
fontSize: 80,
|
||||||
color: theme.subdued,
|
color: theme.subdued,
|
||||||
letterSpacing: 2,
|
letterSpacing: 1,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
'${_voltage.toStringAsFixed(1)}V',
|
'${_voltage.toStringAsFixed(1)}V',
|
||||||
style: Theme.of(context).textTheme.titleMedium?.copyWith(
|
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<DashboardScreen> {
|
|||||||
Text(
|
Text(
|
||||||
'Pi Temp',
|
'Pi Temp',
|
||||||
style: Theme.of(context).textTheme.headlineSmall?.copyWith(
|
style: Theme.of(context).textTheme.headlineSmall?.copyWith(
|
||||||
|
fontSize: 80,
|
||||||
color: theme.subdued,
|
color: theme.subdued,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user