Skip to content

Commit 136f227

Browse files
committed
- Fix Responsive Query Area
- Adjus Pink more cute - Add Default Clip Radius
1 parent 6a58576 commit 136f227

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

Flow.Launcher/MainWindow.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
</Line>
110110
</Grid>
111111

112-
<Border CornerRadius="4">
112+
<Border Style="{DynamicResource WindowRadius}">
113113
<Border.Clip>
114114
<MultiBinding Converter="{StaticResource BorderClipConverter}">
115115
<Binding Path="ActualWidth" RelativeSource="{RelativeSource Self}"/>
@@ -121,7 +121,7 @@
121121
<flowlauncher:ResultListBox x:Name="ResultListBox" DataContext="{Binding Results}" PreviewMouseDown="OnPreviewMouseButtonDown" />
122122
</ContentControl>
123123
</Border>
124-
<Border CornerRadius="4">
124+
<Border Style="{DynamicResource WindowRadius}">
125125
<Border.Clip>
126126
<MultiBinding Converter="{StaticResource BorderClipConverter}">
127127
<Binding Path="ActualWidth" RelativeSource="{RelativeSource Self}"/>
@@ -133,7 +133,7 @@
133133
<flowlauncher:ResultListBox DataContext="{Binding ContextMenu}" PreviewMouseDown="OnPreviewMouseButtonDown" />
134134
</ContentControl>
135135
</Border>
136-
<Border CornerRadius="4">
136+
<Border Style="{DynamicResource WindowRadius}">
137137
<Border.Clip>
138138
<MultiBinding Converter="{StaticResource BorderClipConverter}">
139139
<Binding Path="ActualWidth" RelativeSource="{RelativeSource Self}"/>

Flow.Launcher/Themes/Base.xaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<Setter Property="Foreground" Value="#E3E0E3" />
1515
<Setter Property="CaretBrush" Value="#E3E0E3" />
1616
<Setter Property="VerticalContentAlignment" Value="Center" />
17+
<Setter Property="HorizontalAlignment" Value="Left" />
1718
<Setter Property="Stylus.IsFlicksEnabled" Value="False" />
1819
<Setter Property="Template">
1920
<Setter.Value>
@@ -41,6 +42,7 @@
4142
<Setter Property="Width" Value="536" />
4243
<Setter Property="Background" Value="Transparent" />
4344
<Setter Property="Padding" Value="0 4 0 0" />
45+
<Setter Property="HorizontalAlignment" Value="Left" />
4446
</Style>
4547

4648
<Style x:Key="BaseWindowBorderStyle" TargetType="{x:Type Border}">
@@ -54,6 +56,10 @@
5456
<Setter Property="RenderOptions.ClearTypeHint" Value="Enabled"/>
5557
</Style>
5658

59+
<Style x:Key="WindowRadius" TargetType="{x:Type Border}">
60+
<Setter Property="CornerRadius" Value="5" />
61+
</Style>
62+
5763
<Style x:Key="BasePendingLineStyle" TargetType="{x:Type Line}">
5864
<Setter Property="Stroke" Value="Blue" />
5965
</Style>

Flow.Launcher/Themes/Pink.xaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,19 @@
66
<Setter Property="Background" Value="#1f1d1f"/>
77
<Setter Property="Foreground" Value="#cc1081" />
88
<Setter Property="CaretBrush" Value="#cc1081" />
9+
<Setter Property="Width" Value="406"/>
910
</Style>
1011

1112
<Style x:Key="QuerySuggestionBoxStyle" BasedOn="{StaticResource BaseQuerySuggestionBoxStyle}" TargetType="{x:Type TextBox}">
1213
<Setter Property="Background" Value="#1f1d1f"/>
1314
<Setter Property="Foreground" Value="#71114b" />
15+
<Setter Property="Width" Value="406"/>
1416
</Style>
1517

1618
<Style x:Key="WindowBorderStyle" BasedOn="{StaticResource BaseWindowBorderStyle}" TargetType="{x:Type Border}">
1719
<Setter Property="Background" Value="#1f1d1f"></Setter>
18-
<Setter Property="BorderThickness" Value="2"></Setter>
20+
<Setter Property="Width" Value="456"></Setter>
21+
<Setter Property="BorderThickness" Value="2"></Setter>
1922
<Setter Property="BorderBrush" Value="#000000"></Setter>
2023
</Style>
2124
<Style x:Key="WindowStyle" TargetType="{x:Type Window}" BasedOn="{StaticResource BaseWindowStyle}" >

0 commit comments

Comments
 (0)