summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2019-12-23 20:46:47 +0000
committersr55 <[email protected]>2020-01-01 16:28:03 +0000
commit3f4b59109d206ae65efe16f62cd6ef61634c0ce9 (patch)
tree0286175cb9c8c2b69f3b4e5b2679b039fdddaf81
parentb1795aeb25119c52618f3471a66c6fe8b6c71186 (diff)
WinGui: Cosmetic: Increase slightly the default size of the queue window, and allow the left pane to grow a bit larger when upscaling the window. #2527
(cherry picked from commit d330c8d834b2ff951adb7c4771632079f92adcaf)
-rw-r--r--win/CS/HandBrakeWPF/Views/QueueView.xaml6
-rw-r--r--win/CS/HandBrakeWPF/Views/QueueView.xaml.cs5
2 files changed, 6 insertions, 5 deletions
diff --git a/win/CS/HandBrakeWPF/Views/QueueView.xaml b/win/CS/HandBrakeWPF/Views/QueueView.xaml
index 1c566fb31..0df09cff9 100644
--- a/win/CS/HandBrakeWPF/Views/QueueView.xaml
+++ b/win/CS/HandBrakeWPF/Views/QueueView.xaml
@@ -15,8 +15,8 @@
xmlns:Properties="clr-namespace:HandBrakeWPF.Properties"
xmlns:queue="clr-namespace:HandBrakeWPF.Converters.Queue"
Title="{Binding Title}"
- Width="900"
- Height="520"
+ Width="975"
+ Height="550"
MinWidth="400"
MinHeight="300"
WindowStartupLocation="CenterScreen"
@@ -65,7 +65,7 @@
<Grid Grid.Row="2" Margin="0,15,0,0">
<Grid.ColumnDefinitions>
- <ColumnDefinition Width="3*" MaxWidth="600" x:Name="leftTabPanel" />
+ <ColumnDefinition Width="3*" MaxWidth="750" x:Name="leftTabPanel" />
<ColumnDefinition Width="4*" x:Name="rightTabPanel" />
</Grid.ColumnDefinitions>
diff --git a/win/CS/HandBrakeWPF/Views/QueueView.xaml.cs b/win/CS/HandBrakeWPF/Views/QueueView.xaml.cs
index 6ee87bed2..9ffdad8eb 100644
--- a/win/CS/HandBrakeWPF/Views/QueueView.xaml.cs
+++ b/win/CS/HandBrakeWPF/Views/QueueView.xaml.cs
@@ -39,13 +39,14 @@ namespace HandBrakeWPF.Views
// Make the view adaptive.
if (e.WidthChanged)
{
- int queueSizeLimit = 675;
+ int queueSizeLimit = 745;
this.summaryTabControl.Visibility = this.ActualWidth < queueSizeLimit ? Visibility.Collapsed : Visibility.Visible;
this.leftTabPanel.Width = this.ActualWidth < queueSizeLimit ? new GridLength(this.ActualWidth - 10, GridUnitType.Star) : new GridLength(3, GridUnitType.Star);
- this.leftTabPanel.MaxWidth = this.ActualWidth < queueSizeLimit ? 680 : 500;
+ this.leftTabPanel.MaxWidth = this.ActualWidth < queueSizeLimit ? 750 : 650;
}
}
+
private void ContextMenu_OnOpened(object sender, RoutedEventArgs e)
{
ContextMenu menu = sender as ContextMenu;