diff options
author | sr55 <[email protected]> | 2012-08-12 10:35:46 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-08-12 10:35:46 +0000 |
commit | bd2a83d09b07c8e2fa303b6a17bf392811a0b95c (patch) | |
tree | 4240592556f5e7e36089a6f6e3f41d73e7828128 /win/CS/HandBrakeWPF/Views | |
parent | 833f974cc3b7b4a50f9c4a76686950a9dd395e70 (diff) |
WinGui: Highlight the default preset in italics.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4900 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Views')
-rw-r--r-- | win/CS/HandBrakeWPF/Views/MainView.xaml | 15 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/Views/MainView.xaml.cs | 2 |
2 files changed, 11 insertions, 6 deletions
diff --git a/win/CS/HandBrakeWPF/Views/MainView.xaml b/win/CS/HandBrakeWPF/Views/MainView.xaml index 5515fbbe8..57e7beee4 100644 --- a/win/CS/HandBrakeWPF/Views/MainView.xaml +++ b/win/CS/HandBrakeWPF/Views/MainView.xaml @@ -5,8 +5,7 @@ xmlns:Converters="clr-namespace:HandBrakeWPF.Converters"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:Micro="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro"
- xmlns:behaviours="clr-namespace:HandBrakeWPF.Helpers" xmlns:Model="clr-namespace:HandBrakeWPF.Model"
- AllowDrop="True"
+ AllowDrop="True"
Background="#FFF0F0F0"
FontSize="11"
Micro:Message.Attach="[Event Loaded] = [Action Load]"
@@ -52,6 +51,12 @@ <Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Background" Value="Transparent"/>
</Trigger>
+ <DataTrigger Binding="{Binding IsDefault}" Value="True" >
+ <Setter Property="FontStyle" Value="Italic" />
+ </DataTrigger>
+ <DataTrigger Binding="{Binding IsDefault}" Value="False" >
+ <Setter Property="FontStyle" Value="Normal" />
+ </DataTrigger>
</Style.Triggers>
</Style>
@@ -517,9 +522,9 @@ </Grid.RowDefinitions>
<ListBox HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch" ItemsSource="{Binding Source={StaticResource presetsCvs}}"
+ VerticalAlignment="Stretch" ItemsSource="{Binding Source={StaticResource presetsCvs}}"
SelectedItem="{Binding SelectedPreset, Mode=TwoWay}" BorderThickness="0,0,0,1"
- BorderBrush="LightGray"
+ BorderBrush="LightGray"
>
<ListBox.GroupStyle>
@@ -543,7 +548,7 @@ UseLayoutRounding="False"
ToolBar.OverflowMode="Never"
ToolBarTray.IsLocked="True"
- Loaded="PresetsToolBarLoaded"
+ Loaded="ToolBarLoaded"
>
<Button Micro:Message.Attach="[Event Click] = [Action PresetAdd]" >
<Button.Content>
diff --git a/win/CS/HandBrakeWPF/Views/MainView.xaml.cs b/win/CS/HandBrakeWPF/Views/MainView.xaml.cs index 0c6c291c9..7366ac9f8 100644 --- a/win/CS/HandBrakeWPF/Views/MainView.xaml.cs +++ b/win/CS/HandBrakeWPF/Views/MainView.xaml.cs @@ -35,7 +35,7 @@ namespace HandBrakeWPF.Views /// <param name="e">
/// The e.
/// </param>
- private void PresetsToolBarLoaded(object sender, RoutedEventArgs e)
+ private void ToolBarLoaded(object sender, RoutedEventArgs e)
{
ToolBar toolBar = sender as ToolBar;
if (toolBar != null)
|