Skip to content

Commit 57bc886

Browse files
committed
- Add hotkey size baseon in blur themes
- Add hotkey colors and selected style
1 parent 96ffd06 commit 57bc886

File tree

12 files changed

+108
-44
lines changed

12 files changed

+108
-44
lines changed

Flow.Launcher/Resources/Dark.xaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@
5858
<SolidColorBrush x:Key="BasicSeparatorColor" Color="#cecece" />
5959
<SolidColorBrush x:Key="BasicLineColor" Color="#cecece" />
6060

61+
<SolidColorBrush x:Key="NewHotkeyForeground" Color="#44FFFFFF" />
62+
<SolidColorBrush x:Key="BasicHotkeyBGColor" Color="#13FFFFFF" />
63+
6164
<SolidColorBrush x:Key="ThemeHoverButton" Color="#3c3c3c" />
6265
<SolidColorBrush x:Key="PopuBGColor" Color="#202020" />
6366
<SolidColorBrush x:Key="PopupBGColor" Color="#202020" />
@@ -115,7 +118,7 @@
115118
<SolidColorBrush x:Key="InfoBarWarningIcon" Color="#FCE100" />
116119
<SolidColorBrush x:Key="InfoBarWarningBG" Color="#433519" />
117120
<SolidColorBrush x:Key="InfoBarBD" Color="#19000000" />
118-
121+
119122
<SolidColorBrush x:Key="MouseOverWindowCloseButtonForegroundBrush" Color="#ffffff" />
120123

121124
<SolidColorBrush x:Key="ButtonOutBorder" Color="Transparent" />

Flow.Launcher/Resources/Light.xaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@
5151
<SolidColorBrush x:Key="PluginInfoColor" Color="#8f8f8f" />
5252
<SolidColorBrush x:Key="BasicLabelColor" Color="#1b1b1b" />
5353

54+
<SolidColorBrush x:Key="NewHotkeyForeground" Color="#5E000000" />
55+
<SolidColorBrush x:Key="BasicHotkeyBGColor" Color="#0A000000" />
56+
5457
<SolidColorBrush x:Key="ThemeHoverButton" Color="#f6f6f6" />
5558
<!-- Typo -->
5659
<SolidColorBrush x:Key="PopuBGColor" Color="#ffffff" />

Flow.Launcher/ResultListBox.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@
215215
<Setter TargetName="Title" Property="Style" Value="{DynamicResource ItemTitleSelectedStyle}" />
216216
<Setter TargetName="SubTitle" Property="Style" Value="{DynamicResource ItemSubTitleSelectedStyle}" />
217217
<Setter TargetName="Hotkey" Property="Style" Value="{DynamicResource ItemHotkeySelectedStyle}" />
218+
<Setter TargetName="HotkeyBG" Property="Style" Value="{DynamicResource ItemHotkeyBGSelectedStyle}" />
218219
<Setter TargetName="GlyphIcon" Property="Style" Value="{DynamicResource ItemGlyphSelectedStyle}" />
219220
</DataTrigger>
220221
</DataTemplate.Triggers>

Flow.Launcher/Themes/Base.xaml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -351,23 +351,41 @@
351351
<Setter Property="Inline.FontWeight" Value="Bold" />
352352
</Style>
353353
<Style x:Key="BaseItemHotkeyStyle" TargetType="{x:Type TextBlock}">
354-
<Setter Property="FontSize" Value="10" />
354+
<Setter Property="FontSize" Value="12" />
355355
<Setter Property="Foreground" Value="#8f8f8f" />
356356
</Style>
357357
<Style x:Key="BaseItemHotkeySelectedStyle" TargetType="{x:Type TextBlock}">
358-
<Setter Property="FontSize" Value="10" />
358+
<Setter Property="FontSize" Value="12" />
359359
<Setter Property="Foreground" Value="#8f8f8f" />
360360
</Style>
361-
<Style x:Key="ItemHotkeyBGStyle" TargetType="{x:Type Border}">
361+
<Style x:Key="BaseItemHotkeyBGStyle" TargetType="{x:Type Border}">
362362
<Setter Property="Margin" Value="12 0 12 0" />
363363
<Setter Property="Padding" Value="6 4 6 4" />
364364
<Setter Property="Background" Value="#138A8A8A" />
365365
<Setter Property="CornerRadius" Value="4" />
366366
</Style>
367+
<Style x:Key="BaseItemHotkeyBGSelectedStyle" TargetType="{x:Type Border}">
368+
<Setter Property="Margin" Value="12 0 12 0" />
369+
<Setter Property="Padding" Value="6 4 6 4" />
370+
<Setter Property="CornerRadius" Value="4" />
371+
<Setter Property="Background" Value="#138A8A8A" />
372+
</Style>
373+
<Style
374+
x:Key="ItemHotkeyBGStyle"
375+
BasedOn="{StaticResource BaseItemHotkeyBGStyle}"
376+
TargetType="{x:Type Border}">
377+
<Setter Property="Margin" Value="12 0 12 0" />
378+
<Setter Property="Padding" Value="6 4 6 4" />
379+
<Setter Property="CornerRadius" Value="4" />
380+
</Style>
381+
<Style
382+
x:Key="ItemHotkeyBGSelectedStyle"
383+
BasedOn="{StaticResource BaseItemHotkeyBGSelectedStyle}"
384+
TargetType="{x:Type Border}" />
367385

