Skip to content

Commit b1ddc2c

Browse files
committed
Adjust Theme Editor Size when IsChcked
1 parent 7df9826 commit b1ddc2c

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

Flow.Launcher/SettingPages/Views/SettingsPaneTheme.xaml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,17 @@
3939
TextAlignment="left"
4040
Visibility="Collapsed" />
4141
<!-- Theme Preview and Editor -->
42-
<Grid Height="380">
42+
<Grid>
43+
<Grid.Style>
44+
<Style x:Name="PreviewArea" TargetType="Grid">
45+
<Setter Property="MaxHeight" Value="380" />
46+
<Style.Triggers>
47+
<DataTrigger Binding="{Binding ElementName=Editor, Path=IsChecked}" Value="True">
48+
<Setter Property="MaxHeight" Value="550" />
49+
</DataTrigger>
50+
</Style.Triggers>
51+
</Style>
52+
</Grid.Style>
4353
<Grid.Resources>
4454
<!-- Style for the second ColumnDefinition -->
4555
<Style x:Key="SecondColumnStyle" TargetType="ColumnDefinition">
@@ -386,13 +396,13 @@
386396
<cc:ExCard.SideContent>
387397
<StackPanel VerticalAlignment="Center" Orientation="Horizontal">
388398
<ui:FontIcon
389-
Margin="0 0 8 0"
399+
Margin="0 2 8 0"
390400
VerticalAlignment="Center"
391401
FontSize="12"
392402
Glyph="&#xED66;"
393403
Visibility="{Binding SelectedTheme.IsDark, Converter={StaticResource BoolToVisibilityConverter}}" />
394404
<ui:FontIcon
395-
Margin="0 0 8 0"
405+
Margin="0 2 8 0"
396406
VerticalAlignment="Center"
397407
FontSize="12"
398408
Glyph="&#xEB42;"
@@ -423,22 +433,21 @@
423433
Width="Auto"
424434
Height="34"
425435
Margin="0">
426-
<StackPanel Margin="12 0" Orientation="Horizontal">
436+
<StackPanel Margin="14 2 14 0" Orientation="Horizontal">
427437
<TextBlock
428438
Margin="0 0 0 0"
429439
HorizontalAlignment="Center"
430440
VerticalAlignment="Center"
431-
FontSize="12"
432441
Text="{Binding Name}"
433442
TextWrapping="Wrap" />
434443
<ui:FontIcon
435-
Margin="8 0 0 0"
444+
Margin="8 1 0 0"
436445
VerticalAlignment="Center"
437446
FontSize="12"
438447
Glyph="&#xED66;"
439448
Visibility="{Binding IsDark, Converter={StaticResource BoolToVisibilityConverter}}" />
440449
<ui:FontIcon
441-
Margin="8 0 0 0"
450+
Margin="8 1 0 0"
442451
VerticalAlignment="Center"
443452
FontSize="12"
444453
Glyph="&#xEB42;"

0 commit comments

Comments
 (0)