-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
100 lines (91 loc) · 3.86 KB
/
MainWindow.xaml
File metadata and controls
100 lines (91 loc) · 3.86 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
<Window x:Class="TouchFuture.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="TouchFuture"
Height="80" Width="80"
WindowStyle="None"
AllowsTransparency="True"
Background="{x:Null}"
Topmost="True"
ShowInTaskbar="False"
ResizeMode="NoResize"
WindowStartupLocation="CenterScreen">
<Grid Background="Transparent">
<Ellipse x:Name="MenuBackground"
Width="200" Height="200"
Fill="{StaticResource MenuBackgroundBrush}"
Stroke="White" StrokeThickness="2"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Visibility="Collapsed"/>
<Canvas x:Name="MenuCanvas"
Width="200" Height="200"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Visibility="Collapsed">
<Button x:Name="CloseButton"
Canvas.Left="75" Canvas.Top="75"
Width="50" Height="50"
Style="{StaticResource CloseButtonStyle}"
Content="×"
FontSize="20"
Click="CloseButton_Click"/>
<Button x:Name="VoiceButton"
Canvas.Left="80" Canvas.Top="20"
Width="40" Height="40"
Style="{StaticResource MenuButtonStyle}"
Content="🎤"
FontSize="18"
Click="VoiceButton_Click"/>
<Button x:Name="CaptionButton"
Canvas.Left="140" Canvas.Top="80"
Width="40" Height="40"
Style="{StaticResource MenuButtonStyle}"
Content="📝"
FontSize="18"
Click="CaptionButton_Click"/>
<Button x:Name="CopilotButton"
Canvas.Left="80" Canvas.Top="140"
Width="40" Height="40"
Style="{StaticResource MenuButtonStyle}"
Content="💬"
FontSize="18"
Click="CopilotButton_Click"/>
<Button x:Name="AltSpaceButton"
Canvas.Left="20" Canvas.Top="80"
Width="40" Height="40"
Style="{StaticResource MenuButtonStyle}"
Content="🌐"
FontSize="18"
Click="AltSpaceButton_Click"/>
</Canvas>
<Ellipse Name="AssistantButton"
Width="70" Height="70"
Fill="{StaticResource AssistantButtonBrush}"
Stroke="#4A90E2"
StrokeThickness="2"
Cursor="Hand"
HorizontalAlignment="Center"
VerticalAlignment="Center"
MouseDown="MainButton_MouseDown"
MouseMove="MainButton_MouseMove"
MouseUp="MainButton_MouseUp"
TouchDown="MainButton_TouchDown"
TouchMove="MainButton_TouchMove"
TouchUp="MainButton_TouchUp">
<Ellipse.Effect>
<DropShadowEffect ShadowDepth="3" BlurRadius="10" Opacity="0.3"/>
</Ellipse.Effect>
</Ellipse>
<TextBlock Text="🤖"
FontSize="28"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Foreground="White"
IsHitTestVisible="False">
<TextBlock.Effect>
<DropShadowEffect ShadowDepth="1" BlurRadius="2" Opacity="0.5"/>
</TextBlock.Effect>
</TextBlock>
</Grid>
</Window>