368386
<!-- DO NOT USE THIS KEY. this key for themes with wrong typo. This key should be removed. Right key is BaseItemHotkeySelectedStyle. -->
369387
<Style x:Key="BaseItemHotkeySelecetedStyle" TargetType="{x:Type TextBlock}">
370-
<Setter Property="FontSize" Value="15" />
388+
<Setter Property="FontSize" Value="12" />
371389
<Setter Property="Foreground" Value="#8f8f8f" />
372390
</Style>
373391

@@ -494,15 +512,13 @@
494512
x:Key="ItemHotkeyStyle"
495513
BasedOn="{StaticResource BaseItemHotkeyStyle}"
496514
TargetType="{x:Type TextBlock}">
497-
<Setter Property="FontSize" Value="15" />
498515
<Setter Property="Foreground" Value="#8f8f8f" />
499516
<Setter Property="Opacity" Value="0.5" />
500517
</Style>
501518
<Style
502519
x:Key="ItemHotkeySelectedStyle"
503520
BasedOn="{StaticResource BaseItemHotkeySelectedStyle}"
504521
TargetType="{x:Type TextBlock}">
505-
<Setter Property="FontSize" Value="15" />
506522
<Setter Property="Foreground" Value="#8f8f8f" />
507523
<Setter Property="Opacity" Value="0.5" />
508524
</Style>

Flow.Launcher/Themes/BlurBlack Darker.xaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,17 @@
145145
<Setter Property="Height" Value="30" />
146146
<Setter Property="Opacity" Value="0.2" />
147147
</Style>
148-
<Style x:Key="ItemHotkeyStyle" TargetType="{x:Type TextBlock}">
149-
<Setter Property="FontSize" Value="14" />
148+
<Style
149+
x:Key="ItemHotkeyStyle"
150+
BasedOn="{StaticResource BaseItemHotkeyStyle}"
151+
TargetType="{x:Type TextBlock}">
150152
<Setter Property="Foreground" Value="#ffffff" />
151153
<Setter Property="Opacity" Value="0.2" />
152154
</Style>
153-
<Style x:Key="ItemHotkeySelectedStyle" TargetType="{x:Type TextBlock}">
154-
<Setter Property="FontSize" Value="14" />
155+
<Style
156+
x:Key="ItemHotkeySelectedStyle"
157+
BasedOn="{StaticResource BaseItemHotkeySelectedStyle}"
158+
TargetType="{x:Type TextBlock}">
155159
<Setter Property="Foreground" Value="#ffffff" />
156160
<Setter Property="Opacity" Value="0.2" />
157161
</Style>

Flow.Launcher/Themes/BlurBlack.xaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,17 @@
142142
<Setter Property="Height" Value="30" />
143143
<Setter Property="Opacity" Value="0.5" />
144144
</Style>
145-
<Style x:Key="ItemHotkeyStyle" TargetType="{x:Type TextBlock}">
146-
<Setter Property="FontSize" Value="14" />
145+
<Style
146+
x:Key="ItemHotkeyStyle"
147+
BasedOn="{StaticResource BaseItemHotkeyStyle}"
148+
TargetType="{x:Type TextBlock}">
147149
<Setter Property="Foreground" Value="#ffffff" />
148150
<Setter Property="Opacity" Value="0.5" />
149151
</Style>
150-
<Style x:Key="ItemHotkeySelectedStyle" TargetType="{x:Type TextBlock}">
151-
<Setter Property="FontSize" Value="14" />
152+
<Style
153+
x:Key="ItemHotkeySelectedStyle"
154+
BasedOn="{StaticResource BaseItemHotkeySelectedStyle}"
155+
TargetType="{x:Type TextBlock}">
152156
<Setter Property="Foreground" Value="#ffffff" />
153157
<Setter Property="Opacity" Value="0.5" />
154158
</Style>

