[mob][photos] refractor: update icon colors to use blurStrokePressed
This commit is contained in:
@@ -160,10 +160,11 @@ class AlbumListItemWidget extends StatelessWidget {
|
||||
iconButtonType: IconButtonType.secondary,
|
||||
iconColor: colorScheme.blurStrokeBase,
|
||||
)
|
||||
: const IconButtonWidget(
|
||||
key: ValueKey("unselected"),
|
||||
: IconButtonWidget(
|
||||
key: const ValueKey("unselected"),
|
||||
icon: Icons.chevron_right_outlined,
|
||||
iconButtonType: IconButtonType.secondary,
|
||||
iconColor: colorScheme.blurStrokePressed,
|
||||
),
|
||||
);
|
||||
},
|
||||
|
||||
@@ -73,13 +73,13 @@ class NewAlbumRowItemWidget extends StatelessWidget {
|
||||
dashPattern: const [3.75, 3.75],
|
||||
radius: const Radius.circular(2.35),
|
||||
padding: EdgeInsets.zero,
|
||||
color: enteColorScheme.strokeFaint,
|
||||
color: enteColorScheme.blurStrokePressed,
|
||||
child: SizedBox(
|
||||
height: height,
|
||||
width: width,
|
||||
child: Icon(
|
||||
Icons.add,
|
||||
color: enteColorScheme.strokeFaint,
|
||||
color: enteColorScheme.blurStrokePressed,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -10,6 +10,7 @@ import 'package:photos/models/collection/collection_items.dart';
|
||||
import "package:photos/models/selected_albums.dart";
|
||||
import "package:photos/service_locator.dart";
|
||||
import "package:photos/services/collections_service.dart";
|
||||
import "package:photos/theme/ente_theme.dart";
|
||||
import "package:photos/ui/collections/flex_grid_view.dart";
|
||||
import "package:photos/ui/components/buttons/icon_button_widget.dart";
|
||||
import "package:photos/ui/components/searchable_appbar.dart";
|
||||
@@ -104,7 +105,6 @@ class _CollectionListPageState extends State<CollectionListPage> {
|
||||
refreshCollections();
|
||||
},
|
||||
actions: [
|
||||
const SizedBox(width: 8),
|
||||
_sortMenu(collections!),
|
||||
],
|
||||
),
|
||||
@@ -130,6 +130,8 @@ class _CollectionListPageState extends State<CollectionListPage> {
|
||||
}
|
||||
|
||||
Widget _sortMenu(List<Collection> collections) {
|
||||
final colorTheme = getEnteColorScheme(context);
|
||||
|
||||
Text sortOptionText(AlbumSortKey key) {
|
||||
String text = key.toString();
|
||||
switch (key) {
|
||||
@@ -163,6 +165,7 @@ class _CollectionListPageState extends State<CollectionListPage> {
|
||||
? Icons.view_list_outlined
|
||||
: Icons.grid_view_outlined,
|
||||
iconButtonType: IconButtonType.secondary,
|
||||
iconColor: colorTheme.blurStrokePressed,
|
||||
onTap: () async {
|
||||
setState(() {
|
||||
albumViewType = albumViewType == AlbumViewType.grid
|
||||
@@ -172,7 +175,6 @@ class _CollectionListPageState extends State<CollectionListPage> {
|
||||
await localSettings.setAlbumViewType(albumViewType!);
|
||||
},
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
GestureDetector(
|
||||
onTapDown: (TapDownDetails details) async {
|
||||
final int? selectedValue = await showMenu<int>(
|
||||
@@ -198,9 +200,10 @@ class _CollectionListPageState extends State<CollectionListPage> {
|
||||
Bus.instance.fire(AlbumSortOrderChangeEvent());
|
||||
}
|
||||
},
|
||||
child: const IconButtonWidget(
|
||||
child: IconButtonWidget(
|
||||
icon: Icons.sort_outlined,
|
||||
iconButtonType: IconButtonType.secondary,
|
||||
iconColor: colorTheme.blurStrokePressed,
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
@@ -85,6 +85,7 @@ class _SearchableAppBarState extends State<SearchableAppBar> {
|
||||
icon: Icons.search,
|
||||
iconButtonType: IconButtonType.secondary,
|
||||
onTap: _activateSearch,
|
||||
iconColor: getEnteColorScheme(context).blurStrokePressed,
|
||||
),
|
||||
...?widget.actions,
|
||||
],
|
||||
|
||||
@@ -150,10 +150,11 @@ class QuickLinkAlbumItem extends StatelessWidget {
|
||||
iconButtonType: IconButtonType.secondary,
|
||||
iconColor: colorScheme.blurStrokeBase,
|
||||
)
|
||||
: const IconButtonWidget(
|
||||
key: ValueKey("unselected"),
|
||||
: IconButtonWidget(
|
||||
key: const ValueKey("unselected"),
|
||||
icon: Icons.chevron_right_outlined,
|
||||
iconButtonType: IconButtonType.secondary,
|
||||
iconColor: colorScheme.blurStrokePressed,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -10,6 +10,7 @@ import 'package:photos/events/user_logged_out_event.dart';
|
||||
import "package:photos/generated/l10n.dart";
|
||||
import 'package:photos/models/collection/collection_items.dart';
|
||||
import 'package:photos/services/collections_service.dart';
|
||||
import "package:photos/theme/ente_theme.dart";
|
||||
import "package:photos/ui/collections/album/row_item.dart";
|
||||
import "package:photos/ui/collections/collection_list_page.dart";
|
||||
import 'package:photos/ui/common/loading_widget.dart';
|
||||
@@ -106,6 +107,7 @@ class _SharedCollectionsTabState extends State<SharedCollectionsTab>
|
||||
SectionTitle(title: S.of(context).sharedWithYou);
|
||||
final SectionTitle sharedByYou =
|
||||
SectionTitle(title: S.of(context).sharedByYou);
|
||||
final colorTheme = getEnteColorScheme(context);
|
||||
return SingleChildScrollView(
|
||||
physics: const BouncingScrollPhysics(),
|
||||
child: Container(
|
||||
@@ -136,9 +138,10 @@ class _SharedCollectionsTabState extends State<SharedCollectionsTab>
|
||||
: null,
|
||||
Hero(tag: "incoming", child: sharedWithYou),
|
||||
trailingWidget: collections.incoming.isNotEmpty
|
||||
? const IconButtonWidget(
|
||||
? IconButtonWidget(
|
||||
icon: Icons.chevron_right,
|
||||
iconButtonType: IconButtonType.secondary,
|
||||
iconColor: colorTheme.blurStrokePressed,
|
||||
)
|
||||
: null,
|
||||
),
|
||||
@@ -158,6 +161,7 @@ class _SharedCollectionsTabState extends State<SharedCollectionsTab>
|
||||
collections.incoming[index],
|
||||
maxThumbnailWidth,
|
||||
tag: "incoming",
|
||||
showFileCount: false,
|
||||
),
|
||||
);
|
||||
},
|
||||
@@ -192,9 +196,10 @@ class _SharedCollectionsTabState extends State<SharedCollectionsTab>
|
||||
: null,
|
||||
Hero(tag: "outgoing", child: sharedByYou),
|
||||
trailingWidget: collections.outgoing.isNotEmpty
|
||||
? const IconButtonWidget(
|
||||
? IconButtonWidget(
|
||||
icon: Icons.chevron_right,
|
||||
iconButtonType: IconButtonType.secondary,
|
||||
iconColor: colorTheme.blurStrokePressed,
|
||||
)
|
||||
: null,
|
||||
),
|
||||
@@ -214,6 +219,7 @@ class _SharedCollectionsTabState extends State<SharedCollectionsTab>
|
||||
collections.outgoing[index],
|
||||
maxThumbnailWidth,
|
||||
tag: "outgoing",
|
||||
showFileCount: false,
|
||||
),
|
||||
);
|
||||
},
|
||||
@@ -252,9 +258,10 @@ class _SharedCollectionsTabState extends State<SharedCollectionsTab>
|
||||
),
|
||||
),
|
||||
trailingWidget: numberOfQuickLinks > maxQuickLinks
|
||||
? const IconButtonWidget(
|
||||
? IconButtonWidget(
|
||||
icon: Icons.chevron_right,
|
||||
iconButtonType: IconButtonType.secondary,
|
||||
iconColor: colorTheme.blurStrokePressed,
|
||||
)
|
||||
: null,
|
||||
),
|
||||
|
||||
@@ -146,9 +146,10 @@ class _UserCollectionsTabState extends State<UserCollectionsTab>
|
||||
tag: "OnDeviceAppTitle",
|
||||
child: SectionTitle(title: S.of(context).onDevice),
|
||||
),
|
||||
trailingWidget: const IconButtonWidget(
|
||||
trailingWidget: IconButtonWidget(
|
||||
icon: Icons.chevron_right,
|
||||
iconButtonType: IconButtonType.secondary,
|
||||
iconColor: getEnteColorScheme(context).blurStrokePressed,
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -171,9 +172,10 @@ class _UserCollectionsTabState extends State<UserCollectionsTab>
|
||||
);
|
||||
},
|
||||
SectionTitle(titleWithBrand: getOnEnteSection(context)),
|
||||
trailingWidget: const IconButtonWidget(
|
||||
trailingWidget: IconButtonWidget(
|
||||
icon: Icons.chevron_right,
|
||||
iconButtonType: IconButtonType.secondary,
|
||||
iconColor: getEnteColorScheme(context).blurStrokePressed,
|
||||
),
|
||||
padding: const EdgeInsets.only(left: 12, right: 6),
|
||||
),
|
||||
|
||||
@@ -133,11 +133,12 @@ class SearchableItemWidget extends StatelessWidget {
|
||||
],
|
||||
),
|
||||
),
|
||||
const Flexible(
|
||||
Flexible(
|
||||
flex: 1,
|
||||
child: IconButtonWidget(
|
||||
icon: Icons.chevron_right_outlined,
|
||||
iconButtonType: IconButtonType.secondary,
|
||||
iconColor: colorScheme.blurStrokePressed,
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
@@ -39,7 +39,7 @@ class SectionHeader extends StatelessWidget {
|
||||
padding: const EdgeInsets.fromLTRB(24, 12, 12, 12),
|
||||
child: Icon(
|
||||
Icons.chevron_right_outlined,
|
||||
color: getEnteColorScheme(context).strokeMuted,
|
||||
color: getEnteColorScheme(context).blurStrokePressed,
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user