Skip to content

Commit

Permalink
Make the icon appear with any theme. (#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbritch committed Jan 12, 2024
1 parent 02a9d58 commit 16cb982
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<!-- Add an item to the toolbar -->
<ContentPage.ToolbarItems>
<ToolbarItem Text="Add" Command="{Binding NewCommand}" IconImageSource="{FontImage Glyph='+', Color=White, Size=22}" />
<ToolbarItem Text="Add" Command="{Binding NewCommand}" IconImageSource="{FontImage Glyph='+', Color={StaticResource Primary}, Size=22}" />
</ContentPage.ToolbarItems>

<!-- Display notes in a list -->
Expand All @@ -34,4 +34,4 @@
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
</ContentPage>
</ContentPage>
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
<ContentPage.BindingContext>
<viewModels:NotesViewModel />
</ContentPage.BindingContext>

<!-- Add an item to the toolbar -->
<ContentPage.ToolbarItems>
<ToolbarItem Text="Add" Command="{Binding NewCommand}" IconImageSource="{FontImage Glyph='+', Color=White, Size=22}" />
<ToolbarItem Text="Add" Command="{Binding NewCommand}" IconImageSource="{FontImage Glyph='+', Color={StaticResource Primary}, Size=22}" />
</ContentPage.ToolbarItems>

<!-- Display notes in a list -->
Expand All @@ -36,4 +36,4 @@
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
</ContentPage>
</ContentPage>

0 comments on commit 16cb982

Please sign in to comment.