-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
92 lines (87 loc) · 4.53 KB
/
Copy pathMainWindow.xaml
File metadata and controls
92 lines (87 loc) · 4.53 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
<Window x:Class="Desktoper.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Desktoper"
xmlns:view="clr-namespace:Desktoper.MVVM.View"
xmlns:controls="clr-namespace:Desktoper.MVVM.View.Controls"
WindowStyle="None"
AllowsTransparency="True"
Background="Transparent"
mc:Ignorable="d"
Title="Desktoper"
Height="510" Width="780" Opacity="0.98">
<Border CornerRadius="7" Background="{DynamicResource Background}"
BorderBrush="{DynamicResource Border}"
BorderThickness="1" Margin="10">
<Border.Effect>
<DropShadowEffect BlurRadius="15" Direction="-90"
RenderingBias="Quality" ShadowDepth="2"/>
</Border.Effect>
<Grid>
<Grid Background="Transparent" VerticalAlignment="Top"
MouseLeftButtonDown="OnDragMove" Height="55">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="25 0 0 0">
<TextBlock Foreground="{DynamicResource Foreground}"
FontWeight="SemiBold"
VerticalAlignment="Center"
FontSize="16">
Process listening
</TextBlock>
<Border CornerRadius="20"
Cursor="Hand" MouseLeftButtonDown="ListeningStateMouseDown"
VerticalAlignment="Center" Margin="10 3 0 0"
Width="10" Height="10">
<Border.Style>
<Style TargetType="Border">
<Setter Property="Background" Value="PaleVioletRed"/>
<Style.Triggers>
<DataTrigger Binding="{Binding Config.IsListening}" Value="True">
<Setter Property="Background" Value="SpringGreen"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Border.Style>
</Border>
</StackPanel>
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
<Button Width="25" Height="25"
Click="ButtonBase_OnClick"
Style="{StaticResource IconButton}"
Padding="5"
Tag="{StaticResource CogIcon}">
<Button.Resources>
<CornerRadius x:Key="CornerRadius">5 5 5 5</CornerRadius>
</Button.Resources>
</Button>
<Button
Margin="9 0 15 0"
Tag="{StaticResource CloseIcon}"
Width="25" Height="25" Padding="6.5"
HorizontalAlignment="Right"
Click="OnClosing"
VerticalAlignment="Center">
<Button.Resources>
<CornerRadius x:Key="CornerRadius">5 5 5 5</CornerRadius>
</Button.Resources>
<Button.Style>
<Style BasedOn="{StaticResource IconButton}" TargetType="Button">
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="{DynamicResource Secondary}"/>
<Setter Property="Foreground" Value="{DynamicResource Destructive}"/>
</Trigger>
</Style.Triggers>
</Style>
</Button.Style>
</Button>
</StackPanel>
<Border Background="{DynamicResource Border}" Height="1" VerticalAlignment="Bottom"></Border>
</Grid>
<view:DesktopsView Margin="0 55 0 0"/>
<controls:PopupHost x:Name="PopupHost"
/>
</Grid>
</Border>
</Window>