1
- <UserControl x : Class =" IconImage.AppIcon"
2
- xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
- xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
4
- xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
5
- xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
6
- xmlns : local =" clr-namespace:IconImage"
7
- mc : Ignorable =" d"
8
- d : DesignHeight =" 256" d : DesignWidth =" 256"
9
- Width =" 256" Height =" 256" >
10
- <UserControl .Resources>
11
- <Color x : Key =" EdgeColor" >#FF343434</Color >
12
- <Color x : Key =" BackColor" >#FF262626</Color >
13
-
14
- <SolidColorBrush x : Key =" LightBrush" Color =" White" />
15
- <SolidColorBrush x : Key =" EdgeBrush" Color =" {StaticResource BackColor}" />
16
- <SolidColorBrush x : Key =" BackBrush" Color =" {StaticResource BackColor}" />
17
- </UserControl .Resources>
18
-
19
- <Grid Background =" {x:Null}" >
20
- <Rectangle Fill =" {StaticResource BackBrush}" />
21
-
22
- <Grid >
23
- <Border BorderBrush =" {StaticResource EdgeBrush}"
24
- BorderThickness=" 32"
25
- Width=" 144" Height =" 112"
26
- HorizontalAlignment=" Center" VerticalAlignment =" Center" />
27
- <Border BorderBrush =" {StaticResource LightBrush}"
28
- BorderThickness=" 16"
29
- Width=" 128" Height =" 96" HorizontalAlignment =" Center" VerticalAlignment =" Center" />
30
- </Grid >
31
-
32
- <Grid >
33
- <Rectangle Width =" 32" Height =" 64" Margin =" 104,8,0,0"
34
- HorizontalAlignment =" Left" VerticalAlignment =" Top"
35
- Fill =" {StaticResource EdgeBrush}" />
36
-
37
- <Line X1 =" 120" Y1 =" 16" X2 =" 120" Y2 =" 64"
38
- Stroke =" {StaticResource LightBrush}" StrokeThickness =" 16" />
39
- </Grid >
40
-
41
- <Grid RenderTransformOrigin =" 0.5 0.5" >
42
- <Rectangle Width =" 34" Height =" 54" Margin =" 103,-8,0,0"
43
- HorizontalAlignment =" Left" VerticalAlignment =" Top"
44
- Fill =" {StaticResource EdgeBrush}" />
45
-
46
- <Line X1 =" 120" Y1 =" 0" X2 =" 120" Y2 =" 38"
47
- Stroke =" {StaticResource LightBrush}" StrokeThickness =" 18" />
48
-
49
- <Grid .RenderTransform>
50
- <RotateTransform Angle =" 45" />
51
- </Grid .RenderTransform>
52
- </Grid >
53
-
54
- <Grid RenderTransformOrigin =" 0.5 0.5" >
55
- <Rectangle Width =" 32" Height =" 56" Margin =" 104,0,0,0"
56
- HorizontalAlignment =" Left" VerticalAlignment =" Top"
57
- Fill =" {StaticResource EdgeBrush}" />
58
-
59
- <Line X1 =" 120" Y1 =" 8" X2 =" 120" Y2 =" 50"
60
- Stroke =" {StaticResource LightBrush}" StrokeThickness =" 16" />
61
-
62
- <Grid .RenderTransform>
63
- <RotateTransform Angle =" 90" />
64
- </Grid .RenderTransform>
65
- </Grid >
66
-
67
- <Grid RenderTransformOrigin =" 0.5 0.5" >
68
- <Rectangle Width =" 34" Height =" 50" Margin =" 103,-8,0,0"
69
- HorizontalAlignment =" Left" VerticalAlignment =" Top"
70
- Fill =" {StaticResource EdgeBrush}" />
71
-
72
- <Line X1 =" 120" Y1 =" 0" X2 =" 120" Y2 =" 34"
73
- Stroke =" {StaticResource LightBrush}" StrokeThickness =" 18" />
74
-
75
- <Grid .RenderTransform>
76
- <RotateTransform Angle =" 135" />
77
- </Grid .RenderTransform>
78
- </Grid >
79
-
80
- <Grid RenderTransformOrigin =" 0.5 0.5" >
81
- <Rectangle Width =" 32" Height =" 64" Margin =" 104,8,0,0"
82
- HorizontalAlignment =" Left" VerticalAlignment =" Top"
83
- Fill =" {StaticResource EdgeBrush}" />
84
-
85
- <Line X1 =" 120" Y1 =" 16" X2 =" 120" Y2 =" 64"
86
- Stroke =" {StaticResource LightBrush}" StrokeThickness =" 16" />
87
-
88
- <Grid .RenderTransform>
89
- <RotateTransform Angle =" 180" />
90
- </Grid .RenderTransform>
91
- </Grid >
92
-
93
- <Grid RenderTransformOrigin =" 0.5 0.5" >
94
- <Rectangle Width =" 34" Height =" 54" Margin =" 103,-8,0,0"
95
- HorizontalAlignment =" Left" VerticalAlignment =" Top"
96
- Fill =" {StaticResource EdgeBrush}" />
97
-
98
- <Line X1 =" 120" Y1 =" 0" X2 =" 120" Y2 =" 38"
99
- Stroke =" {StaticResource LightBrush}" StrokeThickness =" 18" />
100
-
101
- <Grid .RenderTransform>
102
- <RotateTransform Angle =" 225" />
103
- </Grid .RenderTransform>
104
- </Grid >
105
-
106
- <Grid RenderTransformOrigin =" 0.5 0.5" >
107
- <Rectangle Width =" 32" Height =" 56" Margin =" 104,0,0,0"
108
- HorizontalAlignment =" Left" VerticalAlignment =" Top"
109
- Fill =" {StaticResource EdgeBrush}" />
110
-
111
- <Line X1 =" 120" Y1 =" 8" X2 =" 120" Y2 =" 50"
112
- Stroke =" {StaticResource LightBrush}" StrokeThickness =" 16" />
113
-
114
- <Grid .RenderTransform>
115
- <RotateTransform Angle =" 270" />
116
- </Grid .RenderTransform>
117
- </Grid >
118
-
119
- <Grid RenderTransformOrigin =" 0.5 0.5" >
120
- <Rectangle Width =" 34" Height =" 50" Margin =" 103,-8,0,0"
121
- HorizontalAlignment =" Left" VerticalAlignment =" Top"
122
- Fill =" {StaticResource EdgeBrush}" />
123
-
124
- <Line X1 =" 120" Y1 =" 0" X2 =" 120" Y2 =" 34"
125
- Stroke =" {StaticResource LightBrush}" StrokeThickness =" 18" />
126
-
127
- <Grid .RenderTransform>
128
- <RotateTransform Angle =" 315" />
129
- </Grid .RenderTransform>
130
- </Grid >
131
- </Grid >
1
+ <UserControl x : Class =" IconImage.DarkAppIcon"
2
+ xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
+ xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
4
+ xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
5
+ xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
6
+ xmlns : local =" clr-namespace:IconImage"
7
+ mc : Ignorable =" d"
8
+ d : DesignHeight =" 256" d : DesignWidth =" 256"
9
+ Width =" 256" Height =" 256" >
10
+ <UserControl .Resources>
11
+ <Color x : Key =" EdgeColor" >#FF343434</Color >
12
+ <!-- To produce images for tray icon, back color shall be transparent. -->
13
+ <Color x : Key =" BackColor" >#FF262626</Color >
14
+
15
+ <SolidColorBrush x : Key =" LightBrush" Color =" White" />
16
+ <SolidColorBrush x : Key =" EdgeBrush" Color =" {StaticResource BackColor}" />
17
+ <SolidColorBrush x : Key =" BackBrush" Color =" {StaticResource BackColor}" />
18
+ </UserControl .Resources>
19
+
20
+ <Grid Background =" {x:Null}" >
21
+ <Rectangle Fill =" {StaticResource BackBrush}" />
22
+
23
+ <Grid >
24
+ <Border BorderBrush =" {StaticResource EdgeBrush}"
25
+ BorderThickness=" 32"
26
+ Width=" 144" Height =" 112"
27
+ HorizontalAlignment=" Center" VerticalAlignment =" Center" />
28
+ <Border BorderBrush =" {StaticResource LightBrush}"
29
+ BorderThickness=" 16"
30
+ Width=" 128" Height =" 96" HorizontalAlignment =" Center" VerticalAlignment =" Center" />
31
+ </Grid >
32
+
33
+ <Grid >
34
+ <Rectangle Width =" 32" Height =" 64" Margin =" 104,8,0,0"
35
+ HorizontalAlignment =" Left" VerticalAlignment =" Top"
36
+ Fill =" {StaticResource EdgeBrush}" />
37
+
38
+ <Line X1 =" 120" Y1 =" 16" X2 =" 120" Y2 =" 64"
39
+ Stroke =" {StaticResource LightBrush}" StrokeThickness =" 16" />
40
+ </Grid >
41
+
42
+ <Grid RenderTransformOrigin =" 0.5 0.5" >
43
+ <Rectangle Width =" 34" Height =" 54" Margin =" 103,-8,0,0"
44
+ HorizontalAlignment =" Left" VerticalAlignment =" Top"
45
+ Fill =" {StaticResource EdgeBrush}" />
46
+
47
+ <Line X1 =" 120" Y1 =" 0" X2 =" 120" Y2 =" 38"
48
+ Stroke =" {StaticResource LightBrush}" StrokeThickness =" 18" />
49
+
50
+ <Grid .RenderTransform>
51
+ <RotateTransform Angle =" 45" />
52
+ </Grid .RenderTransform>
53
+ </Grid >
54
+
55
+ <Grid RenderTransformOrigin =" 0.5 0.5" >
56
+ <Rectangle Width =" 32" Height =" 56" Margin =" 104,0,0,0"
57
+ HorizontalAlignment =" Left" VerticalAlignment =" Top"
58
+ Fill =" {StaticResource EdgeBrush}" />
59
+
60
+ <Line X1 =" 120" Y1 =" 8" X2 =" 120" Y2 =" 50"
61
+ Stroke =" {StaticResource LightBrush}" StrokeThickness =" 16" />
62
+
63
+ <Grid .RenderTransform>
64
+ <RotateTransform Angle =" 90" />
65
+ </Grid .RenderTransform>
66
+ </Grid >
67
+
68
+ <Grid RenderTransformOrigin =" 0.5 0.5" >
69
+ <Rectangle Width =" 34" Height =" 50" Margin =" 103,-8,0,0"
70
+ HorizontalAlignment =" Left" VerticalAlignment =" Top"
71
+ Fill =" {StaticResource EdgeBrush}" />
72
+
73
+ <Line X1 =" 120" Y1 =" 0" X2 =" 120" Y2 =" 34"
74
+ Stroke =" {StaticResource LightBrush}" StrokeThickness =" 18" />
75
+
76
+ <Grid .RenderTransform>
77
+ <RotateTransform Angle =" 135" />
78
+ </Grid .RenderTransform>
79
+ </Grid >
80
+
81
+ <Grid RenderTransformOrigin =" 0.5 0.5" >
82
+ <Rectangle Width =" 32" Height =" 64" Margin =" 104,8,0,0"
83
+ HorizontalAlignment =" Left" VerticalAlignment =" Top"
84
+ Fill =" {StaticResource EdgeBrush}" />
85
+
86
+ <Line X1 =" 120" Y1 =" 16" X2 =" 120" Y2 =" 64"
87
+ Stroke =" {StaticResource LightBrush}" StrokeThickness =" 16" />
88
+
89
+ <Grid .RenderTransform>
90
+ <RotateTransform Angle =" 180" />
91
+ </Grid .RenderTransform>
92
+ </Grid >
93
+
94
+ <Grid RenderTransformOrigin =" 0.5 0.5" >
95
+ <Rectangle Width =" 34" Height =" 54" Margin =" 103,-8,0,0"
96
+ HorizontalAlignment =" Left" VerticalAlignment =" Top"
97
+ Fill =" {StaticResource EdgeBrush}" />
98
+
99
+ <Line X1 =" 120" Y1 =" 0" X2 =" 120" Y2 =" 38"
100
+ Stroke =" {StaticResource LightBrush}" StrokeThickness =" 18" />
101
+
102
+ <Grid .RenderTransform>
103
+ <RotateTransform Angle =" 225" />
104
+ </Grid .RenderTransform>
105
+ </Grid >
106
+
107
+ <Grid RenderTransformOrigin =" 0.5 0.5" >
108
+ <Rectangle Width =" 32" Height =" 56" Margin =" 104,0,0,0"
109
+ HorizontalAlignment =" Left" VerticalAlignment =" Top"
110
+ Fill =" {StaticResource EdgeBrush}" />
111
+
112
+ <Line X1 =" 120" Y1 =" 8" X2 =" 120" Y2 =" 50"
113
+ Stroke =" {StaticResource LightBrush}" StrokeThickness =" 16" />
114
+
115
+ <Grid .RenderTransform>
116
+ <RotateTransform Angle =" 270" />
117
+ </Grid .RenderTransform>
118
+ </Grid >
119
+
120
+ <Grid RenderTransformOrigin =" 0.5 0.5" >
121
+ <Rectangle Width =" 34" Height =" 50" Margin =" 103,-8,0,0"
122
+ HorizontalAlignment =" Left" VerticalAlignment =" Top"
123
+ Fill =" {StaticResource EdgeBrush}" />
124
+
125
+ <Line X1 =" 120" Y1 =" 0" X2 =" 120" Y2 =" 34"
126
+ Stroke =" {StaticResource LightBrush}" StrokeThickness =" 18" />
127
+
128
+ <Grid .RenderTransform>
129
+ <RotateTransform Angle =" 315" />
130
+ </Grid .RenderTransform>
131
+ </Grid >
132
+ </Grid >
132
133
</UserControl >
0 commit comments