-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathButtonsConfigWindow.xaml
More file actions
128 lines (114 loc) · 6.76 KB
/
Copy pathButtonsConfigWindow.xaml
File metadata and controls
128 lines (114 loc) · 6.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<Window x:Class="ChatGPTExtension.ButtonsConfigWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vsshell="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.15.0"
Title="Configure Buttons" Height="666" Width="990"
WindowStartupLocation="CenterScreen"
Background="{DynamicResource {x:Static vsshell:VsBrushes.WindowKey}}"
Foreground="{DynamicResource {x:Static vsshell:VsBrushes.WindowTextKey}}">
<Window.Resources>
<!-- Style for TextBox -->
<Style TargetType="{x:Type TextBox}">
<Setter Property="Background" Value="{DynamicResource {x:Static vsshell:VsBrushes.ToolWindowBackgroundKey}}"/>
<Setter Property="Foreground" Value="{DynamicResource {x:Static vsshell:VsBrushes.ToolWindowTextKey}}"/>
<Setter Property="BorderBrush" Value="{DynamicResource {x:Static vsshell:VsBrushes.ToolWindowBorderKey}}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Padding" Value="5"/>
<Setter Property="CaretBrush" Value="{DynamicResource {x:Static vsshell:VsBrushes.ToolWindowTextKey}}"/>
</Style>
<!-- Style for Button -->
<Style TargetType="{x:Type Button}">
<Setter Property="Background" Value="{DynamicResource {x:Static vsshell:VsBrushes.ToolWindowBackgroundKey}}"/>
<Setter Property="Foreground" Value="{DynamicResource {x:Static vsshell:VsBrushes.ToolWindowTextKey}}"/>
<Setter Property="BorderBrush" Value="{DynamicResource {x:Static vsshell:VsBrushes.ToolWindowBorderKey}}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Margin" Value="5"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="{DynamicResource {x:Static vsshell:VsBrushes.CommandBarHoverOverSelectedKey}}"/>
<Setter Property="Cursor" Value="Hand"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- Style for Label -->
<Style TargetType="{x:Type Label}">
<Setter Property="Foreground" Value="{DynamicResource {x:Static vsshell:VsBrushes.WindowTextKey}}"/>
</Style>
</Window.Resources>
<Grid Margin="10">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<ScrollViewer Grid.Row="0" VerticalScrollBarVisibility="Auto">
<StackPanel VerticalAlignment="Top" >
<StackPanel Orientation="Horizontal" Margin="0,5">
<Label Content="Editor to AI" Width="150"/>
<TextBox x:Name="VSNETToAITxt" Width="200"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,5">
<Label Content="Fix Code" Width="150"/>
<TextBox x:Name="FixCodeTxt" Width="200"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,5">
<Label Content="Fix Code (Prompt)" Width="150"/>
<TextBox x:Name="FixCodePromptTxt" Width="800" TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Auto"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,5">
<Label Content="Improve Code" Width="150"/>
<TextBox x:Name="ImproveCodeTxt" Width="200" />
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,5">
<Label Content="Improve Code (Prompt)" Width="150"/>
<TextBox x:Name="ImproveCodePromptTxt" Width="800" TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Auto"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,5">
<Label Content="Complete Code" Width="150"/>
<TextBox x:Name="CompleteCodeTxt" Width="200"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,5">
<Label Content="Complete Code (Prompt)" Width="150"/>
<TextBox x:Name="CompleteCodePromptTxt" Width="800" TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Auto"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,5">
<Label Content="Continue Code" Width="150"/>
<TextBox x:Name="ContinueCodeTxt" Width="200"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,5">
<Label Content="Continue Code (Prompt)" Width="150"/>
<TextBox x:Name="ContinueCodePromptTxt" Width="800" TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Auto"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,5">
<Label Content="AI to Editor" Width="150"/>
<TextBox x:Name="AIToVSNETTxt" Width="200"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,5">
<Label Content="New File" Width="150"/>
<TextBox x:Name="NewFileTxt" Width="200"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,5">
<Label Content="Attach File" Width="150"/>
<TextBox x:Name="AttachFileTxt" Width="200"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,5">
<Label Content="Copy Code" Width="150"/>
<TextBox x:Name="EnableCopyCodeTxt" Width="200"/>
</StackPanel>
</StackPanel>
</ScrollViewer>
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,20,0,0">
<Button Content="Save" Width="80" Margin="5" Click="Save_Click"/>
<Button Content="Reset" Width="80" Margin="5" Click="Reset_Click" ToolTip="Reset to Defaults" />
<Button Content="Cancel" Width="80" Margin="5" Click="Cancel_Click"/>
</StackPanel>
</Grid>
</Window>