Skip to content

Commit 723852b

Browse files
committed
Adjust Win11Light Theme
1 parent 523d8fe commit 723852b

File tree

1 file changed

+105
-41
lines changed

1 file changed

+105
-41
lines changed

Flow.Launcher/Themes/Win11Light.xaml

Lines changed: 105 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,109 @@
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">
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">
45
<ResourceDictionary.MergedDictionaries>
56
<ResourceDictionary Source="pack://application:,,,/Themes/Base.xaml" />
67
</ResourceDictionary.MergedDictionaries>
7-
<Style x:Key="ItemGlyph" BasedOn="{StaticResource BaseGlyphStyle}" TargetType="{x:Type TextBlock}">
8+
<Style
9+
x:Key="ItemGlyph"
10+
BasedOn="{StaticResource BaseGlyphStyle}"
11+
TargetType="{x:Type TextBlock}">
812
<Setter Property="Foreground" Value="#000000" />
913
</Style>
10-
<Style x:Key="QueryBoxStyle" BasedOn="{StaticResource BaseQueryBoxStyle}" TargetType="{x:Type TextBox}">
11-
<Setter Property="SelectionBrush" Value="#0a68d8"/>
14+
<Style
15+
x:Key="QueryBoxStyle"
16+
BasedOn="{StaticResource BaseQueryBoxStyle}"
17+
TargetType="{x:Type TextBox}">
18+
<Setter Property="SelectionBrush" Value="#0a68d8" />
1219
<Setter Property="FontSize" Value="24" />
13-
<Setter Property="Background" Value="#f3f3f3" />
20+
<Setter Property="Background" Value="Transparent" />
1421
<Setter Property="Foreground" Value="#000000" />
1522
<Setter Property="CaretBrush" Value="#000000" />
1623
<Setter Property="FontSize" Value="26" />
17-
<Setter Property="Padding" Value="0 4 66 0" />
24+
<Setter Property="Padding" Value="0,4,66,0" />
1825
<Setter Property="Height" Value="42" />
1926
</Style>
20-
<Style x:Key="QuerySuggestionBoxStyle" BasedOn="{StaticResource BaseQuerySuggestionBoxStyle}" TargetType="{x:Type TextBox}">
21-
<Setter Property="Background" Value="#f3f3f3" />
27+
<Style
28+
x:Key="QuerySuggestionBoxStyle"
29+
BasedOn="{StaticResource BaseQuerySuggestionBoxStyle}"
30+
TargetType="{x:Type TextBox}">
31+
<Setter Property="Background" Value="Transparent" />
2232
<Setter Property="Foreground" Value="#b5b5b5" />
2333
<Setter Property="FontSize" Value="26" />
24-
<Setter Property="Padding" Value="0 4 66 0" />
34+
<Setter Property="Padding" Value="0,4,66,0" />
2535
<Setter Property="Height" Value="42" />
2636
</Style>
27-
<Style x:Key="WindowBorderStyle" BasedOn="{StaticResource BaseWindowBorderStyle}" TargetType="{x:Type Border}">
37+
<Style
38+
x:Key="WindowBorderStyle"
39+
BasedOn="{StaticResource BaseWindowBorderStyle}"
40+
TargetType="{x:Type Border}">
2841
<Setter Property="BorderThickness" Value="1" />
2942
<Setter Property="BorderBrush" Value="#aaaaaa" />
3043
<Setter Property="CornerRadius" Value="5" />
31-
<Setter Property="Background" Value="#f3f3f3" />
44+
<Setter Property="Background">
45+
<Setter.Value>
46+
<LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
47+
<GradientStop Offset="0" Color="#f4f1f8" />
48+
<GradientStop Offset="0.8" Color="#f9f2e8" />
49+
<GradientStop Offset="1" Color="#f9f0f3" />
50+
</LinearGradientBrush>
51+
52+
</Setter.Value>
53+
</Setter>
3254
</Style>
33-
<Style x:Key="WindowStyle" BasedOn="{StaticResource BaseWindowStyle}" TargetType="{x:Type Window}">
55+
<Style
56+
x:Key="WindowStyle"
57+
BasedOn="{StaticResource BaseWindowStyle}"
58+
TargetType="{x:Type Window}">
3459
<Setter Property="Width" Value="576" />
35-
<Setter Property="RenderOptions.ClearTypeHint" Value="Enabled"/>
60+
<Setter Property="RenderOptions.ClearTypeHint" Value="Enabled" />
3661
</Style>
3762

