Skip to content

Commit

Permalink
Moved the appearance related settings to it's own expander
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Auer authored and Luca Auer committed Sep 3, 2018
1 parent d421382 commit ea0f5c9
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 8 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -299,4 +299,7 @@ Hinweis: Nutzen sie die Tab-Taste um zwischen den Antworten umzuschalten.</value
<data name="AdvancedSettings" xml:space="preserve">
<value>Erweiterte Einstellungen</value>
</data>
<data name="Appearance" xml:space="preserve">
<value>Erscheinungsbild</value>
</data>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -297,4 +297,7 @@ Note: Use Tab to cycle through the answers.</value>
<data name="AdvancedSettings" xml:space="preserve">
<value>Advanced Settings</value>
</data>
<data name="Appearance" xml:space="preserve">
<value>Appearance</value>
</data>
</root>
3 changes: 3 additions & 0 deletions Image sort.UI/LocalResources/AppResources/AppResources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -297,4 +297,7 @@ Note: Use Tab to cycle through the answers.</value>
<data name="AdvancedSettings" xml:space="preserve">
<value>Advanced Settings</value>
</data>
<data name="Appearance" xml:space="preserve">
<value>Appearance</value>
</data>
</root>
20 changes: 12 additions & 8 deletions Image sort.UI/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,25 +62,29 @@
Width="auto" MinWidth="335">
<ScrollViewer>
<StackPanel Margin="15 15 0 15">
<TextBlock FontSize="24" Text="Accent Color"/>
<RadioButton Content="{x:Static res:AppResources.Default}" Margin="5"
<Expander Header="{x:Static res:AppResources.Appearance}" Margin="0 5">
<StackPanel>
<TextBlock FontSize="24" Text="Accent Color"/>
<RadioButton Content="{x:Static res:AppResources.Default}" Margin="5"
IsEnabled="True" GroupName="AccentColor"
IsChecked="{Binding UseNativeColor,Converter={StaticResource InverseBoolConverter}}"
ToolTip="{x:Static tooltip:ToolTips.UseDefaultColorTip}"/>
<RadioButton Content="{x:Static res:AppResources.UseNativeAccentColor}" Margin="5"
<RadioButton Content="{x:Static res:AppResources.UseNativeAccentColor}" Margin="5"
IsEnabled="True" GroupName="AccentColor"
x:Name="NativeAccentColorsButton" IsChecked="{Binding Path=UseNativeColor}"
ToolTip="{x:Static tooltip:ToolTips.UseNativeAccentColorTip}"/>
<Separator Margin="0 5"/>
<TextBlock FontSize="24" Text="Theme"/>
<RadioButton Content="{x:Static res:AppResources.LightMode}" IsEnabled="True" Margin="5"
<Separator Margin="0 5"/>
<TextBlock FontSize="24" Text="Theme"/>
<RadioButton Content="{x:Static res:AppResources.LightMode}" IsEnabled="True" Margin="5"
IsChecked="{Binding DarkMode,Converter={StaticResource InverseBoolConverter}}"
ToolTip="{x:Static tooltip:ToolTips.LightModeTip}"/>
<RadioButton Content="{x:Static res:AppResources.DarkMode}" IsEnabled="True"
<RadioButton Content="{x:Static res:AppResources.DarkMode}" IsEnabled="True"
Margin="5" x:Name="DarkModeButton"
IsChecked="{Binding DarkMode}"
ToolTip="{x:Static tooltip:ToolTips.DarkModeTooltip}"/>
<Expander Header="{x:Static res:AppResources.AdvancedSettings}" Margin="0 10 0 5">
</StackPanel>
</Expander>
<Expander Header="{x:Static res:AppResources.AdvancedSettings}" Margin="0 5">
<StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Margin="5" Text="{x:Static res:AppResources.HorizontalResolution}"/>
Expand Down

0 comments on commit ea0f5c9

Please sign in to comment.