Skip to content

Commit

Permalink
Grow the settings window to fit its content
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrubN committed Feb 24, 2024
1 parent 8e64862 commit 2e63734
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions TwitchDownloaderWPF/WindowQueueOptions.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
lex:ResxLocalizationProvider.DefaultAssembly="TwitchDownloaderWPF"
lex:ResxLocalizationProvider.DefaultDictionary="Strings"
mc:Ignorable="d"
Title="Queue Options" MinHeight="280" Height="280" MinWidth="500" Width="500" Loaded="Window_loaded">
Title="Queue Options" MinHeight="280" Height="280" MinWidth="500" Width="500" SizeToContent="WidthAndHeight" Loaded="Window_loaded" Background="{DynamicResource AppBackground}">
<Window.Resources>
<Style TargetType="{x:Type TextBox}" BasedOn="{StaticResource {x:Type TextBox}}">
<Setter Property="behave:TextBoxTripleClickBehavior.TripleClickSelectLine" Value="True" />
</Style>
</Window.Resources>

<Grid Background="{DynamicResource AppBackground}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="6"/>
<ColumnDefinition Width="*"/>
Expand Down
4 changes: 2 additions & 2 deletions TwitchDownloaderWPF/WindowSettings.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
xmlns:hc="https://handyorg.github.io/handycontrol"
xmlns:fa="http://schemas.fontawesome.com/icons/"
mc:Ignorable="d"
Title="Global Settings" MinWidth="400" MinHeight="500" Width="500" Height="592" Initialized="Window_Initialized" Closing="Window_Closing" Loaded="Window_Loaded">
Title="Global Settings" MinWidth="400" MinHeight="500" Width="500" Height="592" SizeToContent="Height" Initialized="Window_Initialized" Closing="Window_Closing" Loaded="Window_Loaded" Background="{DynamicResource AppBackground}">
<Window.Resources>
<Style TargetType="{x:Type TextBox}" BasedOn="{StaticResource {x:Type TextBox}}">
<Setter Property="behave:TextBoxTripleClickBehavior.TripleClickSelectLine" Value="True" />
</Style>
</Window.Resources>

<Grid Background="{DynamicResource AppBackground}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="8"/>
<ColumnDefinition Width="*"/>
Expand Down

0 comments on commit 2e63734

Please sign in to comment.