mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Add Grid Splitter for preview resizing
This commit is contained in:
parent
f2717bec6b
commit
298a003d2e
2 changed files with 12 additions and 7 deletions
|
|
@ -335,11 +335,9 @@
|
|||
</Grid>
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition
|
||||
Width="0.85*"
|
||||
MinWidth="244"
|
||||
MaxWidth="340" />
|
||||
<ColumnDefinition Width="*" MinWidth="100" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="0.85*" MinWidth="244" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<StackPanel
|
||||
x:Name="ResultArea"
|
||||
|
|
@ -394,9 +392,16 @@
|
|||
</ContentControl>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
<GridSplitter
|
||||
Grid.Column="1"
|
||||
Width="5"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Stretch"
|
||||
Background="Transparent"
|
||||
ShowsPreview="True" />
|
||||
<Grid
|
||||
x:Name="Preview"
|
||||
Grid.Column="1"
|
||||
Grid.Column="2"
|
||||
VerticalAlignment="Stretch"
|
||||
Style="{DynamicResource PreviewArea}"
|
||||
Visibility="{Binding PreviewVisible, Converter={StaticResource BoolToVisibilityConverter}}">
|
||||
|
|
|
|||
|
|
@ -469,7 +469,7 @@ namespace Flow.Launcher.ViewModel
|
|||
|
||||
private void HidePreview()
|
||||
{
|
||||
ResultAreaColumn = 2;
|
||||
ResultAreaColumn = 3;
|
||||
PreviewVisible = false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue