Skip to content

Commit 4ed9137

Browse files
committed
- Move some value to base.xaml
- Adjust themes
1 parent c828c33 commit 4ed9137

File tree

5 files changed

+58
-31
lines changed

5 files changed

+58
-31
lines changed

Flow.Launcher/ResultListBox.xaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,6 @@
174174
<TextBlock
175175
x:Name="Title"
176176
Grid.Row="0"
177-
Margin="0 0 0 1"
178-
VerticalAlignment="Bottom"
179177
DockPanel.Dock="Left"
180178
FontSize="{Binding Settings.ResultItemFontSize, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
181179
IsEnabled="False"
@@ -194,8 +192,6 @@
194192
<TextBlock
195193
x:Name="SubTitle"
196194
Grid.Row="1"
197-
Margin="0 1 0 0"
198-
VerticalAlignment="Top"
199195
FontSize="{Binding Settings.ResultSubItemFontSize, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
200196
IsEnabled="False"
201197
Style="{DynamicResource ItemSubTitleStyle}"

Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@
378378
</Border>
379379
</Border>
380380
<Border
381-
Margin="0 0 0 20"
381+
Margin="0 0 0 30"
382382
Padding="8 4 8 4"
383383
HorizontalAlignment="Center"
384384
Background="#89000000"

Flow.Launcher/Themes/Base.xaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,13 @@
180180
<Style x:Key="BaseItemTitleStyle" TargetType="{x:Type TextBlock}">
181181
<Setter Property="Foreground" Value="#FFFFF8" />
182182
<Setter Property="FontSize" Value="16" />
183+
<Setter Property="Margin" Value="0 0 0 1" />
184+
<Setter Property="VerticalAlignment" Value="Bottom" />
183185
</Style>
184186
<Style x:Key="BaseItemSubTitleStyle" TargetType="{x:Type TextBlock}">
185187
<Setter Property="Foreground" Value="#D9D9D4" />
188+
<Setter Property="Margin" Value="0 1 0 0" />
189+
<Setter Property="VerticalAlignment" Value="Top" />
186190
<Setter Property="FontSize" Value="13" />
187191
<Style.Triggers>
188192
<DataTrigger Binding="{Binding ElementName=SubTitle, UpdateSourceTrigger=PropertyChanged, Path=Text.Length}" Value="0">
@@ -215,10 +219,14 @@
215219
<Style x:Key="BaseItemTitleSelectedStyle" TargetType="{x:Type TextBlock}">
216220
<Setter Property="Foreground" Value="#FFFFF8" />
217221
<Setter Property="FontSize" Value="16" />
222+
<Setter Property="Margin" Value="0 0 0 1" />
223+
<Setter Property="VerticalAlignment" Value="Bottom" />
218224
</Style>
219225
<Style x:Key="BaseItemSubTitleSelectedStyle" TargetType="{x:Type TextBlock}">
220226
<Setter Property="Foreground" Value="#D9D9D4" />
221227
<Setter Property="FontSize" Value="13" />
228+
<Setter Property="Margin" Value="0 1 0 0" />
229+
<Setter Property="VerticalAlignment" Value="Top" />
222230
<Style.Triggers>
223231
<DataTrigger Binding="{Binding ElementName=SubTitle, UpdateSourceTrigger=PropertyChanged, Path=Text.Length}" Value="0">
224232
<Setter Property="Height" Value="0" />

Flow.Launcher/Themes/SlimLight.xaml

Lines changed: 43 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@
1111
<Setter Property="Width" Value="46" />
1212
</Style>
1313
<Style x:Key="ImageIconStyle" TargetType="{x:Type Image}">
14-
<Setter Property="Height" Value="24" />
15-
<Setter Property="Width" Value="24" />
14+
<Setter Property="Height" Value="20" />
15+
<Setter Property="Width" Value="20" />
1616
</Style>
1717
<Style
1818
x:Key="ItemGlyph"
1919
BasedOn="{StaticResource BaseGlyphStyle}"
2020
TargetType="{x:Type TextBlock}">
21-
<Setter Property="FontSize" Value="24" />
22-
<Setter Property="Width" Value="24" />
23-
<Setter Property="Height" Value="24" />
21+
<Setter Property="FontSize" Value="20" />
22+
<Setter Property="Width" Value="20" />
23+
<Setter Property="Height" Value="20" />
2424
<Setter Property="Foreground" Value="#100f0f" />
2525
</Style>
2626
<Style
2727
x:Key="QueryBoxStyle"
2828
BasedOn="{StaticResource BaseQueryBoxStyle}"
2929
TargetType="{x:Type TextBox}">
30-
<Setter Property="Padding" Value="0,0,42,0" />
30+
<Setter Property="Padding" Value="0 0 42 0" />
3131
<Setter Property="Foreground" Value="#282728" />
3232
<Setter Property="FontSize" Value="16" />
3333
<Setter Property="Height" Value="24" />
@@ -37,7 +37,7 @@
3737
x:Key="QuerySuggestionBoxStyle"
3838
BasedOn="{StaticResource BaseQuerySuggestionBoxStyle}"
3939
TargetType="{x:Type TextBox}">
40-
<Setter Property="Padding" Value="0,0,42,0" />
40+
<Setter Property="Padding" Value="0 0 42 0" />
4141
<Setter Property="Background" Value="Transparent" />
4242
<Setter Property="Height" Value="24" />
4343
<Setter Property="FontSize" Value="16" />
@@ -50,7 +50,7 @@
5050
TargetType="{x:Type Border}">
5151
<Setter Property="BorderThickness" Value="1" />
5252
<Setter Property="BorderBrush" Value="#bcbabd" />
53-
<Setter Property="Background" Value="#edebee" />
53+
<Setter Property="Background" Value="#FAFAFA" />
5454
<Setter Property="CornerRadius" Value="6" />
5555
<Setter Property="UseLayoutRounding" Value="True" />
5656
</Style>
@@ -68,13 +68,15 @@
6868
x:Key="ItemTitleStyle"
6969
BasedOn="{StaticResource BaseItemTitleStyle}"
7070
TargetType="{x:Type TextBlock}">
71+
<Setter Property="Margin" Value="0" />
7172
<Setter Property="FontSize" Value="14" />
7273
<Setter Property="Foreground" Value="#100f0f" />
7374
</Style>
7475
<Style
7576
x:Key="ItemSubTitleStyle"
7677
BasedOn="{StaticResource BaseItemSubTitleStyle}"
7778
TargetType="{x:Type TextBlock}">
79+
<Setter Property="Margin" Value="0" />
7880
<Setter Property="FontSize" Value="10" />
7981
<Setter Property="Foreground" Value="#8f8d90" />
8082
</Style>
@@ -84,21 +86,23 @@
8486
TargetType="{x:Type Rectangle}">
8587
<Setter Property="Fill" Value="#dedcde" />
8688
<Setter Property="Height" Value="1" />
87-
<Setter Property="Margin" Value="0,0,0,4" />
89+
<Setter Property="Margin" Value="0 0 0 4" />
8890
</Style>
8991
<Style x:Key="HighlightStyle" />
9092
<Style
9193
x:Key="ItemTitleSelectedStyle"
9294
BasedOn="{StaticResource BaseItemTitleSelectedStyle}"
9395
TargetType="{x:Type TextBlock}">
9496
<Setter Property="FontSize" Value="14" />
97+
<Setter Property="Margin" Value="0" />
9598
<Setter Property="Foreground" Value="#100f0f" />
9699
</Style>
97100
<Style
98101
x:Key="ItemSubTitleSelectedStyle"
99102
BasedOn="{StaticResource BaseItemSubTitleSelectedStyle}"
100103
TargetType="{x:Type TextBlock}">
101104
<Setter Property="FontSize" Value="10" />
105+
<Setter Property="Margin" Value="0" />
102106
<Setter Property="Foreground" Value="#8f8d90" />
103107
</Style>
104108
<SolidColorBrush x:Key="ItemSelectedBackgroundColor">#d6d4d7</SolidColorBrush>
@@ -113,7 +117,7 @@
113117
<ControlTemplate TargetType="{x:Type Thumb}">
114118
<Border
115119
Width="4"
116-
Margin="0,0,2,0"
120+
Margin="0 0 2 0"
117121
Background="#878687"
118122
BorderBrush="Transparent"
119123
BorderThickness="0"
@@ -136,33 +140,49 @@
136140
<Setter Property="Height" Value="24" />
137141
</Style>
138142
<Style x:Key="SearchIconPosition" TargetType="{x:Type Canvas}">
139-
<Setter Property="Background" Value="#edebee" />
140143
<Setter Property="Width" Value="24" />
141144
<Setter Property="Height" Value="24" />
142-
<Setter Property="Margin" Value="0,0,8,0" />
145+
<Setter Property="Margin" Value="0 0 8 0" />
143146
<Setter Property="HorizontalAlignment" Value="Right" />
144147
</Style>
145148
<Style x:Key="PluginActivationIcon" TargetType="{x:Type Image}">
146149
<Setter Property="Width" Value="24" />
147150
<Setter Property="Height" Value="24" />
148-
<Setter Property="Margin" Value="0,0,8,0" />
151+
<Setter Property="Margin" Value="0 0 8 0" />
149152
<Setter Property="HorizontalAlignment" Value="Right" />
150153
<Setter Property="VerticalAlignment" Value="Center" />
151154
</Style>
152155

