|
3 | 3 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
4 | 4 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
5 | 5 | xmlns:flowlauncher="clr-namespace:Flow.Launcher"
|
| 6 | + xmlns:converters="clr-namespace:Flow.Launcher.Converters" |
6 | 7 | xmlns:vm="clr-namespace:Flow.Launcher.ViewModel"
|
7 | 8 | xmlns:scm="clr-namespace:System.ComponentModel;assembly=WindowsBase"
|
8 | 9 | xmlns:userSettings="clr-namespace:Flow.Launcher.Infrastructure.UserSettings;assembly=Flow.Launcher.Infrastructure"
|
|
28 | 29 | <CommandBinding Command="Close" Executed="OnCloseExecuted"/>
|
29 | 30 | </Window.CommandBindings>
|
30 | 31 | <Window.Resources>
|
| 32 | + <converters:BorderClipConverter x:Key="BorderClipConverter"/> |
31 | 33 | <CollectionViewSource Source="{Binding Source={x:Static Fonts.SystemFontFamilies}}" x:Key="SortedFonts">
|
32 | 34 | <CollectionViewSource.SortDescriptions>
|
33 | 35 | <scm:SortDescription PropertyName="Source"/>
|
|
256 | 258 | <StackPanel Orientation="Horizontal" Margin="0 30 0 0"
|
257 | 259 | HorizontalAlignment="Center" VerticalAlignment="Center">
|
258 | 260 | <Border Width="500" Style="{DynamicResource WindowBorderStyle}" >
|
259 |
| - <Grid> |
260 |
| - <Grid.RowDefinitions> |
261 |
| - <RowDefinition Height="58" /> |
262 |
| - <RowDefinition /> |
263 |
| - </Grid.RowDefinitions> |
264 |
| - <TextBox Grid.Row="0" |
| 261 | + <Border Style="{DynamicResource WindowRadius}"> |
| 262 | + <Border.Clip> |
| 263 | + <MultiBinding Converter="{StaticResource BorderClipConverter}"> |
| 264 | + <Binding Path="ActualWidth" RelativeSource="{RelativeSource Self}"/> |
| 265 | + <Binding Path="ActualHeight" RelativeSource="{RelativeSource Self}"/> |
| 266 | + <Binding Path="CornerRadius" RelativeSource="{RelativeSource Self}"/> |
| 267 | + </MultiBinding> |
| 268 | + </Border.Clip> |
| 269 | + <Grid> |
| 270 | + <Grid.RowDefinitions> |
| 271 | + <RowDefinition Height="58" /> |
| 272 | + <RowDefinition /> |
| 273 | + </Grid.RowDefinitions> |
| 274 | + <TextBox Grid.Row="0" |
265 | 275 | Text="{DynamicResource hiThere}" IsReadOnly="True"
|
266 | 276 | Style="{DynamicResource QueryBoxStyle}"
|
267 | 277 | Margin="16 0 56 0" />
|
268 |
| - <Canvas Style="{DynamicResource SearchIconPosition}"> |
269 |
| - <Path Data="{DynamicResource SearchIconImg}" Style="{DynamicResource SearchIconStyle}" Margin="0" Stretch="Fill"/> |
270 |
| - </Canvas> |
271 |
| - <Grid Height="58" Margin="0 28 0 0"> |
272 |
| - <Rectangle Width="Auto" HorizontalAlignment="Stretch" Style="{DynamicResource SeparatorStyle}" Visibility="visible"/> |
| 278 | + <Canvas Style="{DynamicResource SearchIconPosition}"> |
| 279 | + <Path Data="{DynamicResource SearchIconImg}" Style="{DynamicResource SearchIconStyle}" Margin="0" Stretch="Fill"/> |
| 280 | + </Canvas> |
| 281 | + <Border Height="58" Margin="0 28 0 0"> |
| 282 | + <Rectangle Width="Auto" HorizontalAlignment="Stretch" Style="{DynamicResource SeparatorStyle}" Visibility="visible"/> |
| 283 | + </Border> |
| 284 | + |
| 285 | + <ContentControl Grid.Row="1"> |
| 286 | + <flowlauncher:ResultListBox DataContext="{Binding PreviewResults, Mode=OneTime}" Visibility="Visible" /> |
| 287 | + </ContentControl> |
| 288 | + |
273 | 289 | </Grid>
|
274 |
| - <ContentControl Grid.Row="1"> |
275 |
| - <flowlauncher:ResultListBox DataContext="{Binding PreviewResults, Mode=OneTime}" Visibility="Visible" /> |
276 |
| - </ContentControl> |
277 |
| - </Grid> |
| 290 | + </Border> |
278 | 291 | </Border>
|
279 | 292 | </StackPanel>
|
280 | 293 | </StackPanel>
|
|
0 commit comments