Skip to content

Commit

Permalink
Use new filled icons in sidebar navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
Jupi007 committed Jan 11, 2023
1 parent 07b9f85 commit cbb0f48
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions example/lib/example_page_items.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ final examplePageItems = <PageItem>[
PageItem(
titleBuilder: (context) => const Text('NavigationPage'),
tooltipMessage: 'YaruNavigationPage',
iconBuilder: (context, selected) => const Icon(YaruIcons.compass),
iconBuilder: (context, selected) => selected
? const Icon(YaruIcons.compass_filled)
: const Icon(YaruIcons.compass),
pageBuilder: (_) => const NavigationPage(),
),
PageItem(
Expand All @@ -127,7 +129,9 @@ final examplePageItems = <PageItem>[
tooltipMessage: 'YaruProgressIndicator',
snippetUrl:
'https://raw.githubusercontent.com/ubuntu/yaru_widgets.dart/main/example/lib/pages/progress_indicator_page.dart',
iconBuilder: (context, selected) => const Icon(YaruIcons.download),
iconBuilder: (context, selected) => selected
? const Icon(YaruIcons.download_filled)
: const Icon(YaruIcons.download),
pageBuilder: (_) => const ProgressIndicatorPage(),
),
PageItem(
Expand All @@ -145,7 +149,9 @@ final examplePageItems = <PageItem>[
tooltipMessage: 'YaruSection',
snippetUrl:
'https://raw.githubusercontent.com/ubuntu/yaru_widgets.dart/main/example/lib/pages/section_page.dart',
iconBuilder: (context, selected) => const Icon(YaruIcons.window),
iconBuilder: (context, selected) => selected
? const Icon(YaruIcons.window_filled)
: const Icon(YaruIcons.window),
pageBuilder: (_) => const SectionPage(),
),
PageItem(
Expand All @@ -172,7 +178,9 @@ final examplePageItems = <PageItem>[
snippetUrl:
'https://raw.githubusercontent.com/ubuntu/yaru_widgets.dart/main/example/lib/pages/tabbed_page_page.dart',
pageBuilder: (_) => const TabbedPagePage(),
iconBuilder: (context, selected) => const Icon(YaruIcons.tab_new),
iconBuilder: (context, selected) => selected
? const Icon(YaruIcons.tab_new_filled)
: const Icon(YaruIcons.tab_new),
),
PageItem(
titleBuilder: (context) => const Text('YaruTile'),
Expand All @@ -195,7 +203,9 @@ final examplePageItems = <PageItem>[
PageItem(
titleBuilder: (context) => const Text('YaruWindowControl'),
tooltipMessage: 'YaruWindowControl',
iconBuilder: (context, selected) => const Icon(YaruIcons.window_top_bar),
iconBuilder: (context, selected) => selected
? const Icon(YaruIcons.window_top_bar_filled)
: const Icon(YaruIcons.window_top_bar),
pageBuilder: (_) => const WindowControlsPage(),
),
];

0 comments on commit cbb0f48

Please sign in to comment.