diff options
author | sr55 <[email protected]> | 2016-09-23 20:22:06 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2016-09-23 20:23:01 +0100 |
commit | ee6c82845747a17c0ed4ea267164a82bb59b8d48 (patch) | |
tree | e4ab7cac4ae6be9c6ca9411fb9b655b15629c98a /win/CS/HandBrakeWPF/Views/MainView.xaml | |
parent | 5558d9c4f99cb4497448f11d41dd65a447f5525c (diff) |
WinGui: Fix log display in the GUI where the start of a log could be cut off. Fixes #326
Diffstat (limited to 'win/CS/HandBrakeWPF/Views/MainView.xaml')
-rw-r--r-- | win/CS/HandBrakeWPF/Views/MainView.xaml | 87 |
1 files changed, 51 insertions, 36 deletions
diff --git a/win/CS/HandBrakeWPF/Views/MainView.xaml b/win/CS/HandBrakeWPF/Views/MainView.xaml index db1ca8f9d..71be890df 100644 --- a/win/CS/HandBrakeWPF/Views/MainView.xaml +++ b/win/CS/HandBrakeWPF/Views/MainView.xaml @@ -599,63 +599,78 @@ Loaded="ToolBarLoaded"
KeyboardNavigation.TabNavigation="Continue"
>
- <Button cal:Message.Attach="[Event Click] = [Action PresetAdd]" AutomationProperties.Name="Add Preset">
- <Button.Content>
- <StackPanel Orientation="Horizontal">
- <Image Width="20"
+
+ <ToolBar.Resources>
+ <Style TargetType="{x:Type ToolBarPanel}">
+ <Setter Property="Orientation" Value="Vertical"/>
+ <Setter Property="VerticalAlignment" Value="Center"/>
+ </Style>
+
+ <Style BasedOn="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" TargetType="{x:Type Button}" />
+ </ToolBar.Resources>
+
+ <ToolBarOverflowPanel>
+ <Button cal:Message.Attach="[Event Click] = [Action PresetAdd]" AutomationProperties.Name="Add Preset">
+ <Button.Content>
+ <StackPanel Orientation="Horizontal">
+ <Image Width="20"
Height="20"
Source="Images/add.png"
/>
- <TextBlock Margin="2,0,0,0"
+ <TextBlock Margin="2,0,0,0"
VerticalAlignment="Center"
Style="{StaticResource textBlockOrangeStyle}"
Text="{x:Static Properties:ResourcesUI.Generic_Add}"
/>
- </StackPanel>
- </Button.Content>
- </Button>
- <Button cal:Message.Attach="[Event Click] = [Action PresetRemove]" AutomationProperties.Name="Remove Preset">
- <Button.Content>
- <StackPanel Orientation="Horizontal">
- <Image Width="20"
+ </StackPanel>
+ </Button.Content>
+ </Button>
+
+ <Button Background="Transparent" cal:Message.Attach="[Event Click] = [Action PresetRemove]" AutomationProperties.Name="Remove Preset">
+ <Button.Content>
+ <StackPanel Orientation="Horizontal">
+ <Image Width="20"
Height="20"
Source="Images/remove.png"
SnapsToDevicePixels="True"
/>
- <TextBlock Margin="2,0,0,0"
+ <TextBlock Margin="2,0,0,0"
VerticalAlignment="Center"
Style="{StaticResource textBlockOrangeStyle}"
Text="{x:Static Properties:ResourcesUI.MainView_Remove}"
/>
- </StackPanel>
- </Button.Content>
- </Button>
- <Menu Background="Transparent" AutomationProperties.Name="Preset Options Dropdown">
- <MenuItem ToolBar.OverflowMode="Never">
- <MenuItem.Header>
- <StackPanel Orientation="Horizontal">
- <Image Width="20"
+ </StackPanel>
+ </Button.Content>
+ </Button>
+
+ <Menu Background="Transparent" AutomationProperties.Name="Preset Options Dropdown" MinHeight="22">
+ <MenuItem ToolBar.OverflowMode="Never">
+ <MenuItem.Header>
+ <StackPanel Orientation="Horizontal">
+ <Image Width="20"
Height="20"
Source="Images/Advanced.png"
RenderOptions.BitmapScalingMode="HighQuality"
/>
- <TextBlock Margin="2,0,0,0"
+ <TextBlock Margin="2,0,0,0"
VerticalAlignment="Center"
Style="{StaticResource textBlockOrangeStyle}"
Text="{x:Static Properties:ResourcesUI.MainView_Options}"
/>
- </StackPanel>
- </MenuItem.Header>
- <MenuItem Header="{x:Static Properties:ResourcesUI.MainView_SetDefault}" cal:Message.Attach="[Event Click] = [Action PresetSetDefault]" />
- <Separator />
- <MenuItem Header="{x:Static Properties:ResourcesUI.MainView_UpdateSelectedPreset}" cal:Message.Attach="[Event Click] = [Action PresetUpdate]" />
- <Separator />
- <MenuItem Header="{x:Static Properties:ResourcesUI.Preset_Import}" cal:Message.Attach="[Event Click] = [Action PresetImport]" />
- <MenuItem Header="{x:Static Properties:ResourcesUI.Preset_Export}" cal:Message.Attach="[Event Click] = [Action PresetExport]" />
- <Separator />
- <MenuItem Header="{x:Static Properties:ResourcesUI.MainView_ResetBuiltInPresets}" cal:Message.Attach="[Event Click] = [Action PresetReset]" />
- </MenuItem>
- </Menu>
+ </StackPanel>
+ </MenuItem.Header>
+ <MenuItem Header="{x:Static Properties:ResourcesUI.MainView_SetDefault}" cal:Message.Attach="[Event Click] = [Action PresetSetDefault]" />
+ <Separator />
+ <MenuItem Header="{x:Static Properties:ResourcesUI.MainView_UpdateSelectedPreset}" cal:Message.Attach="[Event Click] = [Action PresetUpdate]" />
+ <Separator />
+ <MenuItem Header="{x:Static Properties:ResourcesUI.Preset_Import}" cal:Message.Attach="[Event Click] = [Action PresetImport]" />
+ <MenuItem Header="{x:Static Properties:ResourcesUI.Preset_Export}" cal:Message.Attach="[Event Click] = [Action PresetExport]" />
+ <Separator />
+ <MenuItem Header="{x:Static Properties:ResourcesUI.MainView_ResetBuiltInPresets}" cal:Message.Attach="[Event Click] = [Action PresetReset]" />
+ </MenuItem>
+ </Menu>
+ </ToolBarOverflowPanel>
+
</ToolBar>
</Grid>
</GroupBox>
@@ -705,10 +720,10 @@ <TextBlock Text="{Binding Path=ProgramStatusLabel}" TextTrimming="CharacterEllipsis" />
</StatusBarItem>
<StatusBarItem HorizontalAlignment="Right" ToolTip="{x:Static Properties:ResourcesTooltips.MainView_WhenDone}">
- <Menu Background="Transparent">
+ <Menu Background="Transparent" >
<MenuItem>
<MenuItem.Header>
- <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
+ <StackPanel VerticalAlignment="Center" Orientation="Horizontal" MinHeight="26">
<TextBlock VerticalAlignment="Center" FontWeight="Bold" Text="{x:Static Properties:ResourcesUI.QueueView_WhenDone}" />
<TextBlock Margin="8,0,0,0" VerticalAlignment="Center" Text="{Binding QueueViewModel.WhenDoneAction}" />
<Path Height="5"
|