From f82ead149fb09db97132436d4e8e8bc6a66c6650 Mon Sep 17 00:00:00 2001 From: vishnukvmd Date: Fri, 16 Dec 2022 15:57:09 +0530 Subject: [PATCH] Fix icon color for the bottom bar --- .../bottom_action_bar/bottom_action_bar_widget.dart | 3 +++ lib/ui/viewer/actions/file_selection_overlay_bar.dart | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/lib/ui/components/bottom_action_bar/bottom_action_bar_widget.dart b/lib/ui/components/bottom_action_bar/bottom_action_bar_widget.dart index 1112f44be..dc0fd9670 100644 --- a/lib/ui/components/bottom_action_bar/bottom_action_bar_widget.dart +++ b/lib/ui/components/bottom_action_bar/bottom_action_bar_widget.dart @@ -151,6 +151,7 @@ class _ExpansionIconWidgetState extends State { @override Widget build(BuildContext context) { + final iconColor = getEnteColorScheme(context).blurStrokeBase; return AnimatedSwitcher( duration: const Duration(milliseconds: 200), switchInCurve: Curves.easeInOutExpo, @@ -163,6 +164,7 @@ class _ExpansionIconWidgetState extends State { }, icon: Icons.expand_more_outlined, iconButtonType: IconButtonType.primary, + iconColor: iconColor, ) : IconButtonWidget( key: const ValueKey(true), @@ -172,6 +174,7 @@ class _ExpansionIconWidgetState extends State { }, icon: Icons.more_horiz_outlined, iconButtonType: IconButtonType.primary, + iconColor: iconColor, ), ); } diff --git a/lib/ui/viewer/actions/file_selection_overlay_bar.dart b/lib/ui/viewer/actions/file_selection_overlay_bar.dart index dc6c374a5..3405656c5 100644 --- a/lib/ui/viewer/actions/file_selection_overlay_bar.dart +++ b/lib/ui/viewer/actions/file_selection_overlay_bar.dart @@ -7,6 +7,7 @@ import 'package:photos/models/device_collection.dart'; import 'package:photos/models/gallery_type.dart'; import 'package:photos/models/magic_metadata.dart'; import 'package:photos/models/selected_files.dart'; +import 'package:photos/theme/ente_theme.dart'; import 'package:photos/ui/components/bottom_action_bar/bottom_action_bar_widget.dart'; import 'package:photos/ui/components/icon_button_widget.dart'; import 'package:photos/ui/create_collection_page.dart'; @@ -59,11 +60,13 @@ class _FileSelectionOverlayBarState extends State { debugPrint( '$runtimeType building with ${widget.selectedFiles.files.length}'); final List iconsButton = []; + final iconColor = getEnteColorScheme(context).blurStrokeBase; if (showDeleteOption) { iconsButton.add( IconButtonWidget( icon: Icons.delete_outlined, iconButtonType: IconButtonType.primary, + iconColor: iconColor, onTap: () => showDeleteSheet(context, widget.selectedFiles), ), ); @@ -74,6 +77,7 @@ class _FileSelectionOverlayBarState extends State { IconButtonWidget( icon: Icons.unarchive, iconButtonType: IconButtonType.primary, + iconColor: iconColor, onTap: () => _onUnArchiveClick(), ), ); @@ -83,6 +87,7 @@ class _FileSelectionOverlayBarState extends State { IconButtonWidget( icon: Icons.visibility_off_outlined, iconButtonType: IconButtonType.primary, + iconColor: iconColor, onTap: () => _selectionCollectionForAction( CollectionActionType.unHide, ), @@ -93,6 +98,7 @@ class _FileSelectionOverlayBarState extends State { IconButtonWidget( icon: Icons.ios_share_outlined, iconButtonType: IconButtonType.primary, + iconColor: getEnteColorScheme(context).blurStrokeBase, onTap: () => shareSelected( context, shareButtonKey,