-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
131 lines (122 loc) · 5.65 KB
/
MainWindow.xaml
File metadata and controls
131 lines (122 loc) · 5.65 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
129
130
131
<Window x:Class="ClaudeAutoResponse.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Claude Auto-Response"
Height="320" Width="400"
MinHeight="250" MinWidth="320"
WindowStartupLocation="Manual"
ResizeMode="CanResize"
Background="{DynamicResource BackgroundBrush}"
ShowInTaskbar="True">
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Resources/Styles.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
<Grid Margin="12">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<!-- Header -->
<Grid Grid.Row="0" Margin="0,0,0,8">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<!-- Title with Pin Button -->
<StackPanel Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center">
<TextBlock Text="Claude Auto-Response"
FontSize="14"
FontWeight="SemiBold"
Foreground="{DynamicResource TextBrush}"
VerticalAlignment="Center"/>
<Button Name="PinButton"
Click="PinButton_Click"
Style="{StaticResource IconButton}"
ToolTip="Toggle Always on Top"
Width="20" Height="20"
Margin="8,0,0,0">
<Path Name="PinIcon"
Data="M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z"
Fill="{DynamicResource SecondaryTextBrush}"
Stretch="Uniform"
Width="12" Height="12"
Opacity="0.6"/>
</Button>
</StackPanel>
<!-- Status -->
<TextBlock Grid.Column="1"
Text="{Binding StatusMessage}"
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="11"
FontStyle="Italic"
Foreground="{DynamicResource SecondaryTextBrush}"/>
<!-- Refresh Button -->
<Button Grid.Column="2"
Name="RefreshButton"
Click="RefreshButton_Click"
Style="{StaticResource IconButton}"
ToolTip="Refresh Windows"
Width="24" Height="24">
<Path Data="M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"
Fill="{DynamicResource SecondaryTextBrush}"
Stretch="Uniform"
Width="14" Height="14"/>
</Button>
</Grid>
<!-- Tracked Windows List -->
<ListBox Grid.Row="1"
Name="WindowsListBox"
ItemsSource="{Binding TrackedWindows}"
Style="{StaticResource TrackedWindowsListBox}"
DisplayMemberPath="DisplayTitle"/>
<!-- Hotkey Instructions -->
<Border Grid.Row="2"
Background="{DynamicResource SurfaceBrush}"
BorderBrush="{DynamicResource BorderBrush}"
BorderThickness="1"
CornerRadius="4"
Padding="10,8"
Margin="0,10,0,0">
<StackPanel>
<TextBlock Text="Hotkeys (set mode for focused VS Code window):"
FontSize="11"
Foreground="{DynamicResource SecondaryTextBrush}"
Margin="0,0,0,4"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" FontSize="11" Foreground="{DynamicResource TextBrush}">
<Run Text="Ctrl+Alt+1" FontWeight="SemiBold"/>
<Run Text=" Off"/>
</TextBlock>
<TextBlock Grid.Column="1" FontSize="11" Foreground="{DynamicResource TextBrush}">
<Run Text="Ctrl+Alt+2" FontWeight="SemiBold"/>
<Run Text=" Yes"/>
</TextBlock>
<TextBlock Grid.Column="2" FontSize="11" Foreground="{DynamicResource TextBrush}">
<Run Text="Ctrl+Alt+3" FontWeight="SemiBold"/>
<Run Text=" Yes+Always"/>
</TextBlock>
</Grid>
</StackPanel>
</Border>
<!-- Footer -->
<Grid Grid.Row="3" Margin="0,8,0,0">
<TextBlock Text="Minimizes to system tray on close"
FontSize="10"
Foreground="{DynamicResource SecondaryTextBrush}"
HorizontalAlignment="Center"/>
</Grid>
</Grid>
</Window>