Skip to content

Commit 66e722b

Browse files
committed
- Change context icon to glyph in some plugin
- Add Glyph property in themes
1 parent 8aaeb85 commit 66e722b

23 files changed

+88
-28
lines changed

Flow.Launcher/ResultListBox.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
<Border BorderThickness="0" BorderBrush="Transparent" Margin="9 0 0 0">
5959
<Image x:Name="ImageIcon" Width="32" Height="32" HorizontalAlignment="Center" Source="{Binding Image}" Visibility="{Binding ShowIcon}" Margin="0 0 0 0" Stretch="UniformToFill"/>
6060
</Border>
61-
<Border BorderThickness="0" BorderBrush="Transparent" Margin="14 0 0 0">
62-
<TextBlock Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="{Binding Glyph.Glyph}" FontFamily="{Binding Glyph.FontFamily}" FontSize="24" Visibility="{Binding ShowGlyph}" Margin="12 0 0 0" Padding="0 0 12 0"/>
61+
<Border BorderThickness="0" BorderBrush="Transparent" Margin="9 0 0 0">
62+
<TextBlock Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Center" Text="{Binding Glyph.Glyph}" FontFamily="{Binding Glyph.FontFamily}" Visibility="{Binding ShowGlyph}" Style="{DynamicResource ItemGlyph}"/>
6363
</Border>
6464
<Grid Margin="6 0 10 0" Grid.Column="1" HorizontalAlignment="Stretch">
6565
<Grid.RowDefinitions>

Flow.Launcher/Themes/Base.xaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@
9494
<Setter Property="FontSize" Value="22" />
9595
<Setter Property="RenderOptions.ClearTypeHint" Value="Enabled"/>
9696
</Style>
97+
<Style x:Key="BaseGlyphStyle" TargetType="{x:Type TextBlock}">
98+
<Setter Property="Foreground" Value="#ffffff" />
99+
<Setter Property="VerticalAlignment" Value="Center" />
100+
<Setter Property="HorizontalAlignment" Value="Center" />
101+
<Setter Property="Width" Value="25" />
102+
<Setter Property="Height" Value="25" />
103+
<Setter Property="FontSize" Value="25"/>
104+
</Style>
97105
<Style x:Key="BaseItemTitleSelectedStyle" TargetType="{x:Type TextBlock}" >
98106
<Setter Property="Foreground" Value="#FFFFF8" />
99107
<Setter Property="FontSize" Value="16" />

Flow.Launcher/Themes/BlackAndWhite.xaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
<ResourceDictionary.MergedDictionaries>
44
<ResourceDictionary Source="Base.xaml" />
55
</ResourceDictionary.MergedDictionaries>
6+
<Style x:Key="ItemGlyph" BasedOn="{StaticResource BaseGlyphStyle}" TargetType="{x:Type TextBlock}">
7+
<Setter Property="Foreground" Value="#ffffff" />
8+
</Style>
69
<Style x:Key="QueryBoxStyle" BasedOn="{StaticResource BaseQueryBoxStyle}" TargetType="{x:Type TextBox}">
710
<Setter Property="Background" Value="#000000" />
811
<Setter Property="Foreground" Value="#ffffff" />

Flow.Launcher/Themes/BlurBlack Darker.xaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
<system:Boolean x:Key="ThemeBlurEnabled">True</system:Boolean>
99

10+
<Style x:Key="ItemGlyph" BasedOn="{StaticResource BaseGlyphStyle}" TargetType="{x:Type TextBlock}">
11+
<Setter Property="Foreground" Value="#ffffff" />
12+
</Style>
1013
<Style x:Key="QueryBoxStyle" BasedOn="{StaticResource BaseQueryBoxStyle}" TargetType="{x:Type TextBox}">
1114
<Setter Property="Foreground" Value="#FFFFFFFF" />
1215
<Setter Property="Background" Value="Transparent" />

Flow.Launcher/Themes/BlurBlack.xaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
</ResourceDictionary.MergedDictionaries>
77

88
<system:Boolean x:Key="ThemeBlurEnabled">True</system:Boolean>
9-
9+
<Style x:Key="ItemGlyph" BasedOn="{StaticResource BaseGlyphStyle}" TargetType="{x:Type TextBlock}">
10+
<Setter Property="Foreground" Value="#ffffff" />
11+
</Style>
1012
<Style x:Key="QueryBoxStyle" BasedOn="{StaticResource BaseQueryBoxStyle}" TargetType="{x:Type TextBox}">
1113
<Setter Property="Foreground" Value="#FFFFFFFF" />
1214
<Setter Property="Background" Value="Transparent" />

