mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
136 lines
6.5 KiB
XML
136 lines
6.5 KiB
XML
<ResourceDictionary
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:pu="https://opensource.panuon.com/wpf-ui">
|
|
<Style
|
|
x:Key="AddButton"
|
|
BasedOn="{StaticResource {x:Type Button}}"
|
|
TargetType="Button">
|
|
<Setter Property="Background" Value="{StaticResource DARKPrimary}" />
|
|
<Setter Property="pu:ButtonHelper.ShadowColor" Value="{StaticResource ShadowColor}" />
|
|
<Setter Property="FontSize" Value="24" />
|
|
<Setter Property="Padding" Value="10" />
|
|
<Setter Property="Margin" Value="10" />
|
|
<Setter Property="pu:ButtonHelper.CornerRadius" Value="24" />
|
|
</Style>
|
|
<Style
|
|
x:Key="Button_Cancel"
|
|
BasedOn="{StaticResource ThemedButtonStyle}"
|
|
TargetType="Button">
|
|
<Setter Property="Background" Value="{StaticResource PrimaryLight}" />
|
|
<Setter Property="Foreground" Value="{StaticResource SecondaryText}" />
|
|
</Style>
|
|
<Style
|
|
x:Key="Button_HiddenOnTagNull"
|
|
BasedOn="{StaticResource ThemedButtonStyle}"
|
|
TargetType="Button">
|
|
<Setter Property="Visibility" Value="Hidden" />
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding Tag, RelativeSource={RelativeSource Mode=Self}}" Value="{x:Null}">
|
|
<Setter Property="Visibility" Value="Visible" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
<Style
|
|
x:Key="Button_CollapsedOnTagNull"
|
|
BasedOn="{StaticResource ThemedButtonStyle}"
|
|
TargetType="Button">
|
|
<Setter Property="Visibility" Value="Collapsed" />
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding Tag, RelativeSource={RelativeSource Mode=Self}}" Value="{x:Null}">
|
|
<Setter Property="Visibility" Value="Visible" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
<Style
|
|
x:Key="TextBlock_Wrap"
|
|
BasedOn="{StaticResource {x:Type TextBlock}}"
|
|
TargetType="TextBlock">
|
|
<Setter Property="TextWrapping" Value="Wrap" />
|
|
<Setter Property="ToolTip" Value="{Binding Text, RelativeSource={RelativeSource Mode=Self}}" />
|
|
</Style>
|
|
<Style
|
|
x:Key="TextBlock_Center"
|
|
BasedOn="{StaticResource {x:Type TextBlock}}"
|
|
TargetType="TextBlock">
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
<Setter Property="HorizontalAlignment" Value="Center" />
|
|
<Setter Property="ToolTip" Value="{Binding Text, RelativeSource={RelativeSource Mode=Self}}" />
|
|
</Style>
|
|
<Style
|
|
x:Key="TextBlock_LeftCenter"
|
|
BasedOn="{StaticResource {x:Type TextBlock}}"
|
|
TargetType="TextBlock">
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
<Setter Property="HorizontalAlignment" Value="Left" />
|
|
<Setter Property="ToolTip" Value="{Binding Text, RelativeSource={RelativeSource Mode=Self}}" />
|
|
</Style>
|
|
<Style
|
|
x:Key="TextBox_Wrap"
|
|
BasedOn="{StaticResource {x:Type TextBox}}"
|
|
TargetType="TextBox">
|
|
<Setter Property="TextWrapping" Value="Wrap" />
|
|
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
|
<Setter Property="VerticalContentAlignment" Value="Top" />
|
|
<Setter Property="ToolTip" Value="{Binding Text, RelativeSource={RelativeSource Mode=Self}}" />
|
|
</Style>
|
|
<Style
|
|
x:Key="TextBox_Center"
|
|
BasedOn="{StaticResource {x:Type TextBox}}"
|
|
TargetType="TextBox">
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
<Setter Property="HorizontalAlignment" Value="Center" />
|
|
<Setter Property="ToolTip" Value="{Binding Text, RelativeSource={RelativeSource Mode=Self}}" />
|
|
</Style>
|
|
<Style
|
|
x:Key="TextBox_LeftCenter"
|
|
BasedOn="{StaticResource {x:Type TextBox}}"
|
|
TargetType="TextBox">
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
<Setter Property="HorizontalAlignment" Value="Left" />
|
|
<Setter Property="ToolTip" Value="{Binding Text, RelativeSource={RelativeSource Mode=Self}}" />
|
|
</Style>
|
|
<Style x:Key="WindowXStyle" TargetType="pu:WindowX">
|
|
<Setter Property="pu:WindowXCaption.Background" Value="{DynamicResource DARKPrimary}" />
|
|
<Setter Property="pu:WindowXCaption.Foreground" Value="{DynamicResource DARKPrimaryText}" />
|
|
</Style>
|
|
<Style
|
|
x:Key="Menu_Style"
|
|
BasedOn="{StaticResource {x:Static pu:StyleKeys.MenuStyle}}"
|
|
TargetType="Menu">
|
|
<Setter Property="Height" Value="NaN" />
|
|
<Setter Property="Margin" Value="0" />
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
<Setter Property="Foreground" Value="{DynamicResource DARKPrimaryText}" />
|
|
<Setter Property="Background" Value="{DynamicResource DARKPrimary}" />
|
|
<Setter Property="pu:MenuHelper.CornerRadius" Value="4" />
|
|
|
|
<Setter Property="pu:DropDownHelper.CornerRadius" Value="4" />
|
|
<!-- -->
|
|
<Setter Property="pu:MenuHelper.TopLevelItemsBorderThickness" Value="0" />
|
|
<Setter Property="pu:MenuHelper.TopLevelItemsPadding" Value="5,0,5,0" />
|
|
<Setter Property="pu:MenuHelper.TopLevelItemsMargin" Value="0" />
|
|
<Setter Property="pu:MenuHelper.TopLevelItemsHorizontalContentAlignment" Value="Center" />
|
|
<Setter Property="pu:MenuHelper.TopLevelItemsBackground" Value="{DynamicResource DARKPrimary}" />
|
|
<Setter Property="pu:MenuHelper.TopLevelItemsForeground" Value="{DynamicResource DARKPrimaryText}" />
|
|
<!-- -->
|
|
<Setter Property="pu:MenuHelper.SubmenuItemsBorderThickness" Value="0" />
|
|
<Setter Property="pu:MenuHelper.SubmenuItemsBorderBrush" Value="{DynamicResource DARKPrimary}" />
|
|
<Setter Property="pu:MenuHelper.SubmenuItemsWidth" Value="NaN" />
|
|
<Setter Property="pu:MenuHelper.SubmenuItemsHeight" Value="NaN" />
|
|
<Setter Property="pu:MenuHelper.SubmenuItemsPadding" Value="5" />
|
|
<Setter Property="pu:MenuHelper.SubmenuItemsMargin" Value="0" />
|
|
<!--<Setter Property="pu:MenuHelper.SubmenuItemsCornerRadius" Value="4" />-->
|
|
<Setter Property="pu:MenuHelper.SubmenuItemsBackground" Value="{DynamicResource DARKPrimary}" />
|
|
<Setter Property="pu:MenuHelper.SubmenuItemsForeground" Value="{DynamicResource DARKPrimaryText}" />
|
|
<!--<Setter Property="Width" Value="NaN" />
|
|
<Setter Property="Height" Value="NaN" />
|
|
<Setter Property="Padding" Value="5" />
|
|
<Setter Property="Background" Value="{DynamicResource BackgroundColor}" />
|
|
<Setter Property="Foreground" Value="{DynamicResource ForegroundColor}" />
|
|
<Setter Property="FontSize" Value="{DynamicResource BodyFontSize}" />
|
|
<Setter Property="pu:MenuItemHelper.HoverBackground" Value="{DynamicResource HoverColor}" />
|
|
<Setter Property="pu:MenuItemHelper.ClickBackground" Value="{DynamicResource ClickColor}" />
|
|
<Setter Property="pu:MenuItemHelper.CheckedBackground" Value="{DynamicResource CheckedColor}" />-->
|
|
</Style>
|
|
</ResourceDictionary> |