Compare commits

...

2 Commits

Author SHA1 Message Date
Mikkeli Matlock
992270ed00 ideas 2026-02-08 03:20:07 +09:00
Mikkeli Matlock
83af09b47c ui: system status bar looks tweak 2026-02-08 03:20:00 +09:00
3 changed files with 7 additions and 12 deletions

5
IDEAS.md Normal file
View File

@@ -0,0 +1,5 @@
Note to keep inspirations lest I forget.
# Things to do, but not really urgent
- Fit OpenStreetMap somewhere and have a proper map widget in UI (not really navs, just show where I am)
- Integrate paho-mqtt into Python backend for some telemetry. Also set up mosquitto or whatnots on vps.

View File

@@ -206,9 +206,7 @@ class _DashboardScreenState extends State<DashboardScreen> {
wsState: _wsState, wsState: _wsState,
), ),
const SizedBox(height: 2), // Main content area - big widgets
// Main content area - big stat boxes
Expanded( Expanded(
flex: 7, flex: 7,
child: Row( child: Row(

View File

@@ -49,14 +49,6 @@ class SystemBar extends StatelessWidget {
return Container( return Container(
padding: const EdgeInsets.symmetric(horizontal: 24), padding: const EdgeInsets.symmetric(horizontal: 24),
decoration: BoxDecoration(
border: Border(
bottom: BorderSide(
color: theme.subdued.withValues(alpha: 0.3),
width: 1,
),
),
),
child: Row( child: Row(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
@@ -106,7 +98,7 @@ class SystemBar extends StatelessWidget {
_Indicator( _Indicator(
label: 'Mains', label: 'Mains',
value: voltage != null ? '${voltage!.toStringAsFixed(1)} V' : 'N/A', value: voltage != null ? '${voltage!.toStringAsFixed(1)} V' : 'N/A',
isAbnormal: voltage == null || voltage! < 11.9, isAbnormal: voltage == null || voltage! < 11.7 || voltage! > 14.5,
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
labelSize: labelSize, labelSize: labelSize,
valueSize: valueSize, valueSize: valueSize,