Explorar el Código

Map Gallery: Increase elevation of FileSelectionOverlay

ashilkn hace 2 años
padre
commit
bffd440d19

+ 3 - 1
lib/ui/components/bottom_action_bar/bottom_action_bar_widget.dart

@@ -17,6 +17,7 @@ class BottomActionBarWidget extends StatelessWidget {
   final VoidCallback? onCancel;
   final bool hasSmallerBottomPadding;
   final GalleryType type;
+  final Color? backgroundColor;
 
   BottomActionBarWidget({
     required this.expandedMenu,
@@ -26,6 +27,7 @@ class BottomActionBarWidget extends StatelessWidget {
     this.text,
     this.iconButtons,
     this.onCancel,
+    this.backgroundColor,
     super.key,
   });
 
@@ -42,7 +44,7 @@ class BottomActionBarWidget extends StatelessWidget {
         : 0;
     return Container(
       decoration: BoxDecoration(
-        color: colorScheme.backgroundElevated,
+        color: backgroundColor ?? colorScheme.backgroundElevated2,
         boxShadow: shadowFloatFaintLight,
       ),
       padding: EdgeInsets.only(

+ 3 - 2
lib/ui/map/map_pull_up_gallery.dart

@@ -57,11 +57,11 @@ class MapPullUpGallery extends StatelessWidget {
     logger,
   ) {
     final textTheme = getEnteTextTheme(context);
-
+    final colorScheme = getEnteColorScheme(context);
     return Container(
       decoration: BoxDecoration(
         borderRadius: const BorderRadius.vertical(top: Radius.circular(12)),
-        color: getEnteColorScheme(context).backgroundElevated,
+        color: colorScheme.backgroundElevated,
       ),
       child: Column(
         mainAxisAlignment: MainAxisAlignment.start,
@@ -134,6 +134,7 @@ class MapPullUpGallery extends StatelessWidget {
                       FileSelectionOverlayBar(
                         GalleryType.searchResults,
                         _selectedFiles,
+                        backgroundColor: colorScheme.backgroundElevated2,
                       )
                     ],
                   );

+ 3 - 0
lib/ui/viewer/actions/file_selection_overlay_bar.dart

@@ -19,12 +19,14 @@ class FileSelectionOverlayBar extends StatefulWidget {
   final SelectedFiles selectedFiles;
   final Collection? collection;
   final DeviceCollection? deviceCollection;
+  final Color? backgroundColor;
 
   const FileSelectionOverlayBar(
     this.galleryType,
     this.selectedFiles, {
     this.collection,
     this.deviceCollection,
+    this.backgroundColor,
     Key? key,
   }) : super(key: key);
 
@@ -151,6 +153,7 @@ class _FileSelectionOverlayBarState extends State<FileSelectionOverlayBar> {
               }
             },
             iconButtons: iconsButton,
+            backgroundColor: widget.backgroundColor,
           ),
         );
       },