Skip to content

Commit

Permalink
improve brushes and more resources
Browse files Browse the repository at this point in the history
  • Loading branch information
United600 committed Apr 23, 2024
1 parent 5cad0a6 commit bfd3e6a
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 16 deletions.
3 changes: 2 additions & 1 deletion src/Notepads/Resource/CustomSettingsStyle.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
<SolidColorBrush x:Key="DangerTextForegroundBrush" Color="{StaticResource DangerTextForegroundColor}" />
</ResourceDictionary>
<ResourceDictionary x:Key="HighContrast">
<SolidColorBrush x:Key="DangerTextForegroundBrush" Color="{ThemeResource SystemColorWindowTextColor}" />
<SolidColorBrush x:Key="DangerTextForegroundBrush" Color="{ThemeResource SystemColorHighlightColor}" />
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>

<StaticResource x:Key="ComboBoxBackground" ResourceKey="SystemControlTransparentBrush" />

<x:Double x:Key="SettingsEntranceHorizontalOffset">25</x:Double>
<Thickness x:Key="SettingsContentPadding">20,8,20,12</Thickness>
<Thickness x:Key="SettingsTitleMargin">20,0,20,0</Thickness>
<Thickness x:Key="SettingsSubtitleMargin">0,0,0,6</Thickness>
Expand Down
4 changes: 2 additions & 2 deletions src/Notepads/Views/Settings/AboutPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
d:DesignHeight="1120"
d:DesignWidth="333.333"
d:DesignHeight="1124"
HighContrastAdjustment="None"
mc:Ignorable="d">

<Grid>
<Grid.ChildrenTransitions>
<TransitionCollection>
<EntranceThemeTransition FromHorizontalOffset="25" FromVerticalOffset="0" />
<EntranceThemeTransition FromHorizontalOffset="{StaticResource SettingsEntranceHorizontalOffset}" FromVerticalOffset="0" />
</TransitionCollection>
</Grid.ChildrenTransitions>
<Grid.BackgroundTransition>
Expand Down
11 changes: 6 additions & 5 deletions src/Notepads/Views/Settings/AdvancedSettingsPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:utilities="using:Notepads.Utilities"
d:DesignWidth="333.333"
d:DesignHeight="768"
HighContrastAdjustment="None"
mc:Ignorable="d">

<Grid>
<Grid.ChildrenTransitions>
<TransitionCollection>
<EntranceThemeTransition FromHorizontalOffset="25" FromVerticalOffset="0" />
<EntranceThemeTransition FromHorizontalOffset="{StaticResource SettingsEntranceHorizontalOffset}" FromVerticalOffset="0" />
</TransitionCollection>
</Grid.ChildrenTransitions>
<Grid.BackgroundTransition>
Expand Down Expand Up @@ -85,7 +86,7 @@
VerticalAlignment="Center"
IsTextSearchEnabled="True"
ItemsSource="{x:Bind SupportedLanguages, Mode=OneTime}"
d:PlaceholderText="System default">
d:PlaceholderText="System Default">
<ComboBox.ItemTemplate>
<DataTemplate x:DataType="utilities:LanguageItem">
<TextBlock Text="{x:Bind Name}" />
Expand All @@ -99,10 +100,10 @@
Margin="0,6,0,0"
Visibility="Collapsed"
d:Visibility="Visible" />
<TextBlock x:Uid="/Settings/AdvancedPage_LanguagePreferenceSettings_Description"
Style="{StaticResource DescriptionTextBlockStyle}"
Margin="0,4,0,0" />
</StackPanel>
<TextBlock x:Uid="/Settings/AdvancedPage_LanguagePreferenceSettings_Description"
Style="{StaticResource DescriptionTextBlockStyle}"
Margin="0,6,0,0" />
</StackPanel>
</StackPanel>
</ScrollViewer>
Expand Down
8 changes: 4 additions & 4 deletions src/Notepads/Views/Settings/PersonalizationSettingsPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
d:DesignHeight="900"
d:DesignWidth="333.333"
d:DesignHeight="900"
HighContrastAdjustment="None"
mc:Ignorable="d">

<Grid>
<Grid.ChildrenTransitions>
<TransitionCollection>
<EntranceThemeTransition FromHorizontalOffset="25" FromVerticalOffset="0" />
<EntranceThemeTransition FromHorizontalOffset="{StaticResource SettingsEntranceHorizontalOffset}" FromVerticalOffset="0" />
</TransitionCollection>
</Grid.ChildrenTransitions>
<Grid.BackgroundTransition>
Expand Down Expand Up @@ -59,9 +59,9 @@
<Slider x:Name="BackgroundTintOpacitySlider"
Width="200"
Height="{StaticResource SliderHorizontalHeight}"
StepFrequency="1"
Maximum="100"
Minimum="0" />
Minimum="0"
StepFrequency="1" />
<TextBlock Style="{StaticResource SubtitleTextBlockStyle}"
Margin="12,0,0,2"
VerticalAlignment="Center"
Expand Down
2 changes: 1 addition & 1 deletion src/Notepads/Views/Settings/SettingsPanel.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</Grid.RowDefinitions>

<Grid Grid.Row="0"
BorderBrush="{ThemeResource SystemControlHighlightAltBaseMediumLowBrush}"
BorderBrush="{ThemeResource SystemControlForegroundBaseLowBrush}"
BorderThickness="0,0,0,1"
Margin="{StaticResource SettingsTitleMargin}">
<TextBlock x:Name="TitleTextBlock"
Expand Down
6 changes: 3 additions & 3 deletions src/Notepads/Views/Settings/TextAndEditorSettingsPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:settings="using:Notepads.Services"
d:DesignHeight="1600"
d:DesignWidth="333.333"
d:DesignHeight="1700"
HighContrastAdjustment="None"
mc:Ignorable="d">

<Grid>
<Grid.ChildrenTransitions>
<TransitionCollection>
<EntranceThemeTransition FromHorizontalOffset="25" FromVerticalOffset="0" />
<EntranceThemeTransition FromHorizontalOffset="{StaticResource SettingsEntranceHorizontalOffset}" FromVerticalOffset="0" />
</TransitionCollection>
</Grid.ChildrenTransitions>
<Grid.BackgroundTransition>
Expand Down Expand Up @@ -118,7 +118,7 @@
FontFamily="{x:Bind settings:AppSettingsService.EditorFontFamily}"
IsEditable="False"
ItemsSource="{x:Bind AvailableFontWeights, Mode=OneTime}"
d:PlaceholderText="Regular">
d:PlaceholderText="Normal">
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding FontWeightLocalizedName}" FontWeight="{Binding FontWeight}" />
Expand Down

0 comments on commit bfd3e6a

Please sign in to comment.