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>
|
<Grid>
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="*" />
|
<ColumnDefinition Width="*" MinWidth="100" />
|
||||||
<ColumnDefinition
|
<ColumnDefinition Width="Auto" />
|
||||||
Width="0.85*"
|
<ColumnDefinition Width="0.85*" MinWidth="244" />
|
||||||
MinWidth="244"
|
|
||||||
MaxWidth="340" />
|
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<StackPanel
|
<StackPanel
|
||||||
x:Name="ResultArea"
|
x:Name="ResultArea"
|
||||||
|
|
@ -394,9 +392,16 @@
|
||||||
</ContentControl>
|
</ContentControl>
|
||||||
</Border>
|
</Border>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
<GridSplitter
|
||||||
|
Grid.Column="1"
|
||||||
|
Width="5"
|
||||||
|
HorizontalAlignment="Center"
|
||||||
|
VerticalAlignment="Stretch"
|
||||||
|
Background="Transparent"
|
||||||
|
ShowsPreview="True" />
|
||||||
<Grid
|
<Grid
|
||||||
x:Name="Preview"
|
x:Name="Preview"
|
||||||
Grid.Column="1"
|
Grid.Column="2"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
Style="{DynamicResource PreviewArea}"
|
Style="{DynamicResource PreviewArea}"
|
||||||
Visibility="{Binding PreviewVisible, Converter={StaticResource BoolToVisibilityConverter}}">
|
Visibility="{Binding PreviewVisible, Converter={StaticResource BoolToVisibilityConverter}}">
|
||||||
|
|
|
||||||
|
|
@ -469,7 +469,7 @@ namespace Flow.Launcher.ViewModel
|
||||||
|
|
||||||
private void HidePreview()
|
private void HidePreview()
|
||||||
{
|
{
|
||||||
ResultAreaColumn = 2;
|
ResultAreaColumn = 3;
|
||||||
PreviewVisible = false;
|
PreviewVisible = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue