-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathTrayPopup.xaml
More file actions
156 lines (156 loc) · 10.2 KB
/
Copy pathTrayPopup.xaml
File metadata and controls
156 lines (156 loc) · 10.2 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<Window x:Class="NetFix.TrayPopup"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
WindowStyle="None"
AllowsTransparency="True"
Background="Transparent"
Topmost="True"
ShowInTaskbar="False"
SizeToContent="WidthAndHeight"
UseLayoutRounding="True">
<Window.Resources>
<Style x:Key="MenuItemStyle" TargetType="Border">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="CornerRadius" Value="8"/>
<Setter Property="Margin" Value="6,1"/>
<Setter Property="Padding" Value="10,8"/>
<Setter Property="Cursor" Value="Hand"/>
</Style>
</Window.Resources>
<Border Margin="12" Background="#18181B" CornerRadius="14"
BorderBrush="#27272A" BorderThickness="1">
<Border.Effect>
<DropShadowEffect BlurRadius="24" ShadowDepth="0"
Color="Black" Opacity="0.7" Direction="270"/>
</Border.Effect>
<StackPanel Width="248">
<Grid Margin="14,12,14,10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<Ellipse Width="8" Height="8" VerticalAlignment="Center" Margin="0,0,8,0">
<Ellipse.Fill>
<SolidColorBrush Color="#22C55E"/>
</Ellipse.Fill>
<Ellipse.Effect>
<DropShadowEffect Color="#22C55E" BlurRadius="6" ShadowDepth="0" Opacity="0.7"/>
</Ellipse.Effect>
</Ellipse>
<TextBlock Text="NetFix" Foreground="#F4F4F5"
FontFamily="Segoe UI" FontSize="13" FontWeight="SemiBold"/>
</StackPanel>
<TextBlock Grid.Column="1" x:Name="VersionLabel" Text="v1.0" Foreground="#52525B"
FontFamily="Segoe UI" FontSize="11" VerticalAlignment="Center"/>
</Grid>
<Border Height="1" Background="#27272A" Margin="0"/>
<StackPanel Margin="8,8,8,4">
<Border Background="#1F1F22" CornerRadius="8" Margin="0,0,0,4" Padding="8,7">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<Ellipse x:Name="ZapretDot" Width="6" Height="6"
Fill="#3F3F46" VerticalAlignment="Center" Margin="0,0,8,0"/>
<TextBlock x:Name="ZapretLabel" Text="Zapret"
Foreground="#A1A1AA" FontFamily="Segoe UI" FontSize="12"/>
</StackPanel>
<Border x:Name="ZapretBtn" Grid.Column="1" CornerRadius="6"
Padding="9,4" Cursor="Hand"
MouseEnter="ZapretBtn_Enter" MouseLeave="ZapretBtn_Leave"
MouseLeftButtonUp="ZapretBtn_Click">
<StackPanel Orientation="Horizontal">
<TextBlock x:Name="ZapretBtnIcon" Text="▶" FontSize="9"
Foreground="#4ADE80" VerticalAlignment="Center" Margin="0,0,5,0"/>
<TextBlock x:Name="ZapretBtnText" Text="Запустить"
Foreground="#4ADE80" FontFamily="Segoe UI"
FontSize="11" FontWeight="Medium" VerticalAlignment="Center"/>
</StackPanel>
</Border>
</Grid>
</Border>
<Border Background="#1F1F22" CornerRadius="8" Margin="0,0,0,4" Padding="8,7">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<Ellipse x:Name="TgWsDot" Width="6" Height="6"
Fill="#3F3F46" VerticalAlignment="Center" Margin="0,0,8,0"/>
<TextBlock x:Name="TgWsLabel" Text="TgWsProxy"
Foreground="#A1A1AA" FontFamily="Segoe UI" FontSize="12"/>
</StackPanel>
<Border x:Name="TgWsBtn" Grid.Column="1" CornerRadius="6"
Padding="9,4" Cursor="Hand"
MouseEnter="TgWsBtn_Enter" MouseLeave="TgWsBtn_Leave"
MouseLeftButtonUp="TgWsBtn_Click">
<StackPanel Orientation="Horizontal">
<TextBlock x:Name="TgWsBtnIcon" Text="▶" FontSize="9"
Foreground="#4ADE80" VerticalAlignment="Center" Margin="0,0,5,0"/>
<TextBlock x:Name="TgWsBtnText" Text="Запустить"
Foreground="#4ADE80" FontFamily="Segoe UI"
FontSize="11" FontWeight="Medium" VerticalAlignment="Center"/>
</StackPanel>
</Border>
</Grid>
</Border>
<StackPanel Orientation="Horizontal" Margin="8,2,0,4">
<Ellipse Width="6" Height="6" Fill="#3B82F6" VerticalAlignment="Center" Margin="0,0,7,0"/>
<TextBlock Text="Пинг: " Foreground="#71717A" FontFamily="Segoe UI" FontSize="11"/>
<TextBlock x:Name="PingValue" Text="— мс" Foreground="#71717A"
FontFamily="Segoe UI" FontSize="11" FontWeight="Medium"/>
</StackPanel>
</StackPanel>
<Border Height="1" Background="#27272A" Margin="0"/>
<StackPanel Margin="0,6,0,6">
<Border x:Name="ConfigBtn" Style="{StaticResource MenuItemStyle}"
MouseEnter="ConfigBtn_Enter" MouseLeave="ConfigBtn_Leave"
MouseLeftButtonUp="ConfigBtn_Click">
<StackPanel Orientation="Horizontal">
<Viewbox Width="14" Height="14" Margin="0,0,10,0">
<Canvas Width="24" Height="24">
<Path Fill="#71717A"
Data="M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z"/>
</Canvas>
</Viewbox>
<TextBlock Text="Выбрать конфиг" Foreground="#D4D4D8"
FontFamily="Segoe UI" FontSize="12" VerticalAlignment="Center"/>
</StackPanel>
</Border>
<Border x:Name="OpenBtn" Style="{StaticResource MenuItemStyle}"
MouseEnter="OpenBtn_Enter" MouseLeave="OpenBtn_Leave"
MouseLeftButtonUp="OpenBtn_Click">
<StackPanel Orientation="Horizontal">
<Viewbox Width="14" Height="14" Margin="0,0,10,0">
<Canvas Width="24" Height="24">
<Path Fill="#71717A"
Data="M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3H14Z"/>
</Canvas>
</Viewbox>
<TextBlock Text="Открыть приложение" Foreground="#D4D4D8"
FontFamily="Segoe UI" FontSize="12" VerticalAlignment="Center"/>
</StackPanel>
</Border>
<Border Height="1" Background="#27272A" Margin="6,4"/>
<Border x:Name="ExitBtn" Style="{StaticResource MenuItemStyle}"
MouseEnter="ExitBtn_Enter" MouseLeave="ExitBtn_Leave"
MouseLeftButtonUp="ExitBtn_Click">
<StackPanel Orientation="Horizontal">
<Viewbox Width="14" Height="14" Margin="0,0,10,0">
<Canvas Width="24" Height="24">
<Path Fill="#F87171"
Data="M19,3H5C3.89,3 3,3.9 3,5V9H5V5H19V19H5V15H3V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.9 20.1,3 19,3M10.08,15.58L11.5,17L16.5,12L11.5,7L10.08,8.41L12.67,11H3V13H12.67L10.08,15.58Z"/>
</Canvas>
</Viewbox>
<TextBlock Text="Выход" Foreground="#F87171"
FontFamily="Segoe UI" FontSize="12" VerticalAlignment="Center"/>
</StackPanel>
</Border>
</StackPanel>
</StackPanel>
</Border>
</Window>