diff options
author | sr55 <[email protected]> | 2014-01-19 19:47:01 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2014-01-19 19:47:01 +0000 |
commit | 5823ae268ce5f0dce14745f778a566f5afecfe07 (patch) | |
tree | 8ad0ebc28b8287d419acfad9c40721a74fe1c0e9 | |
parent | fbd436be448583b36985e54f383bf6b99e423507 (diff) |
WinGui: Few minor UI tweaks.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5984 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | win/CS/HandBrakeWPF/Views/MainView.xaml | 15 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Views/QueueView.xaml | 84 |
2 files changed, 61 insertions, 38 deletions
diff --git a/win/CS/HandBrakeWPF/Views/MainView.xaml b/win/CS/HandBrakeWPF/Views/MainView.xaml index 68b7d739e..591d83227 100644 --- a/win/CS/HandBrakeWPF/Views/MainView.xaml +++ b/win/CS/HandBrakeWPF/Views/MainView.xaml @@ -200,7 +200,7 @@ />
</StackPanel>
</Button>
-
+
<Separator />
<Button Name="Start"
@@ -279,11 +279,6 @@ SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
/>
</Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsPressed" Value="True">
- <Setter TargetName="border" Property="Background" Value="#FF98B5E2" />
- </Trigger>
- </ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
@@ -380,7 +375,7 @@ SelectedItem="{Binding Path=SelectedTitle}"
/>
<Label Margin="8,0,0,0" Content="Angle" />
-
+
<ComboBox Name="Angles"
MinWidth="60"
Margin="8,0,0,0"
@@ -639,12 +634,12 @@ </Grid>
</GroupBox>
</Grid>
-
- <!-- Source Selection-->
+
+ <!-- Source Selection-->
<Controls:SourceSelection Grid.Row="1" MinWidth="300" HorizontalAlignment="Left" VerticalAlignment="Stretch" BorderThickness="1" BorderBrush="DarkGray"
Visibility="{Binding ShowSourceSelection, Converter={StaticResource boolToVisConverter}}"
/>
-
+
<!-- StatusPanel -->
<Controls:StatusPanel x:Name="loadingPanel"
Grid.Row="1"
diff --git a/win/CS/HandBrakeWPF/Views/QueueView.xaml b/win/CS/HandBrakeWPF/Views/QueueView.xaml index 5ff075455..62181977e 100644 --- a/win/CS/HandBrakeWPF/Views/QueueView.xaml +++ b/win/CS/HandBrakeWPF/Views/QueueView.xaml @@ -7,7 +7,7 @@ xmlns:dd="clr-namespace:GongSolutions.Wpf.DragDrop;assembly=GongSolutions.Wpf.DragDrop"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:YourNamespace="clr-namespace:HandBrakeWPF.AttachedProperties"
+ xmlns:AttachedProperties="clr-namespace:HandBrakeWPF.AttachedProperties"
xmlns:Audio="clr-namespace:HandBrakeWPF.Converters.Audio"
xmlns:Subtitles="clr-namespace:HandBrakeWPF.Converters.Subtitles"
xmlns:video="clr-namespace:HandBrakeWPF.Converters.Video"
@@ -92,59 +92,87 @@ </StackPanel>
</Button>
- <Menu HorizontalAlignment="Right" DockPanel.Dock="Right" Background="Transparent">
- <MenuItem>
- <MenuItem.Header>
- <StackPanel Height="32" Orientation="Horizontal">
- <TextBlock VerticalAlignment="Center"
+ <StackPanel Orientation="Horizontal" DockPanel.Dock="Right" HorizontalAlignment="Right">
+ <Menu HorizontalAlignment="Right" Background="Transparent">
+ <MenuItem>
+ <MenuItem.Header>
+ <StackPanel Height="32" Orientation="Horizontal">
+ <TextBlock VerticalAlignment="Center"
FontWeight="Bold"
Text="When Done: " />
- <Label Margin="8,0,0,0"
+ <Label Margin="8,0,0,0"
VerticalAlignment="Center"
Content="{Binding WhenDoneAction}" />
- <Path Height="5"
+ <Path Height="5"
Margin="2,2,2,0"
Data="M 0 0 L 4 4 L 8 0 Z"
Fill="{DynamicResource GlyphBrush}" />
- </StackPanel>
- </MenuItem.Header>
- <MenuItem x:Name="doNothing"
+ </StackPanel>
+ </MenuItem.Header>
+
+ <MenuItem x:Name="doNothing"
cal:Message.Attach="[Event Click] = [Action WhenDone(doNothing.Header)]"
Header="Do nothing"
IsCheckable="True"
- YourNamespace:MenuItemExtensions.GroupName="whenDone" />
- <MenuItem x:Name="shutdown"
+ AttachedProperties:MenuItemExtensions.GroupName="whenDone" />
+ <MenuItem x:Name="shutdown"
cal:Message.Attach="[Event Click] = [Action WhenDone(shutdown.Header)]"
Header="Shutdown"
IsCheckable="True"
- YourNamespace:MenuItemExtensions.GroupName="whenDone" />
- <MenuItem x:Name="suspend"
+ AttachedProperties:MenuItemExtensions.GroupName="whenDone" />
+ <MenuItem x:Name="suspend"
cal:Message.Attach="[Event Click] = [Action WhenDone(suspend.Header)]"
Header="Suspend"
IsCheckable="True"
- YourNamespace:MenuItemExtensions.GroupName="whenDone" />
- <MenuItem x:Name="hibernate"
+ AttachedProperties:MenuItemExtensions.GroupName="whenDone" />
+ <MenuItem x:Name="hibernate"
cal:Message.Attach="[Event Click] = [Action WhenDone(hibernate.Header)]"
Header="Hibernate"
IsCheckable="True"
- YourNamespace:MenuItemExtensions.GroupName="whenDone" />
- <MenuItem x:Name="lock"
+ AttachedProperties:MenuItemExtensions.GroupName="whenDone" />
+ <MenuItem x:Name="lock"
cal:Message.Attach="[Event Click] = [Action WhenDone(lock.Header)]"
Header="Lock System"
IsCheckable="True"
- YourNamespace:MenuItemExtensions.GroupName="whenDone" />
- <MenuItem x:Name="logoff"
+ AttachedProperties:MenuItemExtensions.GroupName="whenDone" />
+ <MenuItem x:Name="logoff"
cal:Message.Attach="[Event Click] = [Action WhenDone(logoff.Header)]"
Header="Log off"
IsCheckable="True"
- YourNamespace:MenuItemExtensions.GroupName="whenDone" />
- <MenuItem x:Name="quit"
+ AttachedProperties:MenuItemExtensions.GroupName="whenDone" />
+ <MenuItem x:Name="quit"
cal:Message.Attach="[Event Click] = [Action WhenDone(quit.Header)]"
Header="Quit HandBrake"
IsCheckable="True"
- YourNamespace:MenuItemExtensions.GroupName="whenDone" />
- </MenuItem>
- </Menu>
+ AttachedProperties:MenuItemExtensions.GroupName="whenDone" />
+ </MenuItem>
+ </Menu>
+
+ <Menu HorizontalAlignment="Right" Background="Transparent">
+ <MenuItem>
+ <MenuItem.Header>
+ <StackPanel Height="32" Orientation="Horizontal">
+ <Image Source="Images\Advanced.png" Width="28" Height="28" VerticalAlignment="Center" />
+ <TextBlock VerticalAlignment="Center"
+ Text="Options " Margin="5,0,0,0" />
+ <Path Height="5"
+ Margin="2,2,2,0"
+ Data="M 0 0 L 4 4 L 8 0 Z"
+ Fill="{DynamicResource GlyphBrush}" />
+ </StackPanel>
+ </MenuItem.Header>
+
+ <MenuItem cal:Message.Attach="[Event Click] = [Action ClearCompleted]" Header="Clear Completed" />
+ <MenuItem cal:Message.Attach="[Event Click] = [Action Clear]" Header="Clear Queue" />
+ <Separator />
+ <MenuItem cal:Message.Attach="[Event Click] = [Action Import]" Header="Import Queue" />
+ <MenuItem cal:Message.Attach="[Event Click] = [Action Export]" Header="Export Queue" />
+
+ </MenuItem>
+ </Menu>
+
+ </StackPanel>
+
</DockPanel>
</ToolBar>
@@ -161,7 +189,7 @@ dd:DragDrop.IsDropTarget="True"
ItemsSource="{Binding QueueTasks, Mode=OneWay}"
SelectionMode="Extended">
-
+
<ListBox.Style>
<Style TargetType="ListBox">
<Style.Triggers>
@@ -239,7 +267,7 @@ <Setter Property="Background" Value="WhiteSmoke" />
</DataTrigger>
</Style.Triggers>
-
+
</Style>
</ListBox.ItemContainerStyle>
|