mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 01:36:31 +02:00
[RegistryPreview][UI]Update all AppBarButtons to use an explicit Icon(#27770)
* Fix for 27766 Removes the Icon property from all AppBarButtons and adds FontFamily for all Glyph's * Update MainWindow.xaml Removing a "Windows 11-only" glyph to prevent UI issues.
This commit is contained in:
@@ -95,7 +95,7 @@
|
||||
x:Uid="OpenButton"
|
||||
Click="OpenButton_Click">
|
||||
<AppBarButton.Icon>
|
||||
<FontIcon Glyph=""/>
|
||||
<FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}" Glyph=""/>
|
||||
</AppBarButton.Icon>
|
||||
<AppBarButton.KeyboardAccelerators>
|
||||
<KeyboardAccelerator Key="O" Modifiers="Control" />
|
||||
@@ -104,8 +104,10 @@
|
||||
<AppBarButton
|
||||
x:Name="refreshButton"
|
||||
x:Uid="RefreshButton"
|
||||
Icon="Refresh"
|
||||
Click="RefreshButton_Click">
|
||||
<AppBarButton.Icon>
|
||||
<FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}" Glyph=""/>
|
||||
</AppBarButton.Icon>
|
||||
<AppBarButton.KeyboardAccelerators>
|
||||
<KeyboardAccelerator Key="F5" />
|
||||
</AppBarButton.KeyboardAccelerators>
|
||||
@@ -114,9 +116,11 @@
|
||||
<AppBarButton
|
||||
x:Name="saveButton"
|
||||
x:Uid="SaveButton"
|
||||
Icon="Save"
|
||||
Click="SaveButton_Click"
|
||||
IsEnabled="False">
|
||||
<AppBarButton.Icon>
|
||||
<FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}" Glyph=""/>
|
||||
</AppBarButton.Icon>
|
||||
<AppBarButton.KeyboardAccelerators>
|
||||
<KeyboardAccelerator Key="S" Modifiers="Control" />
|
||||
</AppBarButton.KeyboardAccelerators>
|
||||
@@ -127,7 +131,7 @@
|
||||
Click="SaveAsButton_Click"
|
||||
IsEnabled="True">
|
||||
<AppBarButton.Icon>
|
||||
<FontIcon Glyph=""/>
|
||||
<FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}" Glyph=""/>
|
||||
</AppBarButton.Icon>
|
||||
<AppBarButton.KeyboardAccelerators>
|
||||
<KeyboardAccelerator Key="S" Modifiers="Control,Shift" />
|
||||
@@ -137,8 +141,10 @@
|
||||
<AppBarButton
|
||||
x:Name="editButton"
|
||||
x:Uid="EditButton"
|
||||
Icon="Edit"
|
||||
Click="EditButton_Click">
|
||||
<AppBarButton.Icon>
|
||||
<FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}" Glyph=""/>
|
||||
</AppBarButton.Icon>
|
||||
<AppBarButton.KeyboardAccelerators>
|
||||
<KeyboardAccelerator Key="E" Modifiers="Control" />
|
||||
</AppBarButton.KeyboardAccelerators>
|
||||
@@ -147,6 +153,9 @@
|
||||
x:Name="writeButton"
|
||||
x:Uid="WriteButton"
|
||||
Click="WriteButton_Click">
|
||||
<AppBarButton.Icon>
|
||||
<FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}" Glyph=""/>
|
||||
</AppBarButton.Icon>
|
||||
<AppBarButton.KeyboardAccelerators>
|
||||
<KeyboardAccelerator Key="W" Modifiers="Control" />
|
||||
</AppBarButton.KeyboardAccelerators>
|
||||
@@ -155,6 +164,9 @@
|
||||
x:Name="registryButton"
|
||||
x:Uid="RegistryButton"
|
||||
Click="RegistryButton_Click">
|
||||
<AppBarButton.Icon>
|
||||
<FontIcon FontFamily="{StaticResource SymbolThemeFontFamily}" Glyph=""/>
|
||||
</AppBarButton.Icon>
|
||||
<AppBarButton.KeyboardAccelerators>
|
||||
<KeyboardAccelerator Key="R" Modifiers="Control" />
|
||||
</AppBarButton.KeyboardAccelerators>
|
||||
|
||||
Reference in New Issue
Block a user