mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Fix font picker being hidden on old OS versions
oops
This commit is contained in:
parent
d8feba85b7
commit
a6d5d9968d
@ -121,33 +121,31 @@
|
|||||||
<ComboBox Margin="5,0,0,0" Padding="10,5,10,5" Width="200" ItemsSource="{Binding EmojiTypes.Keys, Mode=OneTime}" Text="{Binding SelectedEmojiType, Mode=TwoWay}" />
|
<ComboBox Margin="5,0,0,0" Padding="10,5,10,5" Width="200" ItemsSource="{Binding EmojiTypes.Keys, Mode=OneTime}" Text="{Binding SelectedEmojiType, Mode=TwoWay}" />
|
||||||
</ui:CardControl>
|
</ui:CardControl>
|
||||||
|
|
||||||
<StackPanel x:Name="MiscellaneousOptions">
|
<TextBlock Text="Miscellaneous" FontSize="16" FontWeight="Medium" Margin="0,16,0,0" />
|
||||||
<TextBlock Text="Miscellaneous" FontSize="16" FontWeight="Medium" Margin="0,16,0,0" />
|
<ui:CardControl Margin="0,8,0,0">
|
||||||
<ui:CardControl Margin="0,8,0,0">
|
<ui:CardControl.Header>
|
||||||
<ui:CardControl.Header>
|
|
||||||
<StackPanel>
|
|
||||||
<TextBlock FontSize="14" Text="Apply custom font" />
|
|
||||||
<TextBlock Margin="0,2,0,0" FontSize="12" Foreground="{DynamicResource TextFillColorTertiaryBrush}">
|
|
||||||
Forces every in-game font to be a font that you choose.
|
|
||||||
</TextBlock>
|
|
||||||
</StackPanel>
|
|
||||||
</ui:CardControl.Header>
|
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<ui:Button Icon="DocumentAdd16" Content="Choose font..." Command="{Binding ManageCustomFontCommand}" Visibility="{Binding ChooseCustomFontVisibility, Mode=OneWay}" />
|
<TextBlock FontSize="14" Text="Apply custom font" />
|
||||||
<ui:Button Icon="Delete16" Content="Remove applied font" Appearance="Danger" Command="{Binding ManageCustomFontCommand}" Visibility="{Binding DeleteCustomFontVisibility, Mode=OneWay}" />
|
<TextBlock Margin="0,2,0,0" FontSize="12" Foreground="{DynamicResource TextFillColorTertiaryBrush}">
|
||||||
|
Forces every in-game font to be a font that you choose.
|
||||||
|
</TextBlock>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</ui:CardControl>
|
</ui:CardControl.Header>
|
||||||
<ui:CardControl Margin="0,8,0,0">
|
<StackPanel>
|
||||||
<ui:CardControl.Header>
|
<ui:Button Icon="DocumentAdd16" Content="Choose font..." Command="{Binding ManageCustomFontCommand}" Visibility="{Binding ChooseCustomFontVisibility, Mode=OneWay}" />
|
||||||
<StackPanel>
|
<ui:Button Icon="Delete16" Content="Remove applied font" Appearance="Danger" Command="{Binding ManageCustomFontCommand}" Visibility="{Binding DeleteCustomFontVisibility, Mode=OneWay}" />
|
||||||
<TextBlock FontSize="14" Text="Disable fullscreen optimizations" />
|
</StackPanel>
|
||||||
<TextBlock Margin="0,2,0,0" FontSize="12" Foreground="{DynamicResource TextFillColorTertiaryBrush}">
|
</ui:CardControl>
|
||||||
A Windows feature that intends to improve fullscreen performance. <Hyperlink Foreground="{DynamicResource TextFillColorPrimaryBrush}" Command="models:GlobalViewModel.OpenWebpageCommand" CommandParameter="https://devblogs.microsoft.com/directx/demystifying-full-screen-optimizations/">See here for more information</Hyperlink>.
|
<ui:CardControl x:Name="FullscreenOptimizationsToggle" Margin="0,8,0,0">
|
||||||
</TextBlock>
|
<ui:CardControl.Header>
|
||||||
</StackPanel>
|
<StackPanel>
|
||||||
</ui:CardControl.Header>
|
<TextBlock FontSize="14" Text="Disable fullscreen optimizations" />
|
||||||
<ui:ToggleSwitch IsChecked="{Binding DisableFullscreenOptimizations, Mode=TwoWay}" />
|
<TextBlock Margin="0,2,0,0" FontSize="12" Foreground="{DynamicResource TextFillColorTertiaryBrush}">
|
||||||
</ui:CardControl>
|
A Windows feature that intends to improve fullscreen performance. <Hyperlink Foreground="{DynamicResource TextFillColorPrimaryBrush}" Command="models:GlobalViewModel.OpenWebpageCommand" CommandParameter="https://devblogs.microsoft.com/directx/demystifying-full-screen-optimizations/">See here for more information</Hyperlink>.
|
||||||
</StackPanel>
|
</TextBlock>
|
||||||
|
</StackPanel>
|
||||||
|
</ui:CardControl.Header>
|
||||||
|
<ui:ToggleSwitch IsChecked="{Binding DisableFullscreenOptimizations, Mode=TwoWay}" />
|
||||||
|
</ui:CardControl>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</ui:UiPage>
|
</ui:UiPage>
|
||||||
|
@ -16,7 +16,7 @@ namespace Bloxstrap.UI.Elements.Menu.Pages
|
|||||||
|
|
||||||
// fullscreen optimizations were only added in windows 10 build 17093
|
// fullscreen optimizations were only added in windows 10 build 17093
|
||||||
if (Environment.OSVersion.Version.Build < 17093)
|
if (Environment.OSVersion.Version.Build < 17093)
|
||||||
this.MiscellaneousOptions.Visibility = Visibility.Collapsed;
|
this.FullscreenOptimizationsToggle.Visibility = Visibility.Collapsed;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user