153156
<Style x:Key="ItemHotkeyStyle" TargetType="{x:Type TextBlock}">
154-
<Setter Property="FontSize" Value="12" />
157+
<Setter Property="FontSize" Value="9" />
155158
<Setter Property="Foreground" Value="#8f8d90" />
156159
</Style>
157160
<Style x:Key="ItemHotkeySelectedStyle" TargetType="{x:Type TextBlock}">
158-
<Setter Property="FontSize" Value="12" />
161+
<Setter Property="FontSize" Value="9" />
159162
<Setter Property="Foreground" Value="#8f8d90" />
160163
</Style>
164+
<Style
165+
x:Key="ItemHotkeyBGStyle"
166+
BasedOn="{StaticResource BaseItemHotkeyBGStyle}"
167+
TargetType="{x:Type Border}">
168+
<Setter Property="Margin" Value="6 0 6 0" />
169+
<Setter Property="Padding" Value="4 2 4 2" />
170+
<Setter Property="CornerRadius" Value="2" />
171+
</Style>
172+
<Style
173+
x:Key="ItemHotkeyBGSelectedStyle"
174+
BasedOn="{StaticResource BaseItemHotkeyBGSelectedStyle}"
175+
TargetType="{x:Type Border}">
176+
<Setter Property="Margin" Value="6 0 6 0" />
177+
<Setter Property="Padding" Value="4 2 4 2" />
178+
<Setter Property="CornerRadius" Value="2" />
179+
</Style>
180+
161181
<Style x:Key="ItemGlyphSelectedStyle" TargetType="{x:Type TextBlock}">
162182
<Setter Property="Foreground" Value="#100f0f" />
163-
<Setter Property="Width" Value="24" />
164-
<Setter Property="Height" Value="24" />
165-
<Setter Property="FontSize" Value="24" />
183+
<Setter Property="Width" Value="20" />
184+
<Setter Property="Height" Value="20" />
185+
<Setter Property="FontSize" Value="20" />
166186
</Style>
167187
<CornerRadius x:Key="ItemRadius">6</CornerRadius>
168188
<Thickness x:Key="ItemMargin">4 0 4 0</Thickness>
@@ -172,19 +192,19 @@
172192
BasedOn="{StaticResource ClockPanel}"
173193
TargetType="{x:Type StackPanel}">
174194
<Setter Property="Orientation" Value="Horizontal" />
175-
<Setter Property="Margin" Value="0,0,42,0" />
195+
<Setter Property="Margin" Value="0 0 42 0" />
176196
</Style>
177197
<Style
178198
x:Key="ClockBox"
179199
BasedOn="{StaticResource BaseClockBox}"
180200
TargetType="{x:Type TextBlock}">
181201
<Setter Property="FontSize" Value="14" />
182202
<Setter Property="Foreground" Value="#bebebe" />
183-
<Setter Property="Margin" Value="0,0,10,0" />
203+
<Setter Property="Margin" Value="0 0 10 0" />
184204
<Style.Triggers>
185205
<DataTrigger Binding="{Binding ElementName=DateBox, Path=Visibility}" Value="Visible">
186206
<Setter Property="FontSize" Value="14" />
187-
<Setter Property="Margin" Value="0,0,10,3" />
207+
<Setter Property="Margin" Value="0 0 10 3" />
188208
</DataTrigger>
189209
</Style.Triggers>
190210

