Skip to content

Commit

Permalink
Merge pull request #1541 from soumyaDghosh/main
Browse files Browse the repository at this point in the history
[store_page]: change the button icons based on `selected`
  • Loading branch information
BLKKKBVSIK authored Jan 3, 2024
2 parents 9499f9a + 4d94610 commit 8f69646
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/app_center/lib/src/snapd/snap_category_enum.dart
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ enum SnapCategoryEnum {
artAndDesign =>
selected ? YaruIcons.rule_and_pen_filled : YaruIcons.rule_and_pen,
booksAndReference => selected ? YaruIcons.book_filled : YaruIcons.book,
development => YaruIcons.wrench,
development => selected ? YaruIcons.wrench_filled : YaruIcons.wrench,
devicesAndIot => selected ? YaruIcons.chip_filled : YaruIcons.chip,
education =>
selected ? YaruIcons.education_filled : YaruIcons.education,
Expand Down
8 changes: 4 additions & 4 deletions packages/app_center/lib/src/store/store_pages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ typedef StorePage = ({
final pages = <StorePage>[
(
tileBuilder: (context, selected) => YaruMasterTile(
leading: Icon(ExplorePage.icon(true)),
leading: Icon(ExplorePage.icon(selected)),
title: Text(ExplorePage.label(context)),
),
pageBuilder: (_) => const ExplorePage(),
),
for (final category in displayedCategories)
(
tileBuilder: (context, selected) => YaruMasterTile(
leading: Icon(category.icon(true)),
leading: Icon(category.icon(selected)),
title: Text(category.localize(AppLocalizations.of(context))),
),
pageBuilder: (_) => SearchPage(category: category.categoryName),
Expand All @@ -46,7 +46,7 @@ final pages = <StorePage>[
),
(
tileBuilder: (context, selected) => YaruMasterTile(
leading: Icon(ManagePage.icon(true)),
leading: Icon(ManagePage.icon(selected)),
title: Text(ManagePage.label(context)),
trailing: Consumer(
builder: (context, ref, child) {
Expand All @@ -62,7 +62,7 @@ final pages = <StorePage>[
),
(
tileBuilder: (context, selected) => YaruMasterTile(
leading: Icon(AboutPage.icon(true)),
leading: Icon(AboutPage.icon(selected)),
title: Text(AboutPage.label(context)),
),
pageBuilder: (_) => const AboutPage(),
Expand Down
2 changes: 1 addition & 1 deletion packages/app_center/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ dependencies:
url_launcher: ^6.2.1
xdg_directories: ^1.0.3
yaru: ^1.2.0
yaru_icons: ^2.2.2
yaru_icons: ^2.3.0
yaru_test: ^0.1.5
yaru_widgets: ^3.4.0
yaru_window: ^0.2.0
Expand Down

0 comments on commit 8f69646

Please sign in to comment.