Skip to content

Commit

Permalink
Merge pull request #532 from dremin/settings-advanced
Browse files Browse the repository at this point in the history
Properties window with Advanced tab
  • Loading branch information
dremin authored Mar 5, 2023
2 parents 3e2ef43 + bba151b commit 3cd95a2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 23 deletions.
6 changes: 3 additions & 3 deletions RetroBar/Languages/English.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

<s:String x:Key="retrobar_properties">RetroBar Properties</s:String>
<s:String x:Key="taskbar_options">Taskbar Options</s:String>
<s:String x:Key="advanced">Advanced</s:String>
<s:String x:Key="taskbar_appearance">Taskbar appearance</s:String>
<s:String x:Key="notification_area">Notification area</s:String>
<s:String x:Key="autostart">Automatically start at _logon</s:String>
Expand All @@ -29,6 +30,7 @@
<s:String x:Key="quick_launch_folder">Quick Launch - Choose a folder</s:String>
<s:String x:Key="show_window_previews">Show _window previews (thumbnails)</s:String>
<s:String x:Key="use_software_rendering">_Use software rendering</s:String>
<s:String x:Key="middle_mouse_to_close">_Middle-click to close taskbar items</s:String>
<s:String x:Key="multiple_displays">Multiple displays</s:String>
<s:String x:Key="show_tasks_on">S_how tasks on:</s:String>
<x:Array x:Key="show_tasks_on_values" Type="s:String">
Expand Down Expand Up @@ -79,9 +81,7 @@

<s:String x:Key="open_folder">&amp;Open Folder</s:String>

<!-- Items below are settings, and should always be in English -->
<FlowDirection x:Key="flow_direction">LeftToRight</FlowDirection>

<FontFamily x:Key="start_text_xp_font_family">Franklin Gothic</FontFamily>

<s:String x:Key="middle_mouse_to_close">_Middle mouse click to close Taskbar Items</s:String>
</ResourceDictionary>
41 changes: 21 additions & 20 deletions RetroBar/PropertiesWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,27 @@
</DockPanel>
</StackPanel>
</GroupBox>
</StackPanel>
</TabItem>
<TabItem Header="{DynamicResource advanced}">
<StackPanel Orientation="Vertical"
Margin="10">
<StackPanel Orientation="Vertical"
Margin="0,0,0,10">
<CheckBox Checked="AutoStartCheckBox_OnChecked"
Unchecked="AutoStartCheckBox_OnChecked"
Name="AutoStartCheckBox">
<Label Content="{DynamicResource autostart}" />
</CheckBox>
<CheckBox x:Name="cbMiddleMouseToClose"
IsChecked="{Binding Source={x:Static Settings:Settings.Instance}, Path=MiddleMouseToClose, UpdateSourceTrigger=PropertyChanged}">
<Label Content="{DynamicResource middle_mouse_to_close}" />
</CheckBox>
<CheckBox x:Name="cbUseSoftwareRendering"
IsChecked="{Binding Source={x:Static Settings:Settings.Instance}, Path=UseSoftwareRendering, UpdateSourceTrigger=PropertyChanged}">
<Label Content="{DynamicResource use_software_rendering}" />
</CheckBox>
</StackPanel>
<GroupBox Header="{DynamicResource multiple_displays}">
<StackPanel Orientation="Vertical">
<CheckBox x:Name="cbShowMultiMon"
Expand All @@ -284,26 +305,6 @@
</DockPanel>
</StackPanel>
</GroupBox>
</StackPanel>
</TabItem>
<TabItem Header="RetroBar">
<StackPanel Orientation="Vertical"
Margin="10">
<StackPanel Orientation="Vertical">
<CheckBox Checked="AutoStartCheckBox_OnChecked"
Unchecked="AutoStartCheckBox_OnChecked"
Name="AutoStartCheckBox">
<Label Content="{DynamicResource autostart}" />
</CheckBox>
<CheckBox x:Name="cbUseSoftwareRendering"
IsChecked="{Binding Source={x:Static Settings:Settings.Instance}, Path=UseSoftwareRendering, UpdateSourceTrigger=PropertyChanged}">
<Label Content="{DynamicResource use_software_rendering}" />
</CheckBox>
<CheckBox x:Name="cbMiddleMouseToClose"
IsChecked="{Binding Source={x:Static Settings:Settings.Instance}, Path=MiddleMouseToClose, UpdateSourceTrigger=PropertyChanged}">
<Label Content="{DynamicResource middle_mouse_to_close}" />
</CheckBox>
</StackPanel>
<DockPanel Margin="0,10,0,0">
<TextBlock Name="txtVersion"
DockPanel.Dock="Left"
Expand Down

0 comments on commit 3cd95a2

Please sign in to comment.