38-
<Style x:Key="PendingLineStyle" BasedOn="{StaticResource BasePendingLineStyle}" TargetType="{x:Type Line}">
39-
</Style>
63+
<Style
64+
x:Key="PendingLineStyle"
65+
BasedOn="{StaticResource BasePendingLineStyle}"
66+
TargetType="{x:Type Line}" />
4067

41-
<!-- Item Style -->
42-
<Style x:Key="ItemTitleStyle" BasedOn="{StaticResource BaseItemTitleStyle}" TargetType="{x:Type TextBlock}">
68+
<!-- Item Style -->
69+
<Style
70+
x:Key="ItemTitleStyle"
71+
BasedOn="{StaticResource BaseItemTitleStyle}"
72+
TargetType="{x:Type TextBlock}">
4373
<Setter Property="Foreground" Value="#000000" />
4474
</Style>
45-
<Style x:Key="ItemSubTitleStyle" BasedOn="{StaticResource BaseItemSubTitleStyle}" TargetType="{x:Type TextBlock}" >
75+
<Style
76+
x:Key="ItemSubTitleStyle"
77+
BasedOn="{StaticResource BaseItemSubTitleStyle}"
78+
TargetType="{x:Type TextBlock}">
4679
<Setter Property="Foreground" Value="#818181" />
4780
<Setter Property="FontSize" Value="13" />
4881
</Style>
49-
<Style x:Key="ItemNumberStyle" BasedOn="{StaticResource BaseItemNumberStyle}" TargetType="{x:Type TextBlock}">
82+
<Style
83+
x:Key="ItemNumberStyle"
84+
BasedOn="{StaticResource BaseItemNumberStyle}"
85+
TargetType="{x:Type TextBlock}">
5086
<Setter Property="Foreground" Value="#A6A6A6" />
5187
</Style>
52-
<Style x:Key="ItemTitleSelectedStyle" BasedOn="{StaticResource BaseItemTitleSelectedStyle}" TargetType="{x:Type TextBlock}" >
88+
<Style
89+
x:Key="ItemTitleSelectedStyle"
90+
BasedOn="{StaticResource BaseItemTitleSelectedStyle}"
91+
TargetType="{x:Type TextBlock}">
5392
<Setter Property="Cursor" Value="Arrow" />
5493
<Setter Property="Foreground" Value="#000000" />
5594
</Style>
56-
<Style x:Key="ItemSubTitleSelectedStyle" BasedOn="{StaticResource BaseItemSubTitleSelectedStyle}" TargetType="{x:Type TextBlock}" >
95+
<Style
96+
x:Key="ItemSubTitleSelectedStyle"
97+
BasedOn="{StaticResource BaseItemSubTitleSelectedStyle}"
98+
TargetType="{x:Type TextBlock}">
5799
<Setter Property="Cursor" Value="Arrow" />
58100
<Setter Property="Foreground" Value="#72767d" />
59101
</Style>
60102
<SolidColorBrush x:Key="ItemSelectedBackgroundColor">#198F8F8F</SolidColorBrush>
61-
<Style x:Key="ItemImageSelectedStyle" BasedOn="{StaticResource BaseItemImageSelectedStyle}" TargetType="{x:Type Image}" >
103+
<Style
104+
x:Key="ItemImageSelectedStyle"
105+
BasedOn="{StaticResource BaseItemImageSelectedStyle}"
106+
TargetType="{x:Type Image}">
62107
<Setter Property="Cursor" Value="Arrow" />
63108
</Style>
64109
<Style x:Key="HighlightStyle">
@@ -68,33 +113,52 @@
68113
<Setter Property="FontSize" Value="13" />
69114
<Setter Property="Foreground" Value="#acacac" />
70115
</Style>
71-
<Style x:Key="ItemHotkeySelectedStyle" TargetType="{x:Type TextBlock}" BasedOn="{StaticResource BaseItemHotkeySelecetedStyle}">
116+
<Style
117+
x:Key="ItemHotkeySelectedStyle"
118+
BasedOn="{StaticResource BaseItemHotkeySelecetedStyle}"
119+
TargetType="{x:Type TextBlock}">
72120
<Setter Property="FontSize" Value="13" />
73121
<Setter Property="Foreground" Value="#acacac" />
74122
</Style>
75-
<!-- button style in the middle of the scrollbar -->
76-
<Style x:Key="ThumbStyle" BasedOn="{StaticResource BaseThumbStyle}" TargetType="{x:Type Thumb}">
77-
<Setter Property="SnapsToDevicePixels" Value="True"/>
78-
<Setter Property="OverridesDefaultStyle" Value="true"/>
79-
<Setter Property="IsTabStop" Value="false"/>
80-
<Setter Property="Width" Value="2"/>
81-
<Setter Property="Focusable" Value="false"/>
123+
<!-- button style in the middle of the scrollbar -->
124+
<Style
125+
x:Key="ThumbStyle"
126+
BasedOn="{StaticResource BaseThumbStyle}"
127+
TargetType="{x:Type Thumb}">
128+
<Setter Property="SnapsToDevicePixels" Value="True" />
129+
<Setter Property="OverridesDefaultStyle" Value="true" />
130+
<Setter Property="IsTabStop" Value="false" />
131+
<Setter Property="Width" Value="2" />
132+
<Setter Property="Focusable" Value="false" />
82133
<Setter Property="Template">
83134
<Setter.Value>
84135
<ControlTemplate TargetType="{x:Type Thumb}">
85-
<Border CornerRadius="2" DockPanel.Dock="Right" Background="#868686" BorderBrush="Transparent" BorderThickness="0" />
136+
<Border
137+
Background="#868686"
138+
BorderBrush="Transparent"
139+
BorderThickness="0"
140+
CornerRadius="2"
141+
DockPanel.Dock="Right" />
86142
</ControlTemplate>
87143
</Setter.Value>
88144
</Setter>
89145
</Style>
90-
<Style x:Key="ScrollBarStyle" BasedOn="{StaticResource BaseScrollBarStyle}" TargetType="{x:Type ScrollBar}">
91-
</Style>
92-
<Style x:Key="SeparatorStyle" BasedOn="{StaticResource BaseSeparatorStyle}" TargetType="{x:Type Rectangle}">
93-
<Setter Property="Fill" Value="#eaeaea"/>
94-
<Setter Property="Height" Value="1"/>
95-
<Setter Property="Margin" Value="12 0 12 8"/>
96-
</Style>
97-
<Style x:Key="SearchIconStyle" TargetType="{x:Type Path}" BasedOn="{StaticResource BaseSearchIconStyle}">
146+
<Style
147+
x:Key="ScrollBarStyle"
148+
BasedOn="{StaticResource BaseScrollBarStyle}"
149+
TargetType="{x:Type ScrollBar}" />
150+
<Style
151+
x:Key="SeparatorStyle"
152+
BasedOn="{StaticResource BaseSeparatorStyle}"
153+
TargetType="{x:Type Rectangle}">
154+
<Setter Property="Fill" Value="#eaeaea" />
155+
<Setter Property="Height" Value="1" />
156+
<Setter Property="Margin" Value="12,0,12,8" />
157+
</Style>
158+
<Style
159+
x:Key="SearchIconStyle"
160+
BasedOn="{StaticResource BaseSearchIconStyle}"
161+
TargetType="{x:Type Path}">
98162
<Setter Property="Fill" Value="#555555" />
99163
<Setter Property="Width" Value="32" />
100164
<Setter Property="Height" Value="32" />

0 commit comments

Comments
 (0)