summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Themes/Controls/GroupBoxDark.xaml
diff options
context:
space:
mode:
authorsr55 <[email protected]>2020-01-01 20:34:16 +0000
committersr55 <[email protected]>2020-01-04 16:28:06 +0000
commitb6df6dfce4105d89de37530c0da0a9d6dce5de00 (patch)
tree828c67ebda88e6e4098d403997677b09e143fc98 /win/CS/HandBrakeWPF/Themes/Controls/GroupBoxDark.xaml
parent0f015f10e0f37cee2031dd5231b9af26a361a711 (diff)
WinGui: Some cosmetic improvements to the Dark Theme. (Toolbar and GroupBox's get a minor improvement)1.3.1release_1.3.1
Diffstat (limited to 'win/CS/HandBrakeWPF/Themes/Controls/GroupBoxDark.xaml')
-rw-r--r--win/CS/HandBrakeWPF/Themes/Controls/GroupBoxDark.xaml31
1 files changed, 31 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Themes/Controls/GroupBoxDark.xaml b/win/CS/HandBrakeWPF/Themes/Controls/GroupBoxDark.xaml
new file mode 100644
index 000000000..949aa67df
--- /dev/null
+++ b/win/CS/HandBrakeWPF/Themes/Controls/GroupBoxDark.xaml
@@ -0,0 +1,31 @@
+<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
+
+ <Style TargetType="GroupBox">
+ <Setter Property="Template">
+ <Setter.Value>
+ <ControlTemplate TargetType="GroupBox">
+ <Grid>
+ <Grid.RowDefinitions>
+ <RowDefinition Height="Auto" />
+ <RowDefinition Height="*" />
+ </Grid.RowDefinitions>
+ <Border Grid.Row="0" BorderThickness="1,1,1,0" Background="Transparent" BorderBrush="{DynamicResource Ui.Ultralight}">
+ <Border.Resources>
+ <Style TargetType="{x:Type Label}">
+ <Setter Property="Foreground" Value="White"/>
+ <Setter Property="VerticalAlignment" Value="Center"/>
+ <Setter Property="FontWeight" Value="Bold" />
+ </Style>
+ </Border.Resources>
+ <!--<ContentPresenter Margin="4" ContentSource="Header" RecognizesAccessKey="True" />-->
+ <TextBlock Text="{Binding Header, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type GroupBox}}}" FontWeight="Bold" Margin="5,5,0,0" />
+ </Border>
+ <Border Grid.Row="1" BorderThickness="1,0,1,1" BorderBrush="{DynamicResource Ui.Ultralight}" Background="Transparent">
+ <ContentPresenter Margin="4" />
+ </Border>
+ </Grid>
+ </ControlTemplate>
+ </Setter.Value>
+ </Setter>
+ </Style>
+</ResourceDictionary> \ No newline at end of file