-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSkillNameDialog.xaml
More file actions
35 lines (35 loc) · 1.74 KB
/
Copy pathSkillNameDialog.xaml
File metadata and controls
35 lines (35 loc) · 1.74 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
<Window x:Class="JustCode.SkillNameDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="New skill"
Width="400" Height="170"
WindowStartupLocation="CenterOwner"
ResizeMode="NoResize"
ShowInTaskbar="False"
Background="#252526"
Foreground="#eaeaea">
<Grid Margin="16">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" x:Name="FieldLabel" Text="Skill name" FontSize="12" FontWeight="SemiBold"
Foreground="#eaeaea" Margin="0,0,0,4"/>
<TextBox x:Name="NameBox" Grid.Row="1"
Background="#1b1b1c" BorderBrush="#3f3f46"
BorderThickness="1" Padding="6,4"
Foreground="#eaeaea" CaretBrush="#eaeaea"
FontFamily="Cascadia Code, Cascadia Mono, Consolas"/>
<TextBlock Grid.Row="2" x:Name="HintText" TextWrapping="Wrap" FontSize="10"
Foreground="#76767c" Margin="0,6,0,0"
Text="Creates ~/.pi/agent/skills/<name>/SKILL.md with a stub. Letters, digits, dashes, underscores only."/>
<StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,8,0,0">
<Button Content="Cancel" MinWidth="80" Padding="10,4" Margin="0,0,6,0"
Click="Cancel_Click"/>
<Button Content="Create" MinWidth="80" Padding="10,4" IsDefault="True"
Click="Ok_Click"/>
</StackPanel>
</Grid>
</Window>