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
+11 -5
View File
@@ -1,3 +1,4 @@
import '../ui/theme/app_theme.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
@@ -39,10 +40,15 @@ class MyApp extends StatelessWidget {
final router = routerConfig;
if (cupertino ?? _platformIsCupertino) {
if (router != null) {
return CupertinoApp.router(title: 'Pipelines', routerConfig: router);
return CupertinoApp.router(
title: 'Pipelines',
theme: appCupertinoTheme,
routerConfig: router,
);
}
return CupertinoApp(
title: 'Pipelines',
theme: appCupertinoTheme,
home: AdaptiveShell(
destinationBodies: destinationBodies,
cupertino: true,
@@ -54,16 +60,16 @@ class MyApp extends StatelessWidget {
if (router != null) {
return MaterialApp.router(
title: 'Pipelines',
theme: ThemeData(),
darkTheme: ThemeData(brightness: Brightness.dark),
theme: appLightTheme(),
darkTheme: appDarkTheme(),
themeMode: ThemeMode.system,
routerConfig: router,
);
}
return MaterialApp(
title: 'Pipelines',
theme: ThemeData(),
darkTheme: ThemeData(brightness: Brightness.dark),
theme: appLightTheme(),
darkTheme: appDarkTheme(),
themeMode: ThemeMode.system,
home: AdaptiveShell(
destinationBodies: destinationBodies,