|
9 | 9 | WindowStartupLocation="CenterOwner" |
10 | 10 | GlowBrush="{DynamicResource AccentColorBrush}" |
11 | 11 | Background="{DynamicResource WhiteBrush}" |
12 | | - Title="Options" |
13 | | - ShowTitleBar="False" |
| 12 | + ShowTitleBar="False" |
14 | 13 | KeyDown="MetroWindow_KeyDown"> |
15 | 14 |
|
16 | 15 | <controls:MetroWindow.Resources> |
17 | 16 | <ResourceDictionary> |
| 17 | + |
| 18 | + <Style BasedOn="{StaticResource {x:Type CheckBox}}" x:Key="IndentedCheckBox" TargetType="{x:Type CheckBox}"> |
| 19 | + <Setter Property="Margin" Value="25,7,0,0"/> |
| 20 | + </Style> |
| 21 | + |
| 22 | + <Style BasedOn="{StaticResource {x:Type CheckBox}}" x:Key="ParentCheckBox" TargetType="{x:Type CheckBox}"> |
| 23 | + <Setter Property="Margin" Value="5,7,0,0"/> |
| 24 | + </Style> |
| 25 | + |
18 | 26 | <ResourceDictionary.MergedDictionaries> |
19 | 27 | <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" /> |
20 | 28 | <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" /> |
21 | 29 | <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" /> |
22 | 30 | <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseDark.xaml" /> |
23 | 31 | <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Red.xaml" /> |
24 | 32 | </ResourceDictionary.MergedDictionaries> |
| 33 | + |
25 | 34 | </ResourceDictionary> |
26 | 35 | </controls:MetroWindow.Resources> |
27 | | - <controls:MetroWindow.RightWindowCommands> |
28 | | - <controls:WindowCommands> |
29 | | - <Button Name="ResetButton" Content="Reset options" Click="RestoreButton_Clicked" /> |
30 | | - <Label Name="StatusTextBlock" Foreground="LightGray" FontSize="15" /> |
31 | | - </controls:WindowCommands> |
32 | | - </controls:MetroWindow.RightWindowCommands> |
| 36 | + |
33 | 37 | <Grid> |
| 38 | + |
34 | 39 | <controls:MetroAnimatedSingleRowTabControl HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,15,0,0" controls:TabControlHelper.IsUnderlined="True"> |
| 40 | + |
| 41 | + <!-- Program Tab --> |
35 | 42 | <controls:MetroTabItem Name="ProgramHeader" Header=" Program "> |
36 | 43 | <ScrollViewer HorizontalAlignment="Stretch" VerticalAlignment="Stretch" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Visible"> |
| 44 | + |
37 | 45 | <Grid> |
38 | | - <CheckBox Name="HardwareAcc" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,5,0,0" Content="Use Hardware Acceleration (if available)" Checked="HardwareAcc_Changed" Unchecked="HardwareAcc_Changed" /> |
39 | | - <CheckBox Name="UIAnimation" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,30,0,0" Content="UI Animations" Checked="UIAnimation_Changed" Unchecked="UIAnimation_Changed" /> |
40 | | - <CheckBox Name="OpenIncludes" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,55,0,0" Content="Auto Open Includes" Checked="AutoOpenInclude_Changed" Unchecked="AutoOpenInclude_Changed" /> |
41 | | - <CheckBox Name="OpenIncludesRecursive" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="25,80,0,0" Content="Open Includes Recursively" Checked="OpenIncludeRecursively_Changed" Unchecked="OpenIncludeRecursively_Changed" /> |
42 | | - <CheckBox Name="AutoUpdate" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,105,0,0" Content="Search automatically for Updates" Checked="AutoUpdate_Changed" Unchecked="AutoUpdate_Changed" /> |
43 | | - <CheckBox Name="ShowToolBar" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,130,0,0" Content="Show Toolbar" Checked="ShowToolbar_Changed" Unchecked="ShowToolbar_Changed" /> |
44 | | - <CheckBox Name="DynamicISAC" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,155,0,0" Content="Dynamic Autocomplete/Intellisense" Checked="DynamicISAC_Changed" Unchecked="DynamicISAC_Changed" /> |
45 | | - <CheckBox Name="DarkTheme" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,180,0,0" Content="Dark Theme" Checked="DarkTheme_Changed" Unchecked="DarkTheme_Changed" /> |
46 | | - <CheckBox Name="HardwareSalts" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,205,0,0" Content="Hardware Encryption" Checked="HardwareSalts_Changed" Unchecked="HardwareSalts_Changed" /> |
47 | | - <CheckBox Name="DiscordPresence" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,230,0,0" Content="Enable Discord Rich Presence" Checked="DiscordPresence_Changed" Unchecked="DiscordPresence_Changed" /> |
48 | | - <CheckBox Name="DiscordPresenceTime" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="25,255,0,0" Content="Show elapsed time" Checked="DiscordPresenceTime_Changed" Unchecked="DiscordPresenceTime_Changed" /> |
49 | | - <CheckBox Name="DiscordPresenceFile" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="25,280,0,0" Content="Show current file" Checked="DiscordPresenceFile_Changed" Unchecked="DiscordPresenceFile_Changed" /> |
50 | | - <Label Name="ThemeColorLabel" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="333,5,0,0" Content="Theme Color:" /> |
51 | | - <ComboBox Name="AccentColor" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="425,5,0,0" Width="200" SelectionChanged="AccentColor_Changed" /> |
52 | | - <Label Name="LanguageLabel" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="333,37,0,0" Content="Language:" /> |
53 | | - <ComboBox Name="LanguageBox" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="425,37,0,0" Width="200" SelectionChanged="LanguageBox_Changed" /> |
54 | | - <Label Name="ActionOnCloseLabel" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="333,69,0,0" Content="On close:" /> |
55 | | - <ComboBox Name="ActionOnCloseBox" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="425,69,0,0" Width="200" SelectionChanged="ActionOnCloseBox_Changed" /> |
| 46 | + |
| 47 | + <Grid.ColumnDefinitions> |
| 48 | + <ColumnDefinition Width="340"/> |
| 49 | + <ColumnDefinition Width="340"/> |
| 50 | + <ColumnDefinition/> |
| 51 | + </Grid.ColumnDefinitions> |
| 52 | + |
| 53 | + <!-- Left side checkboxes --> |
| 54 | + <StackPanel Grid.Column="0"> |
| 55 | + |
| 56 | + <StackPanel.Resources> |
| 57 | + <Style BasedOn="{StaticResource ParentCheckBox}" TargetType="{x:Type CheckBox}"/> |
| 58 | + </StackPanel.Resources> |
| 59 | + |
| 60 | + <CheckBox Name="HardwareAcc" Content="Use Hardware Acceleration (if available)" Checked="HardwareAcc_Changed" Unchecked="HardwareAcc_Changed" /> |
| 61 | + <CheckBox Name="UIAnimation" Content="UI Animations" Checked="UIAnimation_Changed" Unchecked="UIAnimation_Changed" /> |
| 62 | + <CheckBox Name="OpenIncludes" Content="Auto Open Includes" Checked="AutoOpenInclude_Changed" Unchecked="AutoOpenInclude_Changed" /> |
| 63 | + <CheckBox Name="OpenIncludesRecursive" Style="{StaticResource IndentedCheckBox}" Content="Open Includes Recursively" Checked="OpenIncludeRecursively_Changed" Unchecked="OpenIncludeRecursively_Changed" /> |
| 64 | + <CheckBox Name="AutoUpdate" Content="Search automatically for Updates" Checked="AutoUpdate_Changed" Unchecked="AutoUpdate_Changed" /> |
| 65 | + <CheckBox Name="ShowToolBar" Content="Show Toolbar" Checked="ShowToolbar_Changed" Unchecked="ShowToolbar_Changed" /> |
| 66 | + <CheckBox Name="DynamicISAC" Content="Dynamic Autocomplete/Intellisense" Checked="DynamicISAC_Changed" Unchecked="DynamicISAC_Changed" /> |
| 67 | + <CheckBox Name="DarkTheme" Content="Dark Theme" Checked="DarkTheme_Changed" Unchecked="DarkTheme_Changed" /> |
| 68 | + <CheckBox Name="HardwareSalts" Content="Hardware Encryption" Checked="HardwareSalts_Changed" Unchecked="HardwareSalts_Changed" /> |
| 69 | + <CheckBox Name="DiscordPresence" Content="Enable Discord Rich Presence" Checked="DiscordPresence_Changed" Unchecked="DiscordPresence_Changed" /> |
| 70 | + <CheckBox Name="DiscordPresenceTime" Style="{StaticResource IndentedCheckBox}" Content="Show elapsed time" Checked="DiscordPresenceTime_Changed" Unchecked="DiscordPresenceTime_Changed" /> |
| 71 | + <CheckBox Name="DiscordPresenceFile" Style="{StaticResource IndentedCheckBox}" Content="Show current file" Checked="DiscordPresenceFile_Changed" Unchecked="DiscordPresenceFile_Changed" /> |
| 72 | + |
| 73 | + </StackPanel> |
| 74 | + |
| 75 | + <!-- Right side comboboxes --> |
| 76 | + <StackPanel Grid.Column="1"> |
| 77 | + |
| 78 | + <StackPanel Orientation="Horizontal"> |
| 79 | + <Label Name="ThemeColorLabel" HorizontalAlignment="Left" VerticalAlignment="Top" Content="Theme Color:" Margin="0,0,10,0"/> |
| 80 | + <ComboBox Name="AccentColor" HorizontalAlignment="Left" VerticalAlignment="Top" Width="100" SelectionChanged="AccentColor_Changed" /> |
| 81 | + </StackPanel> |
| 82 | + |
| 83 | + <StackPanel Orientation="Horizontal" Margin="0,10,0,0"> |
| 84 | + <Label Name="LanguageLabel" Content="Language:" Margin="0,0,10,0" /> |
| 85 | + <ComboBox Name="LanguageBox" Width="120" SelectionChanged="LanguageBox_Changed" /> |
| 86 | + </StackPanel> |
| 87 | + |
| 88 | + <StackPanel Orientation="Horizontal" Margin="0,10,0,0"> |
| 89 | + <Label Name="ActionOnCloseLabel" HorizontalAlignment="Left" VerticalAlignment="Top" Content="On close:" Margin="0,0,10,0"/> |
| 90 | + <ComboBox Name="ActionOnCloseBox" HorizontalAlignment="Left" VerticalAlignment="Top" Width="180" SelectionChanged="ActionOnCloseBox_Changed" /> |
| 91 | + </StackPanel> |
| 92 | + |
| 93 | + </StackPanel> |
| 94 | + |
56 | 95 | </Grid> |
| 96 | + |
57 | 97 | </ScrollViewer> |
58 | 98 | </controls:MetroTabItem> |
| 99 | + |
| 100 | + <!-- Editor Tab --> |
59 | 101 | <controls:MetroTabItem Name="EditorHeader" Header=" Editor "> |
60 | 102 | <ScrollViewer> |
61 | 103 | <Grid> |
|
0 commit comments