Flow.Launcher/Themes/BlurWhite.xaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,17 @@
148148
<Setter Property="Height" Value="30" />
149149
<Setter Property="Opacity" Value="0.2" />
150150
</Style>
151-
<Style x:Key="ItemHotkeyStyle" TargetType="{x:Type TextBlock}">
152-
<Setter Property="FontSize" Value="14" />
151+
<Style
152+
x:Key="ItemHotkeyStyle"
153+
BasedOn="{StaticResource BaseItemHotkeyStyle}"
154+
TargetType="{x:Type TextBlock}">
153155
<Setter Property="Foreground" Value="#000000" />
154156
<Setter Property="Opacity" Value="0.2" />
155157
</Style>
156-
<Style x:Key="ItemHotkeySelectedStyle" TargetType="{x:Type TextBlock}">
157-
<Setter Property="FontSize" Value="14" />
158+
<Style
159+
x:Key="ItemHotkeySelectedStyle"
160+
BasedOn="{StaticResource BaseItemHotkeySelectedStyle}"
161+
TargetType="{x:Type TextBlock}">
158162
<Setter Property="Foreground" Value="#000000" />
159163
<Setter Property="Opacity" Value="0.2" />
160164
</Style>

Flow.Launcher/Themes/Discord Dark.xaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,17 @@
9999
<Setter Property="Cursor" Value="Arrow" />
100100
</Style>
101101
<Style x:Key="HighlightStyle" />
102-
<Style x:Key="ItemHotkeyStyle" TargetType="{x:Type TextBlock}">
103-
<Setter Property="FontSize" Value="15" />
102+
<Style
103+
x:Key="ItemHotkeyStyle"
104+
BasedOn="{StaticResource BaseItemHotkeyStyle}"
105+
TargetType="{x:Type TextBlock}">
104106
<Setter Property="Foreground" Value="#72767d" />
105107
<Setter Property="Opacity" Value="0.8" />
106108
</Style>
107-
<Style x:Key="ItemHotkeySelectedStyle" TargetType="{x:Type TextBlock}">
108-
<Setter Property="FontSize" Value="15" />
109+
<Style
110+
x:Key="ItemHotkeySelectedStyle"
111+
BasedOn="{StaticResource BaseItemHotkeySelectedStyle}"
112+
TargetType="{x:Type TextBlock}">
109113
<Setter Property="Foreground" Value="#72767d" />
110114
<Setter Property="Opacity" Value="0.8" />
111115
</Style>

Flow.Launcher/Themes/League.xaml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
TargetType="{x:Type TextBox}">
1212
<Setter Property="Foreground" Value="#b88f3a" />
1313
<Setter Property="CaretBrush" Value="#b88f3a" />
14-
<Setter Property="Padding" Value="0,0,66,0" />
14+
<Setter Property="Padding" Value="0 0 66 0" />
1515
<Setter Property="Height" Value="42" />
1616
</Style>
1717
<Style
@@ -26,7 +26,7 @@
2626
TargetType="{x:Type TextBox}">
2727
<Setter Property="Background" Value="#161614" />
2828
<Setter Property="Foreground" Value="#a09b8c" />
29-
<Setter Property="Padding" Value="0,0,66,0" />
29+
<Setter Property="Padding" Value="0 0 66 0" />
3030
<Setter Property="Height" Value="42" />
3131
</Style>
3232

@@ -57,7 +57,7 @@
5757
TargetType="{x:Type Rectangle}">
5858
<Setter Property="Fill" Value="#785a28" />
5959
<Setter Property="Height" Value="1" />
60-
<Setter Property="Margin" Value="0,0,0,0" />
60+
<Setter Property="Margin" Value="0 0 0 0" />
6161
</Style>
6262
<Style
6363
x:Key="ItemTitleStyle"
@@ -111,12 +111,16 @@
111111
<Style x:Key="HighlightStyle">
112112
<Setter Property="Inline.FontWeight" Value="Bold" />
113113
</Style>
114-
<Style x:Key="ItemHotkeyStyle" TargetType="{x:Type TextBlock}">
115-
<Setter Property="FontSize" Value="15" />
114+
<Style
115+
x:Key="ItemHotkeyStyle"
116+
BasedOn="{StaticResource BaseItemHotkeyStyle}"
117+
TargetType="{x:Type TextBlock}">
116118
<Setter Property="Foreground" Value="#5b5a56" />
117119
</Style>
118-
<Style x:Key="ItemHotkeySelectedStyle" TargetType="{x:Type TextBlock}">
119-
<Setter Property="FontSize" Value="15" />
120+
<Style
121+
x:Key="ItemHotkeySelectedStyle"
122+
BasedOn="{StaticResource BaseItemHotkeySelectedStyle}"
123+
TargetType="{x:Type TextBlock}">
120124
<Setter Property="Foreground" Value="#5b5a56" />
121125
</Style>
122126
<Geometry x:Key="SearchIconImg">F1 M12000,12000z M0,0z M10354,10962C10326,10951 10279,10927 10249,10907 10216,10886 9476,10153 8370,9046 7366,8042 6541,7220 6536,7220 6532,7220 6498,7242 6461,7268 6213,7447 5883,7619 5592,7721 5194,7860 4802,7919 4360,7906 3612,7886 2953,7647 2340,7174 2131,7013 1832,6699 1664,6465 1394,6088 1188,5618 1097,5170 1044,4909 1030,4764 1030,4470 1030,4130 1056,3914 1135,3609 1263,3110 1511,2633 1850,2235 1936,2134 2162,1911 2260,1829 2781,1395 3422,1120 4090,1045 4271,1025 4667,1025 4848,1045 5505,1120 6100,1368 6630,1789 6774,1903 7081,2215 7186,2355 7362,2588 7467,2759 7579,2990 7802,3455 7911,3937 7911,4460 7911,4854 7861,5165 7737,5542 7684,5702 7675,5724 7602,5885 7517,6071 7390,6292 7270,6460 7242,6499 7220,6533 7220,6538 7220,6542 8046,7371 9055,8380 10441,9766 10898,10229 10924,10274 10945,10308 10966,10364 10976,10408 10990,10472 10991,10493 10980,10554 10952,10717 10840,10865 10690,10937 10621,10971 10607,10974 10510,10977 10425,10980 10395,10977 10354,10962z M4685,7050C5214,7001 5694,6809 6100,6484 6209,6396 6396,6209 6484,6100 7151,5267 7246,4110 6721,3190 6369,2571 5798,2137 5100,1956 4706,1855 4222,1855 3830,1957 3448,2056 3140,2210 2838,2453 2337,2855 2010,3427 1908,4080 1877,4274 1877,4656 1908,4850 1948,5105 2028,5370 2133,5590 2459,6272 3077,6782 3810,6973 3967,7014 4085,7034 4290,7053 4371,7061 4583,7059 4685,7050z</Geometry>
@@ -141,7 +145,7 @@
141145
x:Key="PreviewBorderStyle"
142146
BasedOn="{StaticResource BasePreviewBorderStyle}"
143147
TargetType="{x:Type Border}">
144-
<Setter Property="Margin" Value="0,0,10,0" />
148+
<Setter Property="Margin" Value="0 0 10 0" />
145149
<Setter Property="BorderBrush" Value="#785a28" />
146150
</Style>
147151
<Style

Flow.Launcher/Themes/Nord Darker.xaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
TargetType="{x:Type Rectangle}">
4141
<Setter Property="Fill" Value="#4c566a" />
4242
<Setter Property="Height" Value="1" />
43-
<Setter Property="Margin" Value="12,0,12,8" />
43+
<Setter Property="Margin" Value="12 0 12 8" />
4444
</Style>
4545
<Style
4646
x:Key="WindowStyle"
@@ -116,12 +116,16 @@
116116
<Setter Property="Width" Value="32" />
117117
<Setter Property="Height" Value="32" />
118118
</Style>
119-
<Style x:Key="ItemHotkeyStyle" TargetType="{x:Type TextBlock}">
120-
<Setter Property="FontSize" Value="15" />
119+
<Style
120+
x:Key="ItemHotkeyStyle"
121+
BasedOn="{StaticResource BaseItemHotkeyStyle}"
122+
TargetType="{x:Type TextBlock}">
121123
<Setter Property="Foreground" Value="#8391AB" />
122124
</Style>
123-
<Style x:Key="ItemHotkeySelectedStyle" TargetType="{x:Type TextBlock}">
124-
<Setter Property="FontSize" Value="15" />
125+
<Style
126+
x:Key="ItemHotkeySelectedStyle"
127+
BasedOn="{StaticResource BaseItemHotkeySelectedStyle}"
128+
TargetType="{x:Type TextBlock}">
125129
<Setter Property="Foreground" Value="#8391AB" />
126130
</Style>
127131
<Style

0 commit comments

Comments
 (0)