Skip to content

Commit 2e1943a

Browse files
author
Richard
authored
Custom icons for Tiles view and List view in layout mode menu (#1018)
* Custom Icons
1 parent 6d5fc29 commit 2e1943a

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

Files/App.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
</ResourceDictionary.ThemeDictionaries>
4141
</ResourceDictionary>
4242
</ResourceDictionary.MergedDictionaries>
43+
<FontFamily x:Key="CustomLayoutModeIcon">/Assets/Custom Glyphs/layout-mode-custom-icon.ttf#layout-mode-custom-icon</FontFamily>
4344
</ResourceDictionary>
4445
</Application.Resources>
4546
</Application>
Binary file not shown.

Files/Files.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@
283283
<Content Include="Assets\LargeTile.scale-200.png" />
284284
<Content Include="Assets\LargeTile.scale-400.png" />
285285
<Content Include="Assets\logo.bmp" />
286+
<Content Include="Assets\Custom Glyphs\layout-mode-custom-icon.ttf" />
286287
<None Include="Assets\terminal\terminal.json">
287288
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
288289
</None>

Files/UserControls/StatusBarControl.xaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,17 @@
102102
Command="{x:Bind AppSettings.ToggleLayoutModeTiles}"
103103
Text="Tiles View">
104104
<MenuFlyoutItem.Icon>
105-
<FontIcon Glyph="&#xF168;" />
105+
<FontIcon Glyph="&#xf100;"
106+
FontFamily="{StaticResource CustomLayoutModeIcon}" />
106107
</MenuFlyoutItem.Icon>
107108
</MenuFlyoutItem>
108109
<MenuFlyoutItem
109110
x:Uid="StatusBarControlListView"
110111
Command="{x:Bind AppSettings.ToggleLayoutModeListView}"
111112
Text="List View">
112113
<MenuFlyoutItem.Icon>
113-
<FontIcon Glyph="&#xE14C;" />
114+
<FontIcon Glyph="&#xf200;"
115+
FontFamily="{StaticResource CustomLayoutModeIcon}" />
114116
</MenuFlyoutItem.Icon>
115117
</MenuFlyoutItem>
116118
</MenuFlyout>

0 commit comments

Comments
 (0)