Palette: seven roles (accent, good, caution added; highlight renamed alarm); no hard-coded colours left
background, foreground, subdued, accent (emphasis without danger), and the state gradient good → caution → alarm; surface and onFill derived. smart-serow's four-key themes still load (highlight = alarm; the new roles fall back). Material's scheme follows: buttons in accent instead of the alarm colour. Link state, mock banner, signal tiles, raw log, checklist button and marks, camera page all take palette roles. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DDwfd6Ki8UfG4hK6W5YpJz
This commit is contained in:
+4
-2
@@ -10,6 +10,8 @@ import 'dart:typed_data';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import 'theme/palette.dart';
|
||||
|
||||
const camviewPort = 7710;
|
||||
|
||||
class CamView extends ChangeNotifier {
|
||||
@@ -165,7 +167,7 @@ class _CamViewPageState extends State<CamViewPage> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: Colors.black,
|
||||
backgroundColor: AppTheme.of(context).background,
|
||||
appBar: AppBar(title: const Text('Camera (test)')),
|
||||
body: SafeArea(
|
||||
child: ListenableBuilder(
|
||||
@@ -182,7 +184,7 @@ class _CamViewPageState extends State<CamViewPage> {
|
||||
cam.available == false
|
||||
? 'Camera unavailable on the Orin'
|
||||
: cam.status,
|
||||
style: const TextStyle(color: Colors.white70),
|
||||
style: TextStyle(color: AppTheme.of(context).subdued),
|
||||
),
|
||||
)
|
||||
: Image.memory(
|
||||
|
||||
Reference in New Issue
Block a user