Removed redundant styles

This commit is contained in:
Niels Laute 2021-08-16 15:42:22 +02:00
parent 5ec4b8d449
commit dfdfd65021
6 changed files with 2 additions and 32 deletions

View file

@ -53,17 +53,6 @@
IsBackButtonVisible="Collapsed"
MenuItemsSource="{x:Bind Modules, Mode=OneTime}"
MenuItemTemplate="{StaticResource NavigationViewMenuItem}">
<winui:NavigationView.PaneCustomContent>
<StackPanel Grid.Column="0" Margin="16"
Orientation="Vertical">
<TextBlock x:Uid="Oobe_GettingStarted"
TextWrapping="Wrap"
FontWeight="SemiBold"
AutomationProperties.HeadingLevel="Level1"
Style="{StaticResource PageTitleStyle}"
Margin="0,0,0,16" />
</StackPanel>
</winui:NavigationView.PaneCustomContent>
<winui:NavigationView.Content>
<Frame x:Name="NavigationFrame" />
</winui:NavigationView.Content>

View file

@ -59,7 +59,7 @@ namespace Microsoft.PowerToys.Settings.UI.OOBE.Views
Modules.Insert((int)PowerToysModulesEnum.Overview, new OobePowerToysModule()
{
ModuleName = loader.GetString("Oobe_Welcome"),
ModuleName = loader.GetString("Oobe_GettingStarted"),
Tag = "Overview",
IsNew = false,
Icon = "\uEF3C",

View file

@ -1174,7 +1174,7 @@ Made with 💗 by Microsoft and the PowerToys community.</value>
<data name="Oobe_PowerToysDescription.Text" xml:space="preserve">
<value>Welcome to PowerToys! These overviews will help you quickly learn the basics of all our utilities.</value>
</data>
<data name="Oobe_GettingStarted.Text" xml:space="preserve">
<data name="Oobe_GettingStarted" xml:space="preserve">
<value>Getting started</value>
</data>
<data name="Oobe_Launch.Text" xml:space="preserve">
@ -1322,9 +1322,6 @@ From there, simply click on a Markdown file or SVG icon in the File Explorer and
<value>Video Conference</value>
<comment>Do not localize this string</comment>
</data>
<data name="Oobe_Welcome" xml:space="preserve">
<value>Welcome</value>
</data>
<data name="OOBE_Settings.Content" xml:space="preserve">
<value>Open Settings</value>
</data>

View file

@ -2,15 +2,6 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!--Common texts-->
<Style x:Key="PageTitleStyle" TargetType="TextBlock">
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="FontWeight" Value="SemiBold" />
<Setter Property="FontSize" Value="{StaticResource LargeFontSize}" />
<Setter Property="TextTrimming" Value="CharacterEllipsis" />
<Setter Property="TextWrapping" Value="NoWrap" />
</Style>
<Style x:Key="OobeSubtitleStyle" TargetType="TextBlock">
<Setter Property="Margin" Value="0,16,0,0" />
<Setter Property="Foreground" Value="{ThemeResource DefaultTextForegroundThemeBrush}" />

View file

@ -2,7 +2,4 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<x:Double x:Key="LargeFontSize">24</x:Double>
<x:Double x:Key="MediumFontSize">16</x:Double>
</ResourceDictionary>

View file

@ -1,8 +1,4 @@
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- OOBE -->
<Thickness x:Key="OobePageContentMargin">32, 24, 32, 24</Thickness>
</ResourceDictionary>