@@ -198,15 +218,15 @@
198218
<Style.Triggers>
199219
<DataTrigger Binding="{Binding ElementName=ClockBox, Path=Visibility}" Value="Visible">
200220
<Setter Property="FontSize" Value="14" />
201-
<Setter Property="Margin" Value="0,0,0,3" />
221+
<Setter Property="Margin" Value="0 0 0 3" />
202222
</DataTrigger>
203223
</Style.Triggers>
204224
</Style>
205225
<Style
206226
x:Key="PreviewBorderStyle"
207227
BasedOn="{StaticResource BasePreviewBorderStyle}"
208228
TargetType="{x:Type Border}">
209-
<Setter Property="Margin" Value="0,0,10,8" />
229+
<Setter Property="Margin" Value="0 0 10 8" />
210230
<Setter Property="BorderBrush" Value="#dedcde" />
211231
</Style>
212232
<Style

Flow.Launcher/Themes/Win11Light.xaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<Setter Property="Foreground" Value="{DynamicResource Color05B}" />
4949
<Setter Property="CaretBrush" Value="{DynamicResource Color05B}" />
5050
<Setter Property="SelectionBrush" Value="{StaticResource SystemAccentColorLight1Brush}" />
51-
<Setter Property="FontSize" Value="18" />
51+
<Setter Property="FontSize" Value="16" />
5252
<Setter Property="Height" Value="42" />
5353
</Style>
5454

@@ -59,7 +59,7 @@
5959
<Setter Property="Background" Value="Transparent" />
6060
<Setter Property="Padding" Value="0 0 50 0" />
6161
<Setter Property="Height" Value="42" />
62-
<Setter Property="FontSize" Value="18" />
62+
<Setter Property="FontSize" Value="16" />
6363
<Setter Property="Foreground" Value="{DynamicResource QuerySuggestionBoxForeground}" />
6464
</Style>
6565

@@ -79,7 +79,9 @@
7979
<Style
8080
x:Key="PendingLineStyle"
8181
BasedOn="{StaticResource BasePendingLineStyle}"
82-
TargetType="{x:Type Line}" />
82+
TargetType="{x:Type Line}">
83+
<Setter Property="Stroke" Value="{DynamicResource BasicSystemAccentColor}" />
84+
</Style>
8385

8486
<!-- Item Style -->
8587
<Style
@@ -188,6 +190,7 @@
188190
<CornerRadius x:Key="ItemRadius">5</CornerRadius>
189191
<Thickness x:Key="ItemMargin">10 0 10 0</Thickness>
190192
<Thickness x:Key="ResultMargin">0 10 0 10</Thickness>
193+
<system:Double x:Key="ResultItemHeight">58</system:Double>
191194
<Style
192195
x:Key="ClockPanel"
193196
BasedOn="{StaticResource ClockPanel}"

0 commit comments

Comments
 (0)