feat(app): dark mode uses a near-black gray with lighter layers instead of pure black

This commit is contained in:
2026-10-23 23:12:57 +01:00
parent f291d157fa
commit f6c90e96db
24 changed files with 142 additions and 13 deletions
@@ -1,3 +1,4 @@
import '../../../ui/theme/app_theme.dart';
import 'dart:math' as math;
import 'package:flutter/cupertino.dart';
@@ -75,6 +76,7 @@ class ChatBackgroundTaskDetail extends StatelessWidget {
);
if (cupertino) {
return CupertinoListSection.insetGrouped(
backgroundColor: AppColors.groupedBackground,
children: [Padding(padding: const EdgeInsets.all(12), child: content)],
);
}
@@ -1,3 +1,4 @@
import '../../../ui/theme/app_theme.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@@ -223,6 +224,7 @@ class ChatPermissionCard extends StatelessWidget {
);
Widget _cupertino(BuildContext context) => CupertinoListSection.insetGrouped(
backgroundColor: AppColors.groupedBackground,
// As the Material card: the transcript row owns the horizontal inset, so
// the card lines up with the message bubbles.
margin: const EdgeInsets.only(bottom: 12),
@@ -1,3 +1,4 @@
import '../../../ui/theme/app_theme.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@@ -136,6 +137,7 @@ class _ChatQuestionCardState extends State<ChatQuestionCard> {
: body;
if (cupertino) {
return CupertinoListSection.insetGrouped(
backgroundColor: AppColors.groupedBackground,
// As the Material card: the transcript row owns the horizontal inset,
// so the card lines up with the message bubbles.
margin: const EdgeInsets.only(bottom: 12),
@@ -165,10 +167,7 @@ class _ChatQuestionCardState extends State<ChatQuestionCard> {
: '${widget.form['title']}'.trim(),
style: chatCardTitleStyle(context, cupertino),
),
Text(
_statusLine(),
style: chatCardSecondaryStyle(context, cupertino),
),
Text(_statusLine(), style: chatCardSecondaryStyle(context, cupertino)),
if (error.isNotEmpty)
Padding(
padding: const EdgeInsets.only(top: 8),
@@ -229,5 +228,4 @@ class _ChatQuestionCardState extends State<ChatQuestionCard> {
_fields.every((field) => '${field['type'] ?? ''}' == 'external');
return allExternal ? chatQuestionConfirm : chatQuestionSubmit;
}
}