|
21 | 21 | <mah:MetroTabItem Header="Appearance"> |
22 | 22 | <ScrollViewer Margin="10,0,0,0" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"> |
23 | 23 | <StackPanel> |
24 | | - <GroupBox Header="Application theme" Margin="5"> |
| 24 | + <GroupBox Header="Application theme"> |
25 | 25 | <GroupBox.Resources> |
26 | 26 | <Style TargetType="{x:Type GroupBox}" BasedOn="{StaticResource MahApps.Styles.GroupBox}"/> |
27 | 27 | </GroupBox.Resources> |
|
51 | 51 | </StackPanel> |
52 | 52 | </GroupBox> |
53 | 53 |
|
54 | | - <GroupBox Header="Snippets TreeView fonts" Margin="5,20,5,5"> |
| 54 | + <GroupBox Header="Snippets TreeView fonts" Margin="0,20,0,0"> |
55 | 55 | <GroupBox.Resources> |
56 | 56 | <Style TargetType="{x:Type GroupBox}" BasedOn="{StaticResource MahApps.Styles.GroupBox}"/> |
57 | 57 | </GroupBox.Resources> |
58 | 58 | <StackPanel> |
59 | | - <TextBlock Text="Language Font Size:" Margin="0,8,0,0" /> |
| 59 | + <TextBlock Text="Language Font Size:" Margin="0,5,0,0" /> |
60 | 60 | <mah:NumericUpDown Maximum="30" Minimum="8" NumericInputMode="Numbers" InterceptManualEnter="False" |
61 | 61 | ParsingNumberStyle="Integer" TextAlignment="Center" |
62 | 62 | Value="{Binding LanguageFontSize, Mode=TwoWay}" /> |
63 | 63 |
|
64 | 64 | <TextBlock Text="Language Font Weight:" Margin="0,8,0,0" /> |
65 | 65 | <ComboBox ItemsSource="{Binding FontWeights}" |
66 | | - SelectedItem="{Binding LanguageFontWeight, Mode=TwoWay}" /> |
| 66 | + SelectedItem="{Binding LanguageFontWeight, Mode=TwoWay}" HorizontalContentAlignment="Center" /> |
67 | 67 |
|
68 | 68 | <TextBlock Text="Category Font Size:" Margin="0,8,0,0" /> |
69 | 69 | <mah:NumericUpDown Maximum="30" Minimum="8" NumericInputMode="Numbers" InterceptManualEnter="False" |
|
72 | 72 |
|
73 | 73 | <TextBlock Text="Category Font Weight:" Margin="0,8,0,0" /> |
74 | 74 | <ComboBox ItemsSource="{Binding FontWeights}" |
75 | | - SelectedItem="{Binding CategoryFontWeight, Mode=TwoWay}" /> |
| 75 | + SelectedItem="{Binding CategoryFontWeight, Mode=TwoWay}" HorizontalContentAlignment="Center" /> |
76 | 76 |
|
77 | 77 | <TextBlock Text="Snippet Font Size:" Margin="0,8,0,0" /> |
78 | 78 | <mah:NumericUpDown Maximum="30" Minimum="8" NumericInputMode="Numbers" InterceptManualEnter="False" |
|
81 | 81 |
|
82 | 82 | <TextBlock Text="Snippet Font Weight:" Margin="0,8,0,0" /> |
83 | 83 | <ComboBox ItemsSource="{Binding FontWeights}" |
84 | | - SelectedItem="{Binding SnippetFontWeight, Mode=TwoWay}" /> |
| 84 | + SelectedItem="{Binding SnippetFontWeight, Mode=TwoWay}" HorizontalContentAlignment="Center" /> |
85 | 85 | </StackPanel> |
86 | 86 | </GroupBox> |
87 | 87 | </StackPanel> |
|
91 | 91 | <!-- Application settings Tab --> |
92 | 92 | <mah:MetroTabItem Header="Application"> |
93 | 93 | <ScrollViewer Margin="10,0,0,0" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"> |
94 | | - <StackPanel> |
95 | | - <CheckBox Content="Load snippets on startup" Margin="0,8,0,0" |
| 94 | + <GroupBox VerticalAlignment="Top" Header="Application settings"> |
| 95 | + <GroupBox.Resources> |
| 96 | + <Style TargetType="{x:Type GroupBox}" BasedOn="{StaticResource MahApps.Styles.GroupBox}"/> |
| 97 | + </GroupBox.Resources> |
| 98 | + <StackPanel> |
| 99 | + <CheckBox Content="Load snippets on startup" Margin="0,5,0,0" |
96 | 100 | IsChecked="{Binding LoadOnStartup, Mode=TwoWay}" /> |
97 | | - <CheckBox Content="Enable filtering" Margin="0,8,0,0" |
| 101 | + <CheckBox Content="Enable filtering" Margin="0,8,0,0" |
98 | 102 | IsChecked="{Binding EnableFiltering, Mode=TwoWay}" /> |
99 | | - <CheckBox Content="Enable notification" Margin="0,8,0,0" |
| 103 | + <CheckBox Content="Enable notification" Margin="0,8,0,0" |
100 | 104 | IsChecked="{Binding IsNotificationEnabled, Mode=TwoWay}" /> |
101 | | - <CheckBox Content="Show empty languages" Margin="0,8,0,0" |
| 105 | + <CheckBox Content="Show empty languages" Margin="0,8,0,0" |
102 | 106 | IsChecked="{Binding ShowEmptyLanguages, Mode=TwoWay}" /> |
103 | | - <CheckBox Content="Show empty categories" Margin="0,8,0,0" |
| 107 | + <CheckBox Content="Show empty categories" Margin="0,8,0,0" |
104 | 108 | IsChecked="{Binding ShowEmptyCategories, Mode=TwoWay}" /> |
105 | | - </StackPanel> |
| 109 | + </StackPanel> |
| 110 | + </GroupBox> |
106 | 111 | </ScrollViewer> |
107 | 112 | </mah:MetroTabItem> |
108 | 113 |
|
109 | 114 | <!-- Editor settings Tab --> |
110 | 115 | <mah:MetroTabItem Header="Editor"> |
111 | 116 | <ScrollViewer Margin="10,0,0,0" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"> |
112 | 117 | <StackPanel> |
113 | | - <CheckBox Content="Convert tabs to spaces" Margin="0,8,0,0" |
| 118 | + <GroupBox Header="Editor settings"> |
| 119 | + <GroupBox.Resources> |
| 120 | + <Style TargetType="{x:Type GroupBox}" BasedOn="{StaticResource MahApps.Styles.GroupBox}"/> |
| 121 | + </GroupBox.Resources> |
| 122 | + <StackPanel> |
| 123 | + <CheckBox Content="Convert tabs to spaces" Margin="0,5,0,0" |
114 | 124 | IsChecked="{Binding TabToSpaces, Mode=TwoWay}" /> |
115 | | - <CheckBox Content="Enable email hyperlinks" Margin="0,8,0,0" |
| 125 | + <CheckBox Content="Enable email hyperlinks" Margin="0,8,0,0" |
116 | 126 | IsChecked="{Binding EmailLinks, Mode=TwoWay}" /> |
117 | | - <CheckBox Content="Enable hyperlinks" Margin="0,8,0,0" |
| 127 | + <CheckBox Content="Enable hyperlinks" Margin="0,8,0,0" |
118 | 128 | IsChecked="{Binding HyperLinks, Mode=TwoWay}" /> |
119 | | - <CheckBox Content="Highlight current line" Margin="0,8,0,0" |
| 129 | + <CheckBox Content="Highlight current line" Margin="0,8,0,0" |
120 | 130 | IsChecked="{Binding HighlightLine, Mode=TwoWay}" /> |
121 | | - <TextBlock Text="Indentation size:" Margin="0,8,0,0"/> |
122 | | - <mah:NumericUpDown Maximum="10" Minimum="1" NumericInputMode="Numbers" |
123 | | - ParsingNumberStyle="Integer" TextAlignment="Center" Width="150" |
124 | | - Value="{Binding IntendationSize, Mode=TwoWay}" HorizontalAlignment="Left"/> |
| 131 | + <TextBlock Text="Indentation size:" Margin="0,8,0,0"/> |
| 132 | + <mah:NumericUpDown Maximum="10" Minimum="1" NumericInputMode="Numbers" |
| 133 | + ParsingNumberStyle="Integer" TextAlignment="Center" |
| 134 | + Value="{Binding IntendationSize, Mode=TwoWay}" /> |
125 | 135 |
|
126 | | - <TextBlock Text="Font:" Margin="0,8,0,0"/> |
127 | | - <ComboBox ItemsSource="{Binding SystemFonts}" |
| 136 | + <TextBlock Text="Font:" Margin="0,8,0,0"/> |
| 137 | + <ComboBox ItemsSource="{Binding SystemFonts}" |
128 | 138 | SelectedValue="{Binding EditorFontFamily, Mode=TwoWay}" |
129 | | - SelectedValuePath="Source" |
130 | | - Width="150" HorizontalAlignment="Left"/> |
| 139 | + SelectedValuePath="Source" HorizontalContentAlignment="Center"/> |
131 | 140 |
|
132 | | - <TextBlock Text="Font size:" Margin="0,8,0,0"/> |
133 | | - <mah:NumericUpDown Maximum="30" Minimum="8" NumericInputMode="Numbers" |
134 | | - ParsingNumberStyle="Integer" TextAlignment="Center" Width="150" |
135 | | - Value="{Binding EditorFontSize, Mode=TwoWay}" HorizontalAlignment="Left"/> |
136 | | - |
137 | | - <TextBlock Text="Folding:" FontWeight="Bold" Margin="0,10,0,0"/> |
138 | | - <CheckBox Content="Enable Brace Style Folding" Margin="0,8,0,0" ToolTip="C#,C++,Java..." |
| 141 | + <TextBlock Text="Font size:" Margin="0,8,0,0"/> |
| 142 | + <mah:NumericUpDown Maximum="30" Minimum="8" NumericInputMode="Numbers" |
| 143 | + ParsingNumberStyle="Integer" TextAlignment="Center" |
| 144 | + Value="{Binding EditorFontSize, Mode=TwoWay}" /> |
| 145 | + </StackPanel> |
| 146 | + </GroupBox> |
| 147 | + <GroupBox Margin="0,20,0,0" Header="Folding"> |
| 148 | + <GroupBox.Resources> |
| 149 | + <Style TargetType="{x:Type GroupBox}" BasedOn="{StaticResource MahApps.Styles.GroupBox}"/> |
| 150 | + </GroupBox.Resources> |
| 151 | + <StackPanel> |
| 152 | + <CheckBox Content="Enable Brace Style Folding" Margin="0,5,0,0" ToolTip="C#,C++,Java..." |
139 | 153 | IsChecked="{Binding EnableBraceStyleFolding, Mode=TwoWay}" /> |
140 | | - <CheckBox Content="Enable Python Folding" Margin="0,8,0,0" |
| 154 | + <CheckBox Content="Enable Python Folding" Margin="0,8,0,0" |
141 | 155 | IsChecked="{Binding EnablePythonFolding, Mode=TwoWay}" /> |
142 | | - <CheckBox Content="Enable XML Folding" Margin="0,8,0,0" |
| 156 | + <CheckBox Content="Enable XML Folding" Margin="0,8,0,0" |
143 | 157 | IsChecked="{Binding EnableXmlFolding, Mode=TwoWay}" /> |
| 158 | + </StackPanel> |
| 159 | + </GroupBox> |
144 | 160 | </StackPanel> |
145 | 161 | </ScrollViewer> |
146 | 162 | </mah:MetroTabItem> |
|
0 commit comments