Flow.Launcher/Themes/BlurWhite.xaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
</ResourceDictionary.MergedDictionaries>
77

88
<system:Boolean x:Key="ThemeBlurEnabled">True</system:Boolean>
9-
9+
<Style x:Key="ItemGlyph" BasedOn="{StaticResource BaseGlyphStyle}" TargetType="{x:Type TextBlock}">
10+
<Setter Property="Foreground" Value="#FF000000" />
11+
</Style>
1012
<Style x:Key="QueryBoxStyle" BasedOn="{StaticResource BaseQueryBoxStyle}" TargetType="{x:Type TextBox}">
1113
<Setter Property="Foreground" Value="#FF000000" />
1214
<Setter Property="Background" Value="Transparent" />

Flow.Launcher/Themes/Darker.xaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
<ResourceDictionary.MergedDictionaries>
55
<ResourceDictionary Source="pack://application:,,,/Themes/Base.xaml" />
66
</ResourceDictionary.MergedDictionaries>
7-
7+
<Style x:Key="ItemGlyph" BasedOn="{StaticResource BaseGlyphStyle}" TargetType="{x:Type TextBlock}">
8+
<Setter Property="Foreground" Value="#ffffff" />
9+
</Style>
810
<Style x:Key="QueryBoxStyle" BasedOn="{StaticResource BaseQueryBoxStyle}" TargetType="{x:Type TextBox}">
911
<Setter Property="SelectionBrush" Value="#6e6e6e"/>
1012
<Setter Property="SelectionBrush" Value="#4D4D4D"/>

Flow.Launcher/Themes/Discord Dark.xaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
<ResourceDictionary.MergedDictionaries>
55
<ResourceDictionary Source="pack://application:,,,/Themes/Base.xaml" />
66
</ResourceDictionary.MergedDictionaries>
7-
7+
<Style x:Key="ItemGlyph" BasedOn="{StaticResource BaseGlyphStyle}" TargetType="{x:Type TextBlock}">
8+
<Setter Property="Foreground" Value="#ffffff" />
9+
</Style>
810
<Style x:Key="QueryBoxStyle" BasedOn="{StaticResource BaseQueryBoxStyle}" TargetType="{x:Type TextBox}">
911
<Setter Property="Foreground" Value="#dcddde" />
1012
<Setter Property="Background" Value="#36393f" />

Flow.Launcher/Themes/Gray.xaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
<Setter Property="Background" Value="LightGray" />
88
<Setter Property="Foreground" Value="#222222" />
99
</Style>
10-
10+
<Style x:Key="ItemGlyph" BasedOn="{StaticResource BaseGlyphStyle}" TargetType="{x:Type TextBlock}">
11+
<Setter Property="Foreground" Value="#000000" />
12+
</Style>
1113
<Style x:Key="QuerySuggestionBoxStyle" BasedOn="{StaticResource BaseQuerySuggestionBoxStyle}" TargetType="{x:Type TextBox}">
1214
<Setter Property="Background" Value="LightGray" />
1315
<Setter Property="Foreground" Value="#b8b8b8" />

Flow.Launcher/Themes/League.xaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99
<Setter Property="Width" Value="490" />
1010
<Setter Property="Height" Value="42" />
1111
</Style>
12-
13-
<Style x:Key="QuerySuggestionBoxStyle" BasedOn="{StaticResource BaseQuerySuggestionBoxStyle}" TargetType="{x:Type TextBox}">
12+
<Style x:Key="ItemGlyph" BasedOn="{StaticResource BaseGlyphStyle}" TargetType="{x:Type TextBlock}">
13+
<Setter Property="Foreground" Value="#b88f3a" />
14+
</Style>
15+
<Style x:Key="QuerySuggestionBoxStyle" BasedOn="{StaticResource BaseQuerySuggestionBoxStyle}" TargetType="{x:Type TextBox}">
1416
<Setter Property="Background" Value="#161614"/>
1517
<Setter Property="Foreground" Value="#a09b8c" />
1618
<Setter Property="Width" Value="490" />

0 commit comments

Comments
 (0)