|
948 | 948 | <ColumnDefinition Width="Auto"/><!-- Space for close button --> |
949 | 949 | <ColumnDefinition Width="Auto"/> |
950 | 950 | <ColumnDefinition Width="Auto"/> |
| 951 | + <ColumnDefinition Width="Auto"/><!-- Space for Font Scaling button--> |
951 | 952 | </Grid.ColumnDefinitions> |
952 | 953 |
|
953 | 954 | <!-- |
|
1032 | 1033 | </Border> |
1033 | 1034 | </Popup> |
1034 | 1035 |
|
1035 | | - <Button Name="SettingsButton" |
| 1036 | + <Button Name="FontScalingButton" |
1036 | 1037 | Style="{StaticResource HoverButtonStyle}" |
1037 | 1038 | Grid.Column="3" BorderBrush="Transparent" |
1038 | 1039 | Background="{DynamicResource MainBackgroundColor}" |
1039 | 1040 | Foreground="{DynamicResource MainForegroundColor}" |
1040 | 1041 | FontSize="{DynamicResource SettingsIconFontSize}" |
1041 | 1042 | Width="{DynamicResource IconButtonSize}" Height="{DynamicResource IconButtonSize}" |
1042 | 1043 | HorizontalAlignment="Right" VerticalAlignment="Top" |
| 1044 | + Margin="0,5,5,0" |
| 1045 | + FontFamily="Segoe MDL2 Assets" |
| 1046 | + Content="" |
| 1047 | + ToolTip="Adjust Font Scaling for Accessibility" |
| 1048 | + /> |
| 1049 | + <Popup Grid.Column="3" Name="FontScalingPopup" |
| 1050 | + IsOpen="False" |
| 1051 | + PlacementTarget="{Binding ElementName=FontScalingButton}" Placement="Bottom" |
| 1052 | + HorizontalAlignment="Right" VerticalAlignment="Top"> |
| 1053 | + <Border Background="{DynamicResource MainBackgroundColor}" BorderBrush="{DynamicResource MainForegroundColor}" BorderThickness="1" CornerRadius="0" Margin="0"> |
| 1054 | + <StackPanel Background="{DynamicResource MainBackgroundColor}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" MinWidth="200"> |
| 1055 | + <TextBlock Text="Font Scaling" |
| 1056 | + FontSize="{DynamicResource ButtonFontSize}" |
| 1057 | + Foreground="{DynamicResource MainForegroundColor}" |
| 1058 | + HorizontalAlignment="Center" |
| 1059 | + Margin="10,5,10,5" |
| 1060 | + FontWeight="Bold"/> |
| 1061 | + <Separator Margin="5,0,5,5"/> |
| 1062 | + <StackPanel Orientation="Horizontal" Margin="10,5,10,10"> |
| 1063 | + <TextBlock Text="Small" |
| 1064 | + FontSize="{DynamicResource ButtonFontSize}" |
| 1065 | + Foreground="{DynamicResource MainForegroundColor}" |
| 1066 | + VerticalAlignment="Center" |
| 1067 | + Margin="0,0,10,0"/> |
| 1068 | + <Slider Name="FontScalingSlider" |
| 1069 | + Minimum="0.75" Maximum="2.0" |
| 1070 | + Value="1.0" |
| 1071 | + TickFrequency="0.25" |
| 1072 | + TickPlacement="BottomRight" |
| 1073 | + IsSnapToTickEnabled="True" |
| 1074 | + Width="120" |
| 1075 | + VerticalAlignment="Center"/> |
| 1076 | + <TextBlock Text="Large" |
| 1077 | + FontSize="{DynamicResource ButtonFontSize}" |
| 1078 | + Foreground="{DynamicResource MainForegroundColor}" |
| 1079 | + VerticalAlignment="Center" |
| 1080 | + Margin="10,0,0,0"/> |
| 1081 | + </StackPanel> |
| 1082 | + <TextBlock Name="FontScalingValue" |
| 1083 | + Text="100%" |
| 1084 | + FontSize="{DynamicResource ButtonFontSize}" |
| 1085 | + Foreground="{DynamicResource MainForegroundColor}" |
| 1086 | + HorizontalAlignment="Center" |
| 1087 | + Margin="10,0,10,5"/> |
| 1088 | + <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="10,0,10,10"> |
| 1089 | + <Button Name="FontScalingResetButton" |
| 1090 | + Content="Reset" |
| 1091 | + Style="{StaticResource HoverButtonStyle}" |
| 1092 | + Width="60" Height="25" |
| 1093 | + Margin="5,0,5,0"/> |
| 1094 | + <Button Name="FontScalingApplyButton" |
| 1095 | + Content="Apply" |
| 1096 | + Style="{StaticResource HoverButtonStyle}" |
| 1097 | + Width="60" Height="25" |
| 1098 | + Margin="5,0,5,0"/> |
| 1099 | + </StackPanel> |
| 1100 | + </StackPanel> |
| 1101 | + </Border> |
| 1102 | + </Popup> |
| 1103 | + |
| 1104 | + <Button Name="SettingsButton" |
| 1105 | + Style="{StaticResource HoverButtonStyle}" |
| 1106 | + Grid.Column="4" BorderBrush="Transparent" |
| 1107 | + Background="{DynamicResource MainBackgroundColor}" |
| 1108 | + Foreground="{DynamicResource MainForegroundColor}" |
| 1109 | + FontSize="{DynamicResource SettingsIconFontSize}" |
| 1110 | + Width="{DynamicResource IconButtonSize}" Height="{DynamicResource IconButtonSize}" |
| 1111 | + HorizontalAlignment="Right" VerticalAlignment="Top" |
1043 | 1112 | Margin="5,5,5,0" |
1044 | 1113 | FontFamily="Segoe MDL2 Assets" |
1045 | 1114 | Content=""/> |
|
1067 | 1136 | </Popup> |
1068 | 1137 |
|
1069 | 1138 | <Button |
1070 | | - Grid.Column="4" |
| 1139 | + Grid.Column="5" |
1071 | 1140 | Content="×" BorderThickness="0" |
1072 | 1141 | BorderBrush="Transparent" |
1073 | 1142 | Background="{DynamicResource MainBackgroundColor}" |
|
0 commit comments