|
8 | 8 | <Border Grid.Row="0" Background="{DynamicResource BackgroundDarkBrush}" Padding="8,6" |
9 | 9 | BorderBrush="{DynamicResource BorderBrush}" BorderThickness="0,0,0,1"> |
10 | 10 | <DockPanel> |
11 | | - <StackPanel Orientation="Horizontal" DockPanel.Dock="Left" Spacing="6"> |
| 11 | + <StackPanel Orientation="Horizontal" DockPanel.Dock="Left" Spacing="4"> |
12 | 12 | <Button x:Name="ConnectButton" Content="Connect" Click="Connect_Click" |
13 | | - Height="28" Padding="10,0" FontSize="12" |
| 13 | + Height="28" Padding="8,0" FontSize="12" |
14 | 14 | Theme="{StaticResource AppButton}" |
15 | 15 | ToolTip.Tip="Connect to a SQL Server"/> |
16 | 16 | <TextBlock x:Name="ServerLabel" Text="Not connected" |
17 | 17 | VerticalAlignment="Center" FontSize="12" |
18 | | - Foreground="{DynamicResource ForegroundBrush}"/> |
| 18 | + Foreground="{DynamicResource ForegroundBrush}" Margin="2,0,0,0"/> |
19 | 19 | <TextBlock Text="|" VerticalAlignment="Center" |
20 | | - Foreground="{DynamicResource ForegroundBrush}" Margin="4,0"/> |
| 20 | + Foreground="{DynamicResource ForegroundBrush}" Margin="2,0"/> |
21 | 21 | <ComboBox x:Name="DatabaseBox" Width="200" Height="28" FontSize="12" |
22 | 22 | IsEnabled="False" PlaceholderText="Database" |
23 | 23 | SelectionChanged="Database_SelectionChanged"/> |
24 | 24 | <TextBlock Text="|" VerticalAlignment="Center" |
25 | | - Foreground="{DynamicResource ForegroundBrush}" Margin="4,0"/> |
| 25 | + Foreground="{DynamicResource ForegroundBrush}" Margin="2,0"/> |
26 | 26 | <Button x:Name="ExecuteButton" Content="▶ Actual Plan" Click="Execute_Click" |
27 | | - Height="28" Padding="10,0" FontSize="12" IsEnabled="False" |
| 27 | + Height="28" Padding="8,0" FontSize="12" IsEnabled="False" |
28 | 28 | Theme="{StaticResource AppButton}" |
29 | 29 | ToolTip.Tip="Run query and capture execution plan with runtime stats (F5 / Ctrl+E)"/> |
30 | 30 | <Button x:Name="ExecuteEstButton" Content="◇ Estimated Plan" Click="ExecuteEstimated_Click" |
31 | | - Height="28" Padding="10,0" FontSize="12" IsEnabled="False" |
| 31 | + Height="28" Padding="8,0" FontSize="12" IsEnabled="False" |
32 | 32 | Theme="{StaticResource AppButton}" |
33 | 33 | ToolTip.Tip="Capture estimated plan without executing (Ctrl+L)"/> |
34 | 34 | <TextBlock Text="|" VerticalAlignment="Center" |
35 | | - Foreground="{DynamicResource ForegroundBrush}" Margin="4,0"/> |
| 35 | + Foreground="{DynamicResource ForegroundBrush}" Margin="2,0"/> |
36 | 36 | <Button x:Name="HumanAdviceButton" Content="🧑 Human Advice" |
37 | 37 | Click="HumanAdvice_Click" |
38 | | - Height="28" Padding="10,0" FontSize="12" IsEnabled="False" |
| 38 | + Height="28" Padding="8,0" FontSize="12" IsEnabled="False" |
39 | 39 | Theme="{StaticResource AppButton}" |
40 | 40 | ToolTip.Tip="Human-readable plan analysis"/> |
41 | 41 | <Button x:Name="RobotAdviceButton" Content="🤖 Robot Advice" |
42 | 42 | Click="RobotAdvice_Click" |
43 | | - Height="28" Padding="10,0" FontSize="12" IsEnabled="False" |
| 43 | + Height="28" Padding="8,0" FontSize="12" IsEnabled="False" |
44 | 44 | Theme="{StaticResource AppButton}" |
45 | 45 | ToolTip.Tip="JSON analysis for LLMs and automation"/> |
46 | 46 | <TextBlock Text="|" VerticalAlignment="Center" |
47 | | - Foreground="{DynamicResource ForegroundBrush}" Margin="4,0"/> |
| 47 | + Foreground="{DynamicResource ForegroundBrush}" Margin="2,0"/> |
48 | 48 | <Button x:Name="ComparePlansButton" Content="↔ Compare Plans" |
49 | 49 | Click="ComparePlans_Click" |
50 | | - Height="28" Padding="10,0" FontSize="12" IsEnabled="False" |
| 50 | + Height="28" Padding="8,0" FontSize="12" IsEnabled="False" |
51 | 51 | Theme="{StaticResource AppButton}" |
52 | 52 | ToolTip.Tip="Compare two plan tabs"/> |
53 | 53 | <TextBlock Text="|" VerticalAlignment="Center" |
54 | | - Foreground="{DynamicResource ForegroundBrush}" Margin="4,0"/> |
| 54 | + Foreground="{DynamicResource ForegroundBrush}" Margin="2,0"/> |
55 | 55 | <Button x:Name="QueryStoreButton" Content="📊 Query Store" |
56 | 56 | Click="QueryStore_Click" |
57 | | - Height="28" Padding="10,0" FontSize="12" |
| 57 | + Height="28" Padding="8,0" FontSize="12" |
58 | 58 | Theme="{StaticResource AppButton}" |
59 | 59 | ToolTip.Tip="Analyze top queries from Query Store"/> |
60 | 60 | <TextBlock Text="|" VerticalAlignment="Center" |
61 | | - Foreground="{DynamicResource ForegroundBrush}" Margin="4,0"/> |
| 61 | + Foreground="{DynamicResource ForegroundBrush}" Margin="2,0"/> |
62 | 62 | <Button x:Name="CopyReproButton" Content="📋 Copy Repro" |
63 | 63 | Click="CopyRepro_Click" |
64 | | - Height="28" Padding="10,0" FontSize="12" IsEnabled="False" |
| 64 | + Height="28" Padding="8,0" FontSize="12" IsEnabled="False" |
65 | 65 | Theme="{StaticResource AppButton}" |
66 | 66 | ToolTip.Tip="Copy reproduction script to clipboard"/> |
67 | 67 | <Button x:Name="GetActualPlanButton" Content="▶ Run Repro" |
68 | 68 | Click="GetActualPlan_Click" |
69 | | - Height="28" Padding="10,0" FontSize="12" IsEnabled="False" |
| 69 | + Height="28" Padding="8,0" FontSize="12" IsEnabled="False" |
70 | 70 | Theme="{StaticResource AppButton}" |
71 | 71 | ToolTip.Tip="Execute the repro script and capture actual plan with runtime stats"/> |
| 72 | + <TextBlock Text="|" VerticalAlignment="Center" |
| 73 | + Foreground="{DynamicResource ForegroundBrush}" Margin="4,0"/> |
| 74 | + <Button x:Name="FormatButton" Content="📝 Format" Click="Format_Click" |
| 75 | + Height="28" Padding="10,0" FontSize="12" |
| 76 | + Theme="{StaticResource AppButton}" |
| 77 | + ToolTip.Tip="Format the SQL query"/> |
| 78 | + <Button x:Name="FormatOptionsButton" Content="⚙ Format Options" Click="FormatOptions_Click" |
| 79 | + Height="28" Padding="10,0" FontSize="12" |
| 80 | + Theme="{StaticResource AppButton}" |
| 81 | + ToolTip.Tip="Configure SQL formatting options"/> |
72 | 82 | </StackPanel> |
73 | 83 | <TextBlock x:Name="StatusText" DockPanel.Dock="Right" |
74 | 84 | HorizontalAlignment="Right" VerticalAlignment="Center" |
|
0 commit comments