feat(app): dark mode uses a near-black gray with lighter layers instead of pure black
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import '../../../../ui/theme/app_theme.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
@@ -156,6 +157,7 @@ class ChatCupertinoMessage extends StatelessWidget {
|
||||
container: true,
|
||||
explicitChildNodes: true,
|
||||
child: CupertinoListSection.insetGrouped(
|
||||
backgroundColor: AppColors.groupedBackground,
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(16),
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import '../../../../ui/theme/app_theme.dart';
|
||||
import '../../../../ui/layout/section_heading.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
|
||||
@@ -62,6 +63,7 @@ class CupertinoSessionList extends StatelessWidget {
|
||||
return [
|
||||
for (final group in groups)
|
||||
CupertinoListSection.insetGrouped(
|
||||
backgroundColor: AppColors.groupedBackground,
|
||||
// Styled as a section divider, not as another chat row.
|
||||
header: Builder(
|
||||
builder: (context) => Text(
|
||||
|
||||
Reference in New Issue
Block a user