|
104 | 104 | <mah:MetroWindow.Flyouts> |
105 | 105 | <mah:FlyoutsControl x:Name="flyControl"/> |
106 | 106 | </mah:MetroWindow.Flyouts> |
107 | | - <Grid Margin="2,2,2,2"> |
| 107 | + <Grid Margin="0,1,2,0"> |
108 | 108 | <mah:SplitView x:Name="SplitViewControl" |
109 | 109 | DisplayMode="CompactInline" |
110 | 110 | CompactPaneLength="0" |
|
119 | 119 | <RowDefinition Height="*"/> |
120 | 120 | <!-- Snippets expander --> |
121 | 121 | </Grid.RowDefinitions> |
122 | | - <Expander Header="Search" Grid.Row="0" Margin="0,0,2,3" IsExpanded="{Binding IsSearchExpanded, Mode=TwoWay}"> |
| 122 | + <Expander Header="Search" Grid.Row="0" Margin="0,0,2,1" IsExpanded="{Binding IsSearchExpanded, Mode=TwoWay}"> |
123 | 123 | <Grid Margin="0,5,0,5" VerticalAlignment="Center"> |
124 | 124 | <Grid.ColumnDefinitions> |
125 | 125 | <ColumnDefinition Width="Auto" /> |
|
155 | 155 | ItemsSource="{Binding Languages}" |
156 | 156 | SelectedItemChanged="TreeView_SelectedItemChanged"> |
157 | 157 | <TreeView.Resources> |
158 | | - <!-- Ikona za jezik --> |
159 | 158 | <Geometry x:Key="LanguageIcon">M9,15h6m-3,3V12M14,2v6h6M14,2H6A2,2 0 0 0 4,4v16a2,2 0 0 0 2,2h12a2,2 0 0 0 2,-2V8Z</Geometry> |
160 | | - <!-- Ikona za kategoriju --> |
161 | 159 | <Geometry x:Key="CategoryIcon">M3,6h18v2H3V6zm0,5h18v2H3v-2zm0,5h18v2H3v-2z</Geometry> |
162 | | - <!-- Ikona za snippet --> |
163 | 160 | <Geometry x:Key="SnippetIcon">M5,4h14a2,2 0 0 1 2,2v12a2,2 0 0 1 -2,2H5a2,2 0 0 1 -2,-2V6a2,2 0 0 1 2,-2zm0,2v12h14V6H5zm2,2h10v2H7V8zm0,4h6v2H7v-2z</Geometry> |
164 | 161 | <Style TargetType="{x:Type ScrollBar}" BasedOn="{StaticResource TreeViewScrollBar}" /> |
165 | 162 | </TreeView.Resources> |
|
204 | 201 | </HierarchicalDataTemplate> |
205 | 202 | </TreeView.ItemTemplate> |
206 | 203 | </TreeView> |
207 | | - <!-- Kontrole ispod TreeView-a --> |
| 204 | + <!-- Controls below the TreeView --> |
208 | 205 | <Expander Header="Snippet Metadata" Grid.Row="1" Margin="0,10,0,0" |
209 | 206 | IsExpanded="{Binding IsSnippetMetadataExpanded, Mode=TwoWay}"> |
210 | 207 | <Expander.Resources> |
|
213 | 210 | <Grid> |
214 | 211 | <Grid.RowDefinitions> |
215 | 212 | <RowDefinition Height="Auto"/> |
216 | | - <!-- Labela Description --> |
| 213 | + <!-- Description label --> |
217 | 214 | <RowDefinition Height="*"/> |
218 | | - <!-- TextBox za Description --> |
| 215 | + <!-- Description TextBox --> |
219 | 216 | <RowDefinition Height="Auto"/> |
220 | | - <!-- Labela Tag --> |
| 217 | + <!-- Tag Label --> |
221 | 218 | <RowDefinition Height="Auto"/> |
222 | | - <!-- TextBox za Tag --> |
| 219 | + <!-- Tag TextBox --> |
223 | 220 | </Grid.RowDefinitions> |
224 | 221 | <!-- Description label --> |
225 | 222 | <TextBlock Text="Description:" Margin="0,0,0,5" Grid.Row="0" /> |
226 | | - <!-- Description TextBox koji se rasteže --> |
| 223 | + <!-- Description TextBox that stretches--> |
227 | 224 | <TextBox x:Name="txtDescription" Grid.Row="1" TextWrapping="Wrap" Focusable="False" |
228 | 225 | VerticalScrollBarVisibility="Auto" Height="100" IsReadOnly="True" BorderThickness="0.5" |
229 | 226 | Text="{Binding SelectedSnippet.Description}" /> |
|
257 | 254 | <Path Data="{StaticResource Save}" Fill="{DynamicResource MahApps.Brushes.AccentBase}" |
258 | 255 | Width="20" Height="20" Stretch="Uniform" /> |
259 | 256 | </Button> |
260 | | - <Button Command="{Binding AddSnippetCommand}" Margin="5,0,0,0" ToolTip="Add snippet
Ctrl+Shift+A"> |
| 257 | + <Button Command="{Binding AddSnippetCommand}" Margin="2,0,0,0" ToolTip="Add snippet
Ctrl+Shift+A"> |
261 | 258 | <Path Data="{StaticResource FileAdd}" Fill="{DynamicResource MahApps.Brushes.AccentBase}" |
262 | 259 | Width="20" Height="20" Stretch="Uniform" /> |
263 | 260 | </Button> |
264 | | - <Button Command="{Binding EditSnippetCommand}" Margin="5,0,0,0" ToolTip="Edit snippet
Ctrl+Shift+E"> |
| 261 | + <Button Command="{Binding EditSnippetCommand}" Margin="2,0,0,0" ToolTip="Edit snippet
Ctrl+Shift+E"> |
265 | 262 | <Path Data="{StaticResource FileEdit}" Fill="{DynamicResource MahApps.Brushes.AccentBase}" |
266 | 263 | Width="20" Height="20" Stretch="Uniform" /> |
267 | 264 | </Button> |
268 | | - <Button Command="{Binding DeleteSnippetCommand}" Margin="5,0,0,0" ToolTip="Delete snippet
Ctrl+Shift+D"> |
| 265 | + <Button Command="{Binding DeleteSnippetCommand}" Margin="2,0,0,0" ToolTip="Delete snippet
Ctrl+Shift+D"> |
269 | 266 | <Path Data="{StaticResource Trash}" Fill="{DynamicResource MahApps.Brushes.AccentBase}" |
270 | 267 | Width="20" Height="20" Stretch="Uniform" /> |
271 | 268 | </Button> |
272 | | - <Button x:Name="btnLangCat" Margin="5,0,0,0" Command="{Binding OpenLanguageCategoryCommand}" |
| 269 | + <Button x:Name="btnLangCat" Margin="2,0,0,0" Command="{Binding OpenLanguageCategoryCommand}" |
273 | 270 | ToolTip="Language/Category edit
Ctrl+Shift+L" |
274 | 271 | IsEnabled="{Binding IsLoadSnippetEnabled, Converter={StaticResource InverseBooleanConverter}}" > |
275 | 272 | <Path Data="{StaticResource CategoryEdit}" Fill="{DynamicResource MahApps.Brushes.AccentBase}" |
276 | 273 | Width="20" Height="20" Stretch="Uniform" /> |
277 | 274 | </Button> |
278 | | - <Button Margin="5,0,0,0" ToolTip="Load snippets" IsEnabled="{Binding IsLoadSnippetEnabled}" |
| 275 | + <Button Margin="2,0,0,0" ToolTip="Load snippets" IsEnabled="{Binding IsLoadSnippetEnabled}" |
279 | 276 | Command="{Binding LoadSnippetsDatabaseCommand}"> |
280 | 277 | <Path Data="{StaticResource DatabaseRefresh}" Fill="{DynamicResource MahApps.Brushes.AccentBase}" |
281 | 278 | Width="20" Height="20" Stretch="Uniform" /> |
282 | 279 | </Button> |
283 | 280 | <Separator /> |
284 | | - <Button Margin="5,0,0,0" ToolTip="Run
Ctrl+Shift+R" |
| 281 | + <Button ToolTip="Run
Ctrl+Shift+R" |
285 | 282 | Command="{Binding OpenCodeRunnerViewCommand}" > |
286 | 283 | <Path Data="{StaticResource DebugStart}" Fill="{DynamicResource MahApps.Brushes.AccentBase}" |
287 | 284 | Width="20" Height="20" Stretch="Uniform" /> |
288 | 285 | </Button> |
289 | | - <Button Margin="5,0,0,0" ToolTip="Compiler explorer settings" |
| 286 | + <Button Margin="2,0,0,0" ToolTip="Compiler explorer settings" |
290 | 287 | Command="{Binding OpenCompilerSettingsCommand}"> |
291 | 288 | <Path Data="{StaticResource CompilerExplorer}" Fill="{DynamicResource MahApps.Brushes.AccentBase}" |
292 | 289 | Width="20" Height="20" Stretch="Uniform" /> |
293 | 290 | </Button> |
294 | 291 | <Separator /> |
295 | | - <Button Margin="5,0,0,0" Command="{Binding IncreaseFontSizeCommand}" ToolTip="Zoom +"> |
| 292 | + <Button Command="{Binding IncreaseFontSizeCommand}" ToolTip="Zoom +"> |
296 | 293 | <Path Data="{StaticResource ZoomIn}" Fill="{DynamicResource MahApps.Brushes.AccentBase}" |
297 | 294 | Width="20" Height="20" Stretch="Uniform" /> |
298 | 295 | </Button> |
299 | | - <Button Margin="5,0,0,0" Command="{Binding DecreaseFontSizeCommand}" ToolTip="Zoom -"> |
| 296 | + <Button Margin="2,0,0,0" Command="{Binding DecreaseFontSizeCommand}" ToolTip="Zoom -"> |
300 | 297 | <Path Data="{StaticResource ZoomOut}" Fill="{DynamicResource MahApps.Brushes.AccentBase}" |
301 | 298 | Width="20" Height="20" Stretch="Uniform" /> |
302 | 299 | </Button> |
303 | | - <Button Margin="5,0,0,0" Command="{Binding ResetFontSizeCommand}" ToolTip="Reset zoom"> |
| 300 | + <Button Margin="2,0,0,0" Command="{Binding ResetFontSizeCommand}" ToolTip="Reset zoom"> |
304 | 301 | <Path Data="{StaticResource ZoomOutMap}" Fill="{DynamicResource MahApps.Brushes.AccentBase}" |
305 | 302 | Width="20" Height="20" Stretch="Uniform" /> |
306 | 303 | </Button> |
307 | | - <Button Margin="5,0,0,0" ToolTip="Search / Replace" Command="{Binding OpenSearchReplaceCommand}" > |
| 304 | + <Button Margin="2,0,0,0" ToolTip="Search / Replace" Command="{Binding OpenSearchReplaceCommand}" > |
308 | 305 | <Path Data="{StaticResource TextSearch}" Fill="{DynamicResource MahApps.Brushes.AccentBase}" |
309 | 306 | Width="20" Height="20" Stretch="Uniform" /> |
310 | 307 | </Button> |
311 | | - <Button Margin="5,0,0,0" ToolTip="Format code" Click="FormatAll_Click"> |
| 308 | + <Button Margin="2,0,0,0" ToolTip="Format code" Click="FormatAll_Click"> |
312 | 309 | <Path Data="{StaticResource FormatText}" Fill="{DynamicResource MahApps.Brushes.AccentBase}" |
313 | 310 | Width="20" Height="20" Stretch="Uniform" /> |
314 | 311 | </Button> |
315 | | - <ToggleButton Margin="5,0,0,0" ToolTip="Disable intendation" IsChecked="{Binding DisableIntendation, Mode=TwoWay}"> |
| 312 | + <ToggleButton Margin="2,0,0,0" ToolTip="Disable intendation" IsChecked="{Binding DisableIntendation, Mode=TwoWay}"> |
316 | 313 | <Path Data="{StaticResource FormatIndentDecrease}" Fill="{DynamicResource MahApps.Brushes.AccentBase}" |
317 | 314 | Width="20" Height="20" Stretch="Uniform" /> |
318 | 315 | </ToggleButton> |
319 | 316 | <Separator /> |
320 | | - <Button Margin="5,0,0,0" ToolTip="Highlighting Editor" Command="{Binding OpenHighlightingEditorCommand}"> |
| 317 | + <Button ToolTip="Highlighting Editor" Command="{Binding OpenHighlightingEditorCommand}"> |
321 | 318 | <Path Data="{StaticResource ColorPaletteiOS}" Fill="{DynamicResource MahApps.Brushes.AccentBase}" |
322 | 319 | Width="20" Height="20" Stretch="Uniform" /> |
323 | 320 | </Button> |
324 | | - <Button Margin="5,0,0,0" ToolTip="Settings
Ctrl+Shift+P" Command="{Binding OpenSettingsCommand}"> |
| 321 | + <Button Margin="2,0,0,0" ToolTip="Settings
Ctrl+Shift+P" Command="{Binding OpenSettingsCommand}"> |
325 | 322 | <Path Data="{StaticResource GearBold}" Fill="{DynamicResource MahApps.Brushes.AccentBase}" |
326 | 323 | Width="20" Height="20" Stretch="Uniform" /> |
327 | 324 | </Button> |
|
0 commit comments