-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTranslucentFlow.xaml
More file actions
280 lines (241 loc) · 9.54 KB
/
TranslucentFlow.xaml
File metadata and controls
280 lines (241 loc) · 9.54 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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
<!--
Name: TranslucentFlow
IsDark: True
HasBlur: True
-->
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:m="http://schemas.modernwpf.com/2019"
xmlns:system="clr-namespace:System;assembly=mscorlib">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/Themes/Base.xaml" />
</ResourceDictionary.MergedDictionaries>
<!-- Blur behind the window -->
<system:Boolean x:Key="ThemeBlurEnabled">True</system:Boolean>
<!-- Main window background -->
<Style
x:Key="WindowBorderStyle"
BasedOn="{StaticResource BaseWindowBorderStyle}"
TargetType="{x:Type Border}">
<Setter Property="BorderThickness" Value="0" />
<Setter Property="BorderBrush" Value="#FF6C7279" />
<Setter Property="Background" Value="#00000000"/>
<Setter Property="CornerRadius" Value="10" />
<Setter Property="UseLayoutRounding" Value="True" />
</Style>
<Style
x:Key="WindowStyle"
BasedOn="{StaticResource BaseWindowStyle}"
TargetType="{x:Type Window}" />
<Style x:Key="WindowRadius" TargetType="{x:Type Border}" />
<!-- Query input text box -->
<Style
x:Key="QueryBoxStyle"
BasedOn="{StaticResource BaseQueryBoxStyle}"
TargetType="{x:Type TextBox}">
<Setter Property="Foreground" Value="#FFFFFFFF" />
<Setter Property="CaretBrush" Value="#FFDDDDDD" />
</Style>
<!-- Query suggestion text box -->
<Style
x:Key="QuerySuggestionBoxStyle"
BasedOn="{StaticResource BaseQuerySuggestionBoxStyle}"
TargetType="{x:Type TextBox}">
<Setter Property="Foreground" Value="#54FFFFFF" />
</Style>
<!-- The panel with the time and date -->
<Style
x:Key="ClockPanel"
BasedOn="{StaticResource ClockPanel}"
TargetType="{x:Type StackPanel}">
<Setter Property="Margin" Value="0 0 59 0" />
</Style>
<!-- Time text block -->
<Style
x:Key="ClockBox"
BasedOn="{StaticResource BaseClockBox}"
TargetType="{x:Type TextBlock}">
<Setter Property="Margin" Value="0 0 0 0" />
<Setter Property="Foreground" Value="#FF79817F" />
<Setter Property="FontSize" Value="14" />
<Setter Property="FontStyle" Value="Normal" />
<Setter Property="FontWeight" Value="Normal" />
</Style>
<!-- Date text block -->
<Style
x:Key="DateBox"
BasedOn="{StaticResource BaseDateBox}"
TargetType="{x:Type TextBlock}">
<Setter Property="Margin" Value="0 0 0 0" />
<Setter Property="Foreground" Value="#FF79817F" />
<Setter Property="FontSize" Value="14" />
<Setter Property="FontStyle" Value="Normal" />
<Setter Property="FontWeight" Value="Normal" />
</Style>
<!-- Icon to the right of the query text box -->
<Style
x:Key="SearchIconStyle"
BasedOn="{StaticResource BaseSearchIconStyle}"
TargetType="{x:Type Path}">
<Setter Property="Fill" Value="#FF79817F" />
<Setter Property="Width" Value="32" />
<Setter Property="Height" Value="32" />
</Style>
<!-- Progress bar under the query text box -->
<Style
x:Key="PendingLineStyle"
BasedOn="{StaticResource BasePendingLineStyle}"
TargetType="{x:Type Line}">
<Setter Property="Stroke" Value="#E6FFFFFF" />
<Setter Property="StrokeThickness" Value="2" />
</Style>
<!-- Separator between the query box and the results -->
<Style
x:Key="SeparatorStyle"
BasedOn="{StaticResource BaseSeparatorStyle}"
TargetType="{x:Type Rectangle}">
<Setter Property="Fill" Value="#6BFFFFFF" />
<Setter Property="Height" Value="2" />
<Setter Property="Margin" Value="0 -2 0 2" />
</Style>
<!-- Margins for the list of results -->
<Thickness x:Key="ResultMargin">0 0 0 0</Thickness>
<!-- Result title -->
<Style
x:Key="ItemTitleStyle"
BasedOn="{StaticResource BaseItemTitleStyle}"
TargetType="{x:Type TextBlock}">
<Setter Property="Foreground" Value="#B3CCCCCC" />
</Style>
<Style
x:Key="ItemTitleSelectedStyle"
BasedOn="{StaticResource BaseItemTitleSelectedStyle}"
TargetType="{x:Type TextBlock}">
<Setter Property="Foreground" Value="#FFC3C3C3" />
</Style>
<!-- Result subtitle -->
<Style
x:Key="ItemSubTitleStyle"
BasedOn="{StaticResource BaseItemSubTitleStyle}"
TargetType="{x:Type TextBlock}">
<Setter Property="Foreground" Value="#FF999999" />
</Style>
<Style
x:Key="ItemSubTitleSelectedStyle"
BasedOn="{StaticResource BaseItemSubTitleSelectedStyle}"
TargetType="{x:Type TextBlock}">
<Setter Property="Foreground" Value="#66FFFFFF" />
</Style>
<!-- Result hotkey (Alt+1, Alt+2, etc.) -->
<Style x:Key="ItemHotkeyStyle" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="12" />
<Setter Property="Foreground" Value="#ffffff80" />
</Style>
<Style x:Key="ItemHotkeySelectedStyle" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="12" />
<Setter Property="Foreground" Value="#ffffff" />
</Style>
<!-- Result glyph -->
<Style x:Key="ItemGlyph" TargetType="{x:Type TextBlock}">
<Setter Property="Foreground" Value="#69FFFFFF" />
<Setter Property="Width" Value="20" />
<Setter Property="Height" Value="20" />
<Setter Property="FontSize" Value="20" />
</Style>
<Style x:Key="ItemGlyphSelectedStyle" TargetType="{x:Type TextBlock}">
<Setter Property="Foreground" Value="#CCFFFFFF" />
<Setter Property="Width" Value="20" />
<Setter Property="Height" Value="20" />
<Setter Property="FontSize" Value="20" />
</Style>
<!-- Selected result styles -->
<SolidColorBrush x:Key="ItemSelectedBackgroundColor">#36AEAEAE</SolidColorBrush>
<CornerRadius x:Key="ItemRadius">10</CornerRadius>
<Thickness x:Key="ItemMargin">5 0 5 0</Thickness>
<!-- Highlighted text -->
<Style x:Key="HighlightStyle">
<Setter Property="Inline.Foreground" Value="#FFFFFFFF" />
<Setter Property="Inline.FontStyle" Value="Normal" />
<Setter Property="Inline.FontWeight" Value="Normal" />
</Style>
<!-- Bullets -->
<Style
x:Key="BulletStyle"
BasedOn="{StaticResource BaseBulletStyle}"
TargetType="{x:Type Border}">
<Setter Property="Width" Value="4" />
<Setter Property="Height" Value="10" />
<Setter Property="CornerRadius" Value="2" />
<Setter Property="Background" Value="#63FFFFFF" />
</Style>
<Style
x:Key="ItemBulletSelectedStyle"
BasedOn="{StaticResource BaseBulletStyle}"
TargetType="{x:Type Border}">
<Setter Property="Width" Value="4" />
<Setter Property="Height" Value="36" />
<Setter Property="CornerRadius" Value="2" />
<Setter Property="Background" Value="#BAFFFFFF" />
</Style>
<!-- Scrollbar container -->
<Style
x:Key="ScrollBarStyle"
BasedOn="{StaticResource BaseScrollBarStyle}"
TargetType="{x:Type ScrollBar}">
<Setter Property="Width" Value="3" />
</Style>
<!-- Scrollbar thumb -->
<Style
x:Key="ThumbStyle"
BasedOn="{StaticResource BaseThumbStyle}"
TargetType="{x:Type Thumb}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Thumb}">
<Border
Background="#2EFFFFFF"
BorderBrush="Transparent"
BorderThickness="0"
CornerRadius="5"
DockPanel.Dock="Right" />
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- Preview Panel -->
<Style
x:Key="PreviewBorderStyle"
BasedOn="{StaticResource BasePreviewBorderStyle}"
TargetType="{x:Type Border}">
<Setter Property="BorderBrush" Value="#5CFFFFFF" />
<Setter Property="BorderThickness" Value="0 0 0 0" />
<Setter Property="Margin" Value="0 0 0 0" />
</Style>
<Style
x:Key="PreviewItemTitleStyle"
BasedOn="{StaticResource BasePreviewItemTitleStyle}"
TargetType="{x:Type TextBlock}">
<Setter Property="Foreground" Value="#FFFFFFFF" />
<Setter Property="FontSize" Value="14" />
<Setter Property="FontStyle" Value="Normal" />
<Setter Property="FontWeight" Value="Bold" />
<Setter Property="LineHeight" Value="21" />
</Style>
<Style
x:Key="PreviewItemSubTitleStyle"
BasedOn="{StaticResource BasePreviewItemSubTitleStyle}"
TargetType="{x:Type TextBlock}">
<Setter Property="Foreground" Value="#96FFFFFF" />
<Setter Property="FontSize" Value="12" />
<Setter Property="FontStyle" Value="Normal" />
<Setter Property="FontWeight" Value="Normal" />
<Setter Property="LineHeight" Value="18" />
</Style>
<Style
x:Key="PreviewGlyph"
BasedOn="{StaticResource BasePreviewGlyph}"
TargetType="{x:Type TextBlock}">
<Setter Property="Foreground" Value="#8FFFFFFF" />
</Style>
</ResourceDictionary>