|
67 | 67 | <TabItem.Header> |
68 | 68 | <TextBlock Classes="tab_header" Text="{DynamicResource Text.Preference.General}"/> |
69 | 69 | </TabItem.Header> |
70 | | - <Grid Margin="8" RowDefinitions="32,32,32,32,32,32,32,32,32" ColumnDefinitions="Auto,*"> |
| 70 | + <Grid Margin="8" RowDefinitions="32,32,32,32,32" ColumnDefinitions="Auto,*"> |
71 | 71 | <TextBlock Grid.Row="0" Grid.Column="0" |
72 | 72 | Text="{DynamicResource Text.Preference.General.Locale}" |
73 | 73 | HorizontalAlignment="Right" |
|
96 | 96 | </ComboBox> |
97 | 97 |
|
98 | 98 | <TextBlock Grid.Row="2" Grid.Column="0" |
99 | | - Text="{DynamicResource Text.Preference.General.Theme}" |
| 99 | + Text="{DynamicResource Text.Preference.General.MaxHistoryCommits}" |
100 | 100 | HorizontalAlignment="Right" |
101 | 101 | Margin="0,0,16,0"/> |
102 | | - <ComboBox Grid.Row="2" Grid.Column="1" |
| 102 | + <Grid Grid.Row="2" Grid.Column="1" ColumnDefinitions="*,64"> |
| 103 | + <Slider Grid.Column="0" |
| 104 | + Minimum="20000" Maximum="100000" |
| 105 | + TickPlacement="BottomRight" TickFrequency="5000" |
| 106 | + IsSnapToTickEnabled="True" |
| 107 | + VerticalAlignment="Center" |
| 108 | + Foreground="{DynamicResource Brush.Border1}" |
| 109 | + Value="{Binding MaxHistoryCommits, Mode=TwoWay}"> |
| 110 | + <Slider.Resources> |
| 111 | + <Thickness x:Key="SliderTopHeaderMargin">0,0,0,4</Thickness> |
| 112 | + <GridLength x:Key="SliderPreContentMargin">0</GridLength> |
| 113 | + <GridLength x:Key="SliderPostContentMargin">0</GridLength> |
| 114 | + <CornerRadius x:Key="SliderThumbCornerRadius">8</CornerRadius> |
| 115 | + <x:Double x:Key="SliderHorizontalThumbWidth">16</x:Double> |
| 116 | + <x:Double x:Key="SliderHorizontalThumbHeight">16</x:Double> |
| 117 | + </Slider.Resources> |
| 118 | + </Slider> |
| 119 | + |
| 120 | + <TextBlock Grid.Column="1" |
| 121 | + HorizontalAlignment="Right" VerticalAlignment="Center" |
| 122 | + Foreground="{DynamicResource Brush.FG1}" |
| 123 | + Text="{Binding MaxHistoryCommits}"/> |
| 124 | + </Grid> |
| 125 | + |
| 126 | + <CheckBox Grid.Row="3" Grid.Column="1" |
| 127 | + Content="{DynamicResource Text.Preference.General.RestoreTabs}" |
| 128 | + IsChecked="{Binding RestoreTabs, Mode=TwoWay}"/> |
| 129 | + |
| 130 | + <CheckBox Grid.Row="4" Grid.Column="1" |
| 131 | + Height="32" |
| 132 | + Content="{DynamicResource Text.Preference.General.UseFixedTabWidth}" |
| 133 | + IsChecked="{Binding Source={x:Static vm:Preference.Instance}, Path=UseFixedTabWidth, Mode=TwoWay}"/> |
| 134 | + </Grid> |
| 135 | + </TabItem> |
| 136 | + |
| 137 | + <TabItem> |
| 138 | + <TabItem.Header> |
| 139 | + <TextBlock Classes="tab_header" Text="{DynamicResource Text.Preference.Appearance}"/> |
| 140 | + </TabItem.Header> |
| 141 | + <Grid Margin="8" RowDefinitions="32,32,32,32" ColumnDefinitions="Auto,*"> |
| 142 | + <TextBlock Grid.Row="0" Grid.Column="0" |
| 143 | + Text="{DynamicResource Text.Preference.Appearance.Theme}" |
| 144 | + HorizontalAlignment="Right" |
| 145 | + Margin="0,0,16,0"/> |
| 146 | + <ComboBox Grid.Row="0" Grid.Column="1" |
103 | 147 | MinHeight="28" |
104 | 148 | Padding="8,0" |
105 | 149 | HorizontalAlignment="Stretch" |
|
112 | 156 | </ComboBox.Items> |
113 | 157 | </ComboBox> |
114 | 158 |
|
115 | | - <TextBlock Grid.Row="3" Grid.Column="0" |
116 | | - Text="{DynamicResource Text.Preference.General.DefaultFont}" |
| 159 | + <TextBlock Grid.Row="1" Grid.Column="0" |
| 160 | + Text="{DynamicResource Text.Preference.Appearance.DefaultFont}" |
117 | 161 | HorizontalAlignment="Right" |
118 | 162 | Margin="0,0,16,0"/> |
119 | | - <ComboBox Grid.Row="3" Grid.Column="1" |
| 163 | + <ComboBox Grid.Row="1" Grid.Column="1" |
120 | 164 | MinHeight="28" |
121 | 165 | Padding="8,0" |
122 | 166 | HorizontalAlignment="Stretch" |
|
131 | 175 | </ComboBox.ItemTemplate> |
132 | 176 | </ComboBox> |
133 | 177 |
|
134 | | - <TextBlock Grid.Row="4" Grid.Column="0" |
135 | | - Text="{DynamicResource Text.Preference.General.MonospaceFont}" |
| 178 | + <TextBlock Grid.Row="2" Grid.Column="0" |
| 179 | + Text="{DynamicResource Text.Preference.Appearance.MonospaceFont}" |
136 | 180 | HorizontalAlignment="Right" |
137 | 181 | Margin="0,0,16,0"/> |
138 | | - <ComboBox Grid.Row="4" Grid.Column="1" |
| 182 | + <ComboBox Grid.Row="2" Grid.Column="1" |
139 | 183 | MinHeight="28" |
140 | 184 | Padding="8,0" |
141 | 185 | HorizontalAlignment="Stretch" |
|
150 | 194 | </ComboBox.ItemTemplate> |
151 | 195 | </ComboBox> |
152 | 196 |
|
153 | | - <TextBlock Grid.Row="5" Grid.Column="0" |
154 | | - Text="{DynamicResource Text.Preference.General.DefaultFontSize}" |
| 197 | + <TextBlock Grid.Row="3" Grid.Column="0" |
| 198 | + Text="{DynamicResource Text.Preference.Appearance.DefaultFontSize}" |
155 | 199 | HorizontalAlignment="Right" |
156 | 200 | Margin="0,0,16,0"/> |
157 | | - <NumericUpDown Grid.Row="5" Grid.Column="1" |
| 201 | + <NumericUpDown Grid.Row="3" Grid.Column="1" |
158 | 202 | Minimum="10" Maximum="16" Increment="0.5" |
159 | 203 | Height="28" |
160 | 204 | Padding="4" |
|
174 | 218 | </Style> |
175 | 219 | </NumericUpDown.Styles> |
176 | 220 | </NumericUpDown> |
177 | | - |
178 | | - <TextBlock Grid.Row="6" Grid.Column="0" |
179 | | - Text="{DynamicResource Text.Preference.General.MaxHistoryCommits}" |
180 | | - HorizontalAlignment="Right" |
181 | | - Margin="0,0,16,0"/> |
182 | | - <Grid Grid.Row="6" Grid.Column="1" ColumnDefinitions="*,64"> |
183 | | - <Slider Grid.Column="0" |
184 | | - Minimum="20000" Maximum="100000" |
185 | | - TickPlacement="BottomRight" TickFrequency="5000" |
186 | | - IsSnapToTickEnabled="True" |
187 | | - VerticalAlignment="Center" |
188 | | - Foreground="{DynamicResource Brush.Border1}" |
189 | | - Value="{Binding MaxHistoryCommits, Mode=TwoWay}"> |
190 | | - <Slider.Resources> |
191 | | - <Thickness x:Key="SliderTopHeaderMargin">0,0,0,4</Thickness> |
192 | | - <GridLength x:Key="SliderPreContentMargin">0</GridLength> |
193 | | - <GridLength x:Key="SliderPostContentMargin">0</GridLength> |
194 | | - <CornerRadius x:Key="SliderThumbCornerRadius">8</CornerRadius> |
195 | | - <x:Double x:Key="SliderHorizontalThumbWidth">16</x:Double> |
196 | | - <x:Double x:Key="SliderHorizontalThumbHeight">16</x:Double> |
197 | | - </Slider.Resources> |
198 | | - </Slider> |
199 | | - |
200 | | - <TextBlock Grid.Column="1" |
201 | | - HorizontalAlignment="Right" VerticalAlignment="Center" |
202 | | - Foreground="{DynamicResource Brush.FG1}" |
203 | | - Text="{Binding MaxHistoryCommits}"/> |
204 | | - </Grid> |
205 | | - |
206 | | - <CheckBox Grid.Row="7" Grid.Column="1" |
207 | | - Content="{DynamicResource Text.Preference.General.RestoreTabs}" |
208 | | - IsChecked="{Binding RestoreTabs, Mode=TwoWay}"/> |
209 | | - |
210 | | - <CheckBox Grid.Row="8" Grid.Column="1" |
211 | | - Height="32" |
212 | | - Content="{DynamicResource Text.Preference.General.UseFixedTabWidth}" |
213 | | - IsChecked="{Binding Source={x:Static vm:Preference.Instance}, Path=UseFixedTabWidth, Mode=TwoWay}"/> |
214 | 221 | </Grid> |
215 | 222 | </TabItem> |
216 | 223 |
|
|
0 commit comments