1
- <ResourceDictionary xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
2
- xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
3
- xmlns : system =" clr-namespace:System;assembly=mscorlib"
4
- xmlns : userSettings =" clr-namespace:Flow.Launcher.Infrastructure.UserSettings;assembly=Flow.Launcher.Infrastructure" >
1
+ <ResourceDictionary
2
+ xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
+ xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
4
+ xmlns : system =" clr-namespace:System;assembly=mscorlib"
5
+ xmlns : userSettings =" clr-namespace:Flow.Launcher.Infrastructure.UserSettings;assembly=Flow.Launcher.Infrastructure" >
5
6
6
- <!-- Further font customisations are dynamically loaded in Theme.cs -->
7
+ <!-- Further font customisations are dynamically loaded in Theme.cs -->
7
8
<Style x : Key =" BaseQueryBoxStyle" TargetType =" {x:Type TextBox}" >
8
9
<Setter Property =" BorderThickness" Value =" 0" />
9
10
<Setter Property =" FontSize" Value =" 28" />
10
11
<Setter Property =" FontWeight" Value =" Regular" />
11
- <Setter Property =" Margin" Value =" 16 7 0 7" />
12
- <Setter Property =" Padding" Value =" 0 4 68 0" />
12
+ <Setter Property =" Margin" Value =" 16,7,0, 7" />
13
+ <Setter Property =" Padding" Value =" 0,4,68, 0" />
13
14
<Setter Property =" Background" Value =" #2F2F2F" />
14
15
<Setter Property =" Height" Value =" 48" />
15
16
<Setter Property =" Foreground" Value =" #E3E0E3" />
20
21
<Setter Property =" Template" >
21
22
<Setter .Value>
22
23
<ControlTemplate TargetType =" {x:Type TextBox}" >
23
- <Border x : Name =" border" BorderBrush =" {TemplateBinding BorderBrush}" BorderThickness =" {TemplateBinding BorderThickness}" Background =" {TemplateBinding Background}" SnapsToDevicePixels =" True" >
24
- <ScrollViewer x : Name =" PART_ContentHost" Focusable =" false" HorizontalScrollBarVisibility =" Hidden" VerticalScrollBarVisibility =" Hidden"
25
- Background =" {TemplateBinding Background}" >
24
+ <Border
25
+ x : Name =" border"
26
+ Background =" {TemplateBinding Background}"
27
+ BorderBrush =" {TemplateBinding BorderBrush}"
28
+ BorderThickness =" {TemplateBinding BorderThickness}"
29
+ SnapsToDevicePixels =" True" >
30
+ <ScrollViewer
31
+ x : Name =" PART_ContentHost"
32
+ Background =" {TemplateBinding Background}"
33
+ Focusable =" false"
34
+ HorizontalScrollBarVisibility =" Hidden"
35
+ VerticalScrollBarVisibility =" Hidden" >
26
36
<ScrollViewer .ContentTemplate>
27
37
<DataTemplate >
28
- <Grid Background =" {Binding Background, ElementName=PART_ContentHost}" RenderOptions.ClearTypeHint= " Enabled " >
29
- <ContentPresenter Content =" {Binding Path=Content, ElementName=PART_ContentHost}" ></ ContentPresenter >
38
+ <Grid Background =" {Binding Background, ElementName=PART_ContentHost}" >
39
+ <ContentPresenter Content =" {Binding Path=Content, ElementName=PART_ContentHost}" / >
30
40
</Grid >
31
41
</DataTemplate >
32
42
</ScrollViewer .ContentTemplate>
37
47
</Setter >
38
48
</Style >
39
49
40
- <!-- Further font customisations are dynamically loaded in Theme.cs -->
41
- <Style x : Key =" BaseQuerySuggestionBoxStyle" BasedOn =" {StaticResource BaseQueryBoxStyle}" TargetType =" {x:Type TextBox}" >
50
+ <!-- Further font customisations are dynamically loaded in Theme.cs -->
51
+ <Style
52
+ x : Key =" BaseQuerySuggestionBoxStyle"
53
+ BasedOn =" {StaticResource BaseQueryBoxStyle}"
54
+ TargetType =" {x:Type TextBox}" >
42
55
<Setter Property =" Foreground" Value =" DarkGray" />
43
56
<Setter Property =" Height" Value =" 48" />
44
- <Setter Property =" Margin" Value =" 16 7 0 7" />
57
+ <Setter Property =" Margin" Value =" 16,7,0, 7" />
45
58
<Setter Property =" Background" Value =" Transparent" />
46
- <Setter Property =" Padding" Value =" 0 4 68 0" />
59
+ <Setter Property =" Padding" Value =" 0,4,68, 0" />
47
60
<Setter Property =" HorizontalAlignment" Value =" Stretch" />
48
61
<Setter Property =" VerticalAlignment" Value =" Center" />
49
62
</Style >
50
63
51
64
<Style x : Key =" BaseWindowBorderStyle" TargetType =" {x:Type Border}" >
52
65
<Setter Property =" BorderThickness" Value =" 0" />
53
- <Setter Property =" Background" Value =" #2F2F2F" ></ Setter >
54
- <Setter Property =" Padding" Value =" 0 0 0 0" />
66
+ <Setter Property =" Background" Value =" #2F2F2F" / >
67
+ <Setter Property =" Padding" Value =" 0,0,0, 0" />
55
68
<Setter Property =" CornerRadius" Value =" 5" />
56
69
</Style >
57
70
<Style x : Key =" BaseWindowStyle" TargetType =" {x:Type Window}" >
58
71
<Setter Property =" Width" Value =" 600" />
59
- <Setter Property =" RenderOptions.ClearTypeHint" Value =" Enabled" />
60
72
</Style >
61
73
62
74
<Style x : Key =" WindowRadius" TargetType =" {x:Type Border}" >
63
75
<Setter Property =" CornerRadius" Value =" 5" />
64
76
</Style >
65
-
77
+
66
78
<Style x : Key =" BasePendingLineStyle" TargetType =" {x:Type Line}" >
67
79
<Setter Property =" Stroke" Value =" Blue" />
68
80
</Style >
69
81
70
-
71
- <!-- Item Style -->
82
+
83
+ <!-- Item Style -->
72
84
<Style x : Key =" BaseItemTitleStyle" TargetType =" {x:Type TextBlock}" >
73
85
<Setter Property =" Foreground" Value =" #FFFFF8" />
74
86
<Setter Property =" FontSize" Value =" 16" />
75
87
<Setter Property =" FontWeight" Value =" Medium" />
76
- <Setter Property =" RenderOptions.ClearTypeHint" Value =" Enabled" />
77
88
</Style >
78
- <Style x : Key =" BaseItemSubTitleStyle" TargetType =" {x:Type TextBlock}" >
89
+ <Style x : Key =" BaseItemSubTitleStyle" TargetType =" {x:Type TextBlock}" >
79
90
<Setter Property =" Foreground" Value =" #D9D9D4" />
80
- <Setter Property =" RenderOptions.ClearTypeHint" Value =" Enabled" />
81
91
<Setter Property =" FontSize" Value =" 13" />
82
92
<Setter Property =" FontWeight" Value =" Normal" />
83
93
<Style .Triggers>
89
99
<Style x : Key =" BaseItemNumberStyle" TargetType =" {x:Type TextBlock}" >
90
100
<Setter Property =" VerticalAlignment" Value =" Center" />
91
101
<Setter Property =" HorizontalAlignment" Value =" Center" />
92
- <Setter Property =" Margin" Value =" 3 0 0 0" />
102
+ <Setter Property =" Margin" Value =" 3,0,0, 0" />
93
103
<Setter Property =" FontSize" Value =" 22" />
94
- <Setter Property =" RenderOptions.ClearTypeHint" Value =" Enabled" />
95
104
</Style >
96
105
<Style x : Key =" BaseGlyphStyle" TargetType =" {x:Type TextBlock}" >
97
106
<Setter Property =" Foreground" Value =" #ffffff" />
98
107
<Setter Property =" VerticalAlignment" Value =" Center" />
99
108
<Setter Property =" HorizontalAlignment" Value =" Center" />
100
109
<Setter Property =" Width" Value =" 25" />
101
110
<Setter Property =" Height" Value =" 25" />
102
- <Setter Property =" FontSize" Value =" 25" />
111
+ <Setter Property =" FontSize" Value =" 25" />
103
112
</Style >
104
- <Style x : Key =" BaseItemTitleSelectedStyle" TargetType =" {x:Type TextBlock}" >
113
+ <Style x : Key =" BaseItemTitleSelectedStyle" TargetType =" {x:Type TextBlock}" >
105
114
<Setter Property =" Foreground" Value =" #FFFFF8" />
106
115
<Setter Property =" FontSize" Value =" 16" />
107
116
<Setter Property =" FontWeight" Value =" Normal" />
108
- <Setter Property =" RenderOptions.ClearTypeHint" Value =" Enabled" />
109
117
</Style >
110
- <Style x : Key =" BaseItemSubTitleSelectedStyle" TargetType =" {x:Type TextBlock}" >
118
+ <Style x : Key =" BaseItemSubTitleSelectedStyle" TargetType =" {x:Type TextBlock}" >
111
119
<Setter Property =" Foreground" Value =" #D9D9D4" />
112
120
<Setter Property =" FontSize" Value =" 13" />
113
- <Setter Property =" RenderOptions.ClearTypeHint" Value =" Enabled" />
114
121
<Style .Triggers>
115
122
<DataTrigger Binding =" {Binding ElementName=SubTitle, UpdateSourceTrigger=PropertyChanged, Path=Text.Length}" Value =" 0" >
116
123
<Setter Property =" Height" Value =" 0" />
117
124
</DataTrigger >
118
125
</Style .Triggers>
119
126
</Style >
120
- <Style x : Key =" BaseItemImageSelectedStyle" TargetType =" {x:Type Image}" >
121
- </Style >
127
+ <Style x : Key =" BaseItemImageSelectedStyle" TargetType =" {x:Type Image}" />
122
128
123
129
<Style x : Key =" BaseListboxStyle" TargetType =" {x:Type ListBox}" >
124
- <Setter Property =" BorderBrush" Value =" Transparent" />
125
- <Setter Property =" Background" Value =" Transparent" />
126
- <Setter Property =" ScrollViewer.HorizontalScrollBarVisibility" Value =" Disabled" />
127
- <Setter Property =" ScrollViewer.VerticalScrollBarVisibility" Value =" Auto" />
128
- <Setter Property =" Margin" Value =" 0 0 0 0" />
129
- <Setter Property =" Padding" Value =" 0 0 0 0" />
130
+ <Setter Property =" BorderBrush" Value =" Transparent" />
131
+ <Setter Property =" Background" Value =" Transparent" />
132
+ <Setter Property =" ScrollViewer.HorizontalScrollBarVisibility" Value =" Disabled" />
133
+ <Setter Property =" ScrollViewer.VerticalScrollBarVisibility" Value =" Auto" />
134
+ <Setter Property =" Margin" Value =" 0,0,0, 0" />
135
+ <Setter Property =" Padding" Value =" 0,0,0, 0" />
130
136
<Setter Property =" Template" >
131
137
<Setter .Value>
132
138
<ControlTemplate TargetType =" ListBox" >
135
141
<Style TargetType =" ScrollViewer" >
136
142
<Style .Triggers>
137
143
<Trigger Property =" ComputedVerticalScrollBarVisibility" Value =" Visible" >
138
- <Setter Property =" Margin" Value =" 0 0 0 0" />
139
- <Setter Property =" Padding" Value =" 0 0 0 0" />
144
+ <Setter Property =" Margin" Value =" 0,0,0, 0" />
145
+ <Setter Property =" Padding" Value =" 0,0,0, 0" />
140
146
</Trigger >
141
147
<Trigger Property =" ComputedVerticalScrollBarVisibility" Value =" Collapsed" >
142
- <Setter Property =" Margin" Value =" 0 0 0 0" />
143
- <Setter Property =" Padding" Value =" 0 0 0 0" />
148
+ <Setter Property =" Margin" Value =" 0,0,0, 0" />
149
+ <Setter Property =" Padding" Value =" 0,0,0, 0" />
144
150
</Trigger >
145
151
</Style .Triggers>
146
152
</Style >
152
158
</Setter >
153
159
</Style >
154
160
155
- <!-- ScrollViewer Style -->
161
+ <!-- ScrollViewer Style -->
156
162
<ControlTemplate x : Key =" ScrollViewerControlTemplate" TargetType =" {x:Type ScrollViewer}" >
157
163
<Grid x : Name =" Grid" Background =" {TemplateBinding Background}" >
158
164
<Grid .ColumnDefinitions>
159
165
<ColumnDefinition Width =" *" />
160
166
<ColumnDefinition Width =" Auto" />
161
167
</Grid .ColumnDefinitions>
162
168
163
- <!-- content in the left of ScrollViewer, just default-->
164
- <ScrollContentPresenter x : Name =" PART_ScrollContentPresenter"
165
- CanContentScroll =" {TemplateBinding CanContentScroll}"
166
- CanHorizontallyScroll =" False"
167
- CanVerticallyScroll =" False"
168
- ContentTemplate =" {TemplateBinding ContentTemplate}"
169
- Content =" {TemplateBinding Content}"
170
- Grid.Column=" 0"
171
- Margin =" 0"
172
- Grid.Row=" 0" />
169
+ <!-- content in the left of ScrollViewer, just default -->
170
+ <ScrollContentPresenter
171
+ x : Name =" PART_ScrollContentPresenter"
172
+ Grid.Row=" 0"
173
+ Grid.Column=" 0"
174
+ Margin =" 0"
175
+ CanContentScroll =" {TemplateBinding CanContentScroll}"
176
+ CanHorizontallyScroll =" False"
177
+ CanVerticallyScroll =" False"
178
+ Content =" {TemplateBinding Content}"
179
+ ContentTemplate =" {TemplateBinding ContentTemplate}" />
173
180
174
- <!-- Scrollbar in thr rigth of ScrollViewer-->
175
- <ScrollBar x : Name =" PART_VerticalScrollBar"
176
- AutomationProperties.AutomationId=" VerticalScrollBar"
177
- Cursor =" Arrow"
178
- Grid.Column=" 0"
179
- HorizontalAlignment =" Right"
180
- Margin =" 0 0 0 0"
181
- Maximum =" {TemplateBinding ScrollableHeight}"
182
- Minimum =" 0"
183
- Grid.Row=" 0"
184
- Visibility =" {TemplateBinding ComputedVerticalScrollBarVisibility}"
185
- Value =" {Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"
186
- ViewportSize =" {TemplateBinding ViewportHeight}"
187
- Style =" {DynamicResource ScrollBarStyle}" />
181
+ <!-- Scrollbar in thr rigth of ScrollViewer -->
182
+ <ScrollBar
183
+ x : Name =" PART_VerticalScrollBar"
184
+ Grid.Row=" 0"
185
+ Grid.Column=" 0"
186
+ Margin =" 0,0,0,0"
187
+ HorizontalAlignment =" Right"
188
+ AutomationProperties.AutomationId=" VerticalScrollBar"
189
+ Cursor =" Arrow"
190
+ Maximum =" {TemplateBinding ScrollableHeight}"
191
+ Minimum =" 0"
192
+ Style =" {DynamicResource ScrollBarStyle}"
193
+ ViewportSize =" {TemplateBinding ViewportHeight}"
194
+ Visibility =" {TemplateBinding ComputedVerticalScrollBarVisibility}"
195
+ Value =" {Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" />
188
196
</Grid >
189
197
</ControlTemplate >
190
198
191
- <!-- button style in the middle of the scrollbar -->
199
+ <!-- button style in the middle of the scrollbar -->
192
200
<Style x : Key =" BaseThumbStyle" TargetType =" {x:Type Thumb}" >
193
- <Setter Property =" SnapsToDevicePixels" Value =" True" />
194
- <Setter Property =" OverridesDefaultStyle" Value =" true" />
195
- <Setter Property =" IsTabStop" Value =" false" />
196
- <Setter Property =" Focusable" Value =" false" />
201
+ <Setter Property =" SnapsToDevicePixels" Value =" True" />
202
+ <Setter Property =" OverridesDefaultStyle" Value =" true" />
203
+ <Setter Property =" IsTabStop" Value =" false" />
204
+ <Setter Property =" Focusable" Value =" false" />
197
205
<Setter Property =" Template" >
198
206
<Setter .Value>
199
207
<ControlTemplate TargetType =" {x:Type Thumb}" >
200
- <Border CornerRadius =" 2" DockPanel.Dock=" Right" Background =" #898989" BorderBrush =" Transparent" />
208
+ <Border
209
+ Background =" #898989"
210
+ BorderBrush =" Transparent"
211
+ CornerRadius =" 2"
212
+ DockPanel.Dock=" Right" />
201
213
</ControlTemplate >
202
214
</Setter .Value>
203
215
</Setter >
207
219
<Setter Property =" Stylus.IsPressAndHoldEnabled" Value =" false" />
208
220
<Setter Property =" Stylus.IsFlicksEnabled" Value =" false" />
209
221
<Setter Property =" Background" Value =" Black" />
210
- <!-- must set min width -->
211
- <Setter Property =" MinWidth" Value =" 0" />
212
- <Setter Property =" Width" Value =" 5" />
222
+ <!-- must set min width -->
223
+ <Setter Property =" MinWidth" Value =" 0" />
224
+ <Setter Property =" Width" Value =" 5" />
213
225
<Setter Property =" Template" >
214
226
<Setter .Value>
215
227
<ControlTemplate TargetType =" {x:Type ScrollBar}" >
216
228
<DockPanel >
217
- <Track x : Name =" PART_Track" IsDirectionReversed =" true" DockPanel.Dock=" Right" >
229
+ <Track
230
+ x : Name =" PART_Track"
231
+ DockPanel.Dock=" Right"
232
+ IsDirectionReversed =" true" >
218
233
<Track .Thumb>
219
- <Thumb Style =" {DynamicResource ThumbStyle}" />
234
+ <Thumb Style =" {DynamicResource ThumbStyle}" />
220
235
</Track .Thumb>
221
236
</Track >
222
237
</DockPanel >
223
238
</ControlTemplate >
224
239
</Setter .Value>
225
240
</Setter >
226
241
</Style >
227
- <Style x : Key =" BaseSeparatorStyle" TargetType =" Rectangle" >
228
- </Style >
242
+ <Style x : Key =" BaseSeparatorStyle" TargetType =" Rectangle" />
229
243
<Style x : Key =" HighlightStyle" >
230
244
<Setter Property =" Inline.FontWeight" Value =" Bold" />
231
245
</Style >
249
263
<Style x : Key =" BaseSearchIconPosition" TargetType =" {x:Type Canvas}" >
250
264
<Setter Property =" Width" Value =" 32" />
251
265
<Setter Property =" Height" Value =" 32" />
252
- <Setter Property =" Margin" Value =" 0 2 18 0" />
266
+ <Setter Property =" Margin" Value =" 0,2,18, 0" />
253
267
<Setter Property =" Background" Value =" Transparent" />
254
268
<Setter Property =" HorizontalAlignment" Value =" Right" />
255
269
</Style >
256
-
257
- <!-- for classic themes-->
270
+
271
+ <!-- for classic themes -->
258
272
<Style x : Key =" SearchIconStyle" TargetType =" {x:Type Path}" >
259
273
<Setter Property =" Fill" Value =" #555555" />
260
274
<Setter Property =" Width" Value =" 32" />
263
277
<Style x : Key =" SearchIconPosition" TargetType =" {x:Type Canvas}" >
264
278
<Setter Property =" Width" Value =" 32" />
265
279
<Setter Property =" Height" Value =" 32" />
266
- <Setter Property =" Margin" Value =" 0 2 18 0" />
280
+ <Setter Property =" Margin" Value =" 0,2,18, 0" />
267
281
<Setter Property =" Background" Value =" Transparent" />
268
282
<Setter Property =" HorizontalAlignment" Value =" Right" />
269
283
</Style >
270
- <Style x : Key =" ItemHotkeyStyle" TargetType =" {x:Type TextBlock}" BasedOn =" {StaticResource BaseItemHotkeyStyle}" >
284
+ <Style
285
+ x : Key =" ItemHotkeyStyle"
286
+ BasedOn =" {StaticResource BaseItemHotkeyStyle}"
287
+ TargetType =" {x:Type TextBlock}" >
271
288
<Setter Property =" FontSize" Value =" 15" />
272
289
<Setter Property =" Foreground" Value =" #8f8f8f" />
273
290
<Setter Property =" Opacity" Value =" 0.5" />
274
291
</Style >
275
- <Style x : Key =" ItemHotkeySelectedStyle" TargetType =" {x:Type TextBlock}" BasedOn =" {StaticResource BaseItemHotkeySelecetedStyle}" >
292
+ <Style
293
+ x : Key =" ItemHotkeySelectedStyle"
294
+ BasedOn =" {StaticResource BaseItemHotkeySelecetedStyle}"
295
+ TargetType =" {x:Type TextBlock}" >
276
296
<Setter Property =" FontSize" Value =" 15" />
277
297
<Setter Property =" Foreground" Value =" #8f8f8f" />
278
298
<Setter Property =" Opacity" Value =" 0.5" />
279
299
</Style >
280
300
</ResourceDictionary >
281
-
0 commit comments