-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.xaml
157 lines (156 loc) · 7.7 KB
/
MainWindow.xaml
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
157
<Window x:Class="Chef.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:Chef" xmlns:tb="http://www.hardcodet.net/taskbar"
mc:Ignorable="d"
Title="Chef" Height="730" Width="370"
WindowStyle="None"
WindowStartupLocation="CenterScreen"
ResizeMode="NoResize"
Background="Transparent"
AllowsTransparency="True">
<Window.Resources>
<Style TargetType="{x:Type Button}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border Background="{TemplateBinding Background}" BorderBrush="Black" BorderThickness="1">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="Foreground">
<Setter.Value>#bc7c41</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Foreground" Value="#b86111"/>
</Trigger>
</Style.Triggers>
</Style>
</Window.Resources>
<!--
Background: #e9c493
Text: #bc7c41
Background 2: #feebd6r
-->
<Border CornerRadius="10" Background="#e6b980" MouseDown="Border_MouseDown">
<Grid>
<tb:TaskbarIcon x:Name="myNotifyIcon"
Visibility="Visible"
ToolTipText="Test"
IconSource="spatula.ico"
MenuActivation="All">
<tb:TaskbarIcon.ContextMenu>
<ContextMenu>
<MenuItem Header="Show" Click="fromTaskbar"/>
<MenuItem Header="Exit" Click="exit"/>
</ContextMenu>
</tb:TaskbarIcon.ContextMenu>
</tb:TaskbarIcon>
<!--
<Canvas IsHitTestVisible="False" Margin="4,4,4,3">
<Canvas.Background>
<LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
<GradientStop Color="#e6b980" Offset="0"/>
<GradientStop Color="#EACDA3" Offset="1"/>
</LinearGradientBrush>
</Canvas.Background>
</Canvas>
-->
<Button x:Name="closeBtn" Background="#feebd6" FontFamily="Open Sans" FontSize="35" Margin="23,80,0,0" VerticalAlignment="Top" Height="57" RenderTransformOrigin="0.507,0.499" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
Padding="0,0,0,2" Content="×" HorizontalAlignment="Left" Width="57" Click="toTaskbar">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="30,30,30,30"/>
</Style>
</Button.Resources>
</Button>
<Button x:Name="optionsBtn" Background="#feebd6" FontFamily="Open Sans" FontSize="35" Margin="291,80,23,0" VerticalAlignment="Top" Height="57" RenderTransformOrigin="0.507,0.499" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"
Padding="0,0,0,5" Content="···" Click="openProfileConfig">
<Button.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="30,30,30,30"/>
</Style>
</Button.Resources>
</Button>
<TextBlock HorizontalAlignment="Center" Margin="0,80,0,0" TextWrapping="Wrap" VerticalAlignment="Top"
Height="57" Width="140" FontFamily="Open Sans" FontSize="45"
Foreground="#bc7c41" FontWeight="Bold"
Text=" Chef"
/>
<Ellipse Margin="66,161,66,329" Stroke="black" RenderTransformOrigin="0.5,0.5">
<Ellipse.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform Angle="0"/>
<TranslateTransform/>
</TransformGroup>
</Ellipse.RenderTransform>
<Ellipse.Fill>
<ImageBrush ImageSource="/crepe.png" />
</Ellipse.Fill>
</Ellipse>
<Label x:Name="connectedLabel" HorizontalAlignment="Center" Margin="0,406,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.421,0.462"
Content="Currently connected to:"
Foreground="#bc7c41"
FontFamily="Open Sans" FontWeight="Bold" FontSize="15"
/>
<Label x:Name="connectedTxt" HorizontalAlignment="Center" Margin="0,441,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.421,0.462"
Content="CrepeTS @ 127.0.0.1"
Foreground="#bc7c41"
FontFamily="Open Sans" FontSize="13" FontWeight="Normal"
/>
<Grid Margin="10,496,10,140">
<ItemsControl Margin="10,0,0,10" x:Name="profileList">
<ItemsControl.ItemContainerStyle>
<Style>
<Setter Property="FrameworkElement.Margin" Value="5"/>
</Style>
</ItemsControl.ItemContainerStyle>
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid Rows="1" MaxWidth="550"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.Items>
<Button Content="">
<Button.Resources>
<Style TargetType="Border">
<Setter Property="CornerRadius" Value="90"/>
</Style>
</Button.Resources>
<Button.Background>
<ImageBrush ImageSource="/crepe.png"/>
</Button.Background>
</Button>
<Button Content="">
<Button.Resources>
<Style TargetType="Border">
<Setter Property="CornerRadius" Value="90"/>
</Style>
</Button.Resources>
<Button.Background>
<ImageBrush ImageSource="/crepe.png"/>
</Button.Background>
</Button>
<Button Content="">
<Button.Resources>
<Style TargetType="Border">
<Setter Property="CornerRadius" Value="90"/>
</Style>
</Button.Resources>
<Button.Background>
<ImageBrush ImageSource="/crepe.png"/>
</Button.Background>
</Button>
</ItemsControl.Items>
</ItemsControl>
</Grid>
</Grid>
</Border>
</Window>