From 46cf6531d9fc8f509f93a1ad712a7cd48aa2b7ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20B=C3=B6sche?= Date: Fri, 16 Jan 2026 14:04:48 +0100 Subject: [PATCH] Refactor dialog background color and button styles in document viewer and home page --- b0esche_cloud/lib/pages/document_viewer.dart | 6 +++--- b0esche_cloud/lib/pages/home_page.dart | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/b0esche_cloud/lib/pages/document_viewer.dart b/b0esche_cloud/lib/pages/document_viewer.dart index c5bb84f..71d37e2 100644 --- a/b0esche_cloud/lib/pages/document_viewer.dart +++ b/b0esche_cloud/lib/pages/document_viewer.dart @@ -532,7 +532,7 @@ class _DocumentViewerModalState extends State { context: context, builder: (BuildContext context) { return Dialog( - backgroundColor: AppTheme.primaryBackground.withValues(alpha: 0.65), + backgroundColor: Colors.transparent, child: ConstrainedBox( constraints: const BoxConstraints(maxWidth: 400), child: Container( @@ -566,7 +566,7 @@ class _DocumentViewerModalState extends State { onPressed: () => Navigator.of(context).pop(false), child: const Text( 'Cancel', - style: TextStyle(color: Colors.red), + style: TextStyle(color: AppTheme.primaryText), ), ), TextButton( @@ -974,7 +974,7 @@ class _DocumentViewerState extends State { context: context, builder: (BuildContext context) { return Dialog( - backgroundColor: AppTheme.primaryBackground.withValues(alpha: 0.65), + backgroundColor: Colors.transparent, child: ConstrainedBox( constraints: const BoxConstraints(maxWidth: 400), child: Container( diff --git a/b0esche_cloud/lib/pages/home_page.dart b/b0esche_cloud/lib/pages/home_page.dart index 390289c..ec862ef 100644 --- a/b0esche_cloud/lib/pages/home_page.dart +++ b/b0esche_cloud/lib/pages/home_page.dart @@ -144,7 +144,10 @@ class _HomePageState extends State with TickerProviderStateMixin { children: [ ModernGlassButton( onPressed: () => Navigator.of(dialogContext).pop(), - child: const Text('Cancel'), + child: Text( + 'Cancel', + style: TextStyle(color: Colors.red[400]), + ), ), const SizedBox(width: 16), ModernGlassButton( @@ -158,10 +161,7 @@ class _HomePageState extends State with TickerProviderStateMixin { Navigator.of(dialogContext).pop(); } }, - child: Text( - 'Create', - style: TextStyle(color: Colors.red[400]), - ), + child: const Text('Create'), ), ], ),