Merge pull request #488 from irihitech/semi
Upgrade Ursa-Semi theme to utilize Semi Design 11.2.1 latest design
This commit is contained in:
@@ -200,6 +200,7 @@
|
|||||||
<Grid Grid.Column="1">
|
<Grid Grid.Column="1">
|
||||||
<Border
|
<Border
|
||||||
BorderBrush="{DynamicResource SemiGrey1}"
|
BorderBrush="{DynamicResource SemiGrey1}"
|
||||||
|
Background="{DynamicResource SemiColorBackground1}"
|
||||||
BorderThickness="1"
|
BorderThickness="1"
|
||||||
ClipToBounds="True"
|
ClipToBounds="True"
|
||||||
CornerRadius="12">
|
CornerRadius="12">
|
||||||
|
|||||||
@@ -42,6 +42,7 @@
|
|||||||
<Grid Grid.Column="1" ClipToBounds="True">
|
<Grid Grid.Column="1" ClipToBounds="True">
|
||||||
<Border
|
<Border
|
||||||
BorderBrush="{DynamicResource SemiGrey1}"
|
BorderBrush="{DynamicResource SemiGrey1}"
|
||||||
|
Background="{DynamicResource SemiColorBackground1}"
|
||||||
BorderThickness="1"
|
BorderThickness="1"
|
||||||
ClipToBounds="True"
|
ClipToBounds="True"
|
||||||
CornerRadius="20">
|
CornerRadius="20">
|
||||||
|
|||||||
@@ -74,7 +74,7 @@
|
|||||||
Placement="BottomEdgeAlignedLeft"
|
Placement="BottomEdgeAlignedLeft"
|
||||||
PlacementTarget="{TemplateBinding}">
|
PlacementTarget="{TemplateBinding}">
|
||||||
<Border
|
<Border
|
||||||
Margin="8"
|
Margin="{DynamicResource ComboBoxPopupBorderMargin}"
|
||||||
Padding="8"
|
Padding="8"
|
||||||
Background="{DynamicResource ComboBoxPopupBackground}"
|
Background="{DynamicResource ComboBoxPopupBackground}"
|
||||||
BorderBrush="{DynamicResource ComboBoxPopupBorderBrush}"
|
BorderBrush="{DynamicResource ComboBoxPopupBorderBrush}"
|
||||||
|
|||||||
@@ -82,7 +82,7 @@
|
|||||||
Placement="BottomEdgeAlignedLeft"
|
Placement="BottomEdgeAlignedLeft"
|
||||||
PlacementTarget="Background">
|
PlacementTarget="Background">
|
||||||
<Border
|
<Border
|
||||||
Margin="8"
|
Margin="{DynamicResource ComboBoxPopupBorderMargin}"
|
||||||
Padding="8"
|
Padding="8"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
Background="{DynamicResource ComboBoxPopupBackground}"
|
Background="{DynamicResource ComboBoxPopupBackground}"
|
||||||
|
|||||||
@@ -73,7 +73,7 @@
|
|||||||
Placement="BottomEdgeAlignedLeft"
|
Placement="BottomEdgeAlignedLeft"
|
||||||
PlacementTarget="{TemplateBinding}">
|
PlacementTarget="{TemplateBinding}">
|
||||||
<Border
|
<Border
|
||||||
Margin="8"
|
Margin="{DynamicResource ComboBoxPopupBorderMargin}"
|
||||||
Padding="8"
|
Padding="8"
|
||||||
Background="{DynamicResource ComboBoxPopupBackground}"
|
Background="{DynamicResource ComboBoxPopupBackground}"
|
||||||
BorderBrush="{DynamicResource ComboBoxPopupBorderBrush}"
|
BorderBrush="{DynamicResource ComboBoxPopupBorderBrush}"
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
VerticalAlignment="{TemplateBinding VerticalAlignment}"
|
VerticalAlignment="{TemplateBinding VerticalAlignment}"
|
||||||
Classes="Shadow"
|
Classes="Shadow"
|
||||||
ClipToBounds="False"
|
ClipToBounds="False"
|
||||||
|
Background="{DynamicResource SemiColorBackground2}"
|
||||||
CornerRadius="{TemplateBinding CornerRadius}"
|
CornerRadius="{TemplateBinding CornerRadius}"
|
||||||
Focusable="True"
|
Focusable="True"
|
||||||
IsHitTestVisible="True"
|
IsHitTestVisible="True"
|
||||||
@@ -162,6 +163,7 @@
|
|||||||
VerticalAlignment="{TemplateBinding VerticalAlignment}"
|
VerticalAlignment="{TemplateBinding VerticalAlignment}"
|
||||||
BoxShadow="0 0 8 0 #1A000000"
|
BoxShadow="0 0 8 0 #1A000000"
|
||||||
Classes="Shadow"
|
Classes="Shadow"
|
||||||
|
Background="{DynamicResource SemiColorBackground2}"
|
||||||
ClipToBounds="False"
|
ClipToBounds="False"
|
||||||
CornerRadius="{TemplateBinding CornerRadius}"
|
CornerRadius="{TemplateBinding CornerRadius}"
|
||||||
Focusable="True"
|
Focusable="True"
|
||||||
@@ -463,7 +465,7 @@
|
|||||||
|
|
||||||
<ControlTheme x:Key="{x:Type u:DialogWindow}" TargetType="u:DialogWindow">
|
<ControlTheme x:Key="{x:Type u:DialogWindow}" TargetType="u:DialogWindow">
|
||||||
<Setter Property="Title" Value="{x:Null}" />
|
<Setter Property="Title" Value="{x:Null}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource BorderCardBackground}" />
|
<Setter Property="Background" Value="{DynamicResource SemiColorBackground2}" />
|
||||||
<Setter Property="TransparencyBackgroundFallback" Value="{DynamicResource WindowDefaultBackground}" />
|
<Setter Property="TransparencyBackgroundFallback" Value="{DynamicResource WindowDefaultBackground}" />
|
||||||
<Setter Property="Foreground" Value="{DynamicResource WindowDefaultForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource WindowDefaultForeground}" />
|
||||||
<Setter Property="FontSize" Value="{DynamicResource DefaultFontSize}" />
|
<Setter Property="FontSize" Value="{DynamicResource DefaultFontSize}" />
|
||||||
@@ -535,7 +537,7 @@
|
|||||||
|
|
||||||
<ControlTheme x:Key="{x:Type u:DefaultDialogWindow}" TargetType="u:DefaultDialogWindow">
|
<ControlTheme x:Key="{x:Type u:DefaultDialogWindow}" TargetType="u:DefaultDialogWindow">
|
||||||
<Setter Property="Title" Value="{x:Null}" />
|
<Setter Property="Title" Value="{x:Null}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource BorderCardBackground}" />
|
<Setter Property="Background" Value="{DynamicResource SemiColorBackground2}" />
|
||||||
<Setter Property="TransparencyBackgroundFallback" Value="{DynamicResource WindowDefaultBackground}" />
|
<Setter Property="TransparencyBackgroundFallback" Value="{DynamicResource WindowDefaultBackground}" />
|
||||||
<Setter Property="Foreground" Value="{DynamicResource WindowDefaultForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource WindowDefaultForeground}" />
|
||||||
<Setter Property="FontSize" Value="{DynamicResource DefaultFontSize}" />
|
<Setter Property="FontSize" Value="{DynamicResource DefaultFontSize}" />
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
Name="PART_Root"
|
Name="PART_Root"
|
||||||
Margin="{TemplateBinding Padding,
|
Margin="{TemplateBinding Padding,
|
||||||
Converter={x:Static c:ThicknessTakeConverter.Left}}"
|
Converter={x:Static c:ThicknessTakeConverter.Left}}"
|
||||||
|
Background="{DynamicResource SemiColorBackground2}"
|
||||||
Padding="0"
|
Padding="0"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
@@ -111,6 +112,7 @@
|
|||||||
Name="PART_Root"
|
Name="PART_Root"
|
||||||
Margin="{TemplateBinding Padding,
|
Margin="{TemplateBinding Padding,
|
||||||
Converter={x:Static c:ThicknessTakeConverter.Left}}"
|
Converter={x:Static c:ThicknessTakeConverter.Left}}"
|
||||||
|
Background="{DynamicResource SemiColorBackground2}"
|
||||||
Padding="0"
|
Padding="0"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<!-- Add Resources Here -->
|
<!-- Add Resources Here -->
|
||||||
<ControlTheme x:Key="{x:Type u:MessageBoxWindow}" TargetType="u:MessageBoxWindow">
|
<ControlTheme x:Key="{x:Type u:MessageBoxWindow}" TargetType="u:MessageBoxWindow">
|
||||||
<Setter Property="Title" Value="{x:Null}" />
|
<Setter Property="Title" Value="{x:Null}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource BorderCardBackground}" />
|
<Setter Property="Background" Value="{DynamicResource SemiColorBackground2}" />
|
||||||
<Setter Property="TransparencyBackgroundFallback" Value="{DynamicResource WindowDefaultBackground}" />
|
<Setter Property="TransparencyBackgroundFallback" Value="{DynamicResource WindowDefaultBackground}" />
|
||||||
<Setter Property="Foreground" Value="{DynamicResource WindowDefaultForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource WindowDefaultForeground}" />
|
||||||
<Setter Property="FontSize" Value="{DynamicResource DefaultFontSize}" />
|
<Setter Property="FontSize" Value="{DynamicResource DefaultFontSize}" />
|
||||||
@@ -178,6 +178,7 @@
|
|||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Classes="Shadow"
|
Classes="Shadow"
|
||||||
ClipToBounds="False"
|
ClipToBounds="False"
|
||||||
|
Background="{DynamicResource SemiColorBackground2}"
|
||||||
CornerRadius="{TemplateBinding CornerRadius}"
|
CornerRadius="{TemplateBinding CornerRadius}"
|
||||||
IsHitTestVisible="True"
|
IsHitTestVisible="True"
|
||||||
Theme="{DynamicResource CardBorder}">
|
Theme="{DynamicResource CardBorder}">
|
||||||
|
|||||||
@@ -110,13 +110,12 @@
|
|||||||
IsOpen="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsDropDownOpen, Mode=TwoWay}"
|
IsOpen="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=IsDropDownOpen, Mode=TwoWay}"
|
||||||
PlacementTarget="PART_RootGrid">
|
PlacementTarget="PART_RootGrid">
|
||||||
<Border
|
<Border
|
||||||
Margin="0,4"
|
Margin="{DynamicResource ComboBoxPopupBorderMargin}"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
Background="{DynamicResource ComboBoxPopupBackground}"
|
Background="{DynamicResource ComboBoxPopupBackground}"
|
||||||
BorderBrush="{DynamicResource ComboBoxPopupBorderBrush}"
|
BorderBrush="{DynamicResource ComboBoxPopupBorderBrush}"
|
||||||
BorderThickness="{DynamicResource ComboBoxPopupBorderThickness}"
|
BorderThickness="{DynamicResource ComboBoxPopupBorderThickness}"
|
||||||
BoxShadow="{DynamicResource ComboBoxPopupBoxShadow}"
|
BoxShadow="{DynamicResource ComboBoxPopupBoxShadow}"
|
||||||
ClipToBounds="True"
|
|
||||||
CornerRadius="6">
|
CornerRadius="6">
|
||||||
<DockPanel LastChildFill="True">
|
<DockPanel LastChildFill="True">
|
||||||
<ContentPresenter Content="{TemplateBinding PopupInnerTopContent}" DockPanel.Dock="Top"/>
|
<ContentPresenter Content="{TemplateBinding PopupInnerTopContent}" DockPanel.Dock="Top"/>
|
||||||
@@ -217,12 +216,8 @@
|
|||||||
<Setter Property="Cursor" Value="Hand" />
|
<Setter Property="Cursor" Value="Hand" />
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
<Setter Property="HorizontalContentAlignment" Value="Left" />
|
||||||
<Setter Property="VerticalContentAlignment" Value="Center" />
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
||||||
<Setter Property="FontSize" Value="{DynamicResource ListBoxItemCheckFontSize}" />
|
|
||||||
<Setter Property="CornerRadius" Value="{DynamicResource ListBoxItemCheckBoxCornerRadius}" />
|
|
||||||
<Setter Property="MinHeight" Value="32" />
|
<Setter Property="MinHeight" Value="32" />
|
||||||
<Setter Property="Foreground" Value="{DynamicResource ListBoxItemCheckForeground}" />
|
<Setter Property="Background" Value="{DynamicResource ComboBoxItemBackground}" />
|
||||||
<Setter Property="Background" Value="Transparent" />
|
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource ListBoxItemCheckDefaultBorderBrush}" />
|
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate TargetType="u:MultiComboBoxItem">
|
<ControlTemplate TargetType="u:MultiComboBoxItem">
|
||||||
<Border
|
<Border
|
||||||
@@ -235,11 +230,11 @@
|
|||||||
<PathIcon
|
<PathIcon
|
||||||
Name="CheckGlyph"
|
Name="CheckGlyph"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Width="{DynamicResource ListBoxItemCheckBoxGlyphWidth}"
|
Width="{DynamicResource CheckBoxBoxGlyphWidth}"
|
||||||
Height="{DynamicResource ListBoxItemCheckBoxGlyphHeight}"
|
Height="{DynamicResource CheckBoxBoxGlyphHeight}"
|
||||||
Margin="8,0"
|
Margin="8,0"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Data="{DynamicResource ListBoxItemCheckCheckGlyph}"
|
Data="{DynamicResource CheckBoxCheckGlyph}"
|
||||||
Opacity="0" />
|
Opacity="0" />
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
x:Name="ContentPresenter"
|
x:Name="ContentPresenter"
|
||||||
@@ -268,13 +263,13 @@
|
|||||||
<!-- Pointerover State -->
|
<!-- Pointerover State -->
|
||||||
<Style Selector="^:pointerover">
|
<Style Selector="^:pointerover">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource ComboBoxItemPointeroverForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource ComboBoxItemPointeroverForeground}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource ListBoxItemPointeroverBackground}" />
|
<Setter Property="Background" Value="{DynamicResource ComboBoxItemPointeroverBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<!-- Pressed State -->
|
<!-- Pressed State -->
|
||||||
<Style Selector="^:pressed">
|
<Style Selector="^:pressed">
|
||||||
<Setter Property="Foreground" Value="{DynamicResource ComboBoxItemPressedForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource ComboBoxItemPressedForeground}" />
|
||||||
<Setter Property="Background" Value="{DynamicResource ListBoxItemPressedBackground}" />
|
<Setter Property="Background" Value="{DynamicResource ComboBoxItemPressedBackground}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<!-- Selected State -->
|
<!-- Selected State -->
|
||||||
|
|||||||
@@ -159,13 +159,12 @@
|
|||||||
Placement="BottomEdgeAlignedLeft"
|
Placement="BottomEdgeAlignedLeft"
|
||||||
PlacementTarget="Background">
|
PlacementTarget="Background">
|
||||||
<Border
|
<Border
|
||||||
Margin="0,4"
|
Margin="{DynamicResource ComboBoxPopupBorderMargin}"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
Background="{DynamicResource ComboBoxPopupBackground}"
|
Background="{DynamicResource ComboBoxPopupBackground}"
|
||||||
BorderBrush="{DynamicResource ComboBoxPopupBorderBrush}"
|
BorderBrush="{DynamicResource ComboBoxPopupBorderBrush}"
|
||||||
BorderThickness="{DynamicResource ComboBoxPopupBorderThickness}"
|
BorderThickness="{DynamicResource ComboBoxPopupBorderThickness}"
|
||||||
BoxShadow="{DynamicResource ComboBoxPopupBoxShadow}"
|
BoxShadow="{DynamicResource ComboBoxPopupBoxShadow}"
|
||||||
ClipToBounds="True"
|
|
||||||
CornerRadius="6">
|
CornerRadius="6">
|
||||||
<DockPanel>
|
<DockPanel>
|
||||||
<StackPanel DockPanel.Dock="Bottom" IsVisible="{TemplateBinding NeedConfirmation}">
|
<StackPanel DockPanel.Dock="Bottom" IsVisible="{TemplateBinding NeedConfirmation}">
|
||||||
|
|||||||
@@ -83,13 +83,12 @@
|
|||||||
Placement="BottomEdgeAlignedLeft"
|
Placement="BottomEdgeAlignedLeft"
|
||||||
PlacementTarget="Background">
|
PlacementTarget="Background">
|
||||||
<Border
|
<Border
|
||||||
Margin="0,4"
|
Margin="{DynamicResource ComboBoxPopupBorderMargin}"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
Background="{DynamicResource ComboBoxPopupBackground}"
|
Background="{DynamicResource ComboBoxPopupBackground}"
|
||||||
BorderBrush="{DynamicResource ComboBoxPopupBorderBrush}"
|
BorderBrush="{DynamicResource ComboBoxPopupBorderBrush}"
|
||||||
BorderThickness="{DynamicResource ComboBoxPopupBorderThickness}"
|
BorderThickness="{DynamicResource ComboBoxPopupBorderThickness}"
|
||||||
BoxShadow="{DynamicResource ComboBoxPopupBoxShadow}"
|
BoxShadow="{DynamicResource ComboBoxPopupBoxShadow}"
|
||||||
ClipToBounds="True"
|
|
||||||
CornerRadius="6">
|
CornerRadius="6">
|
||||||
<DockPanel>
|
<DockPanel>
|
||||||
<StackPanel DockPanel.Dock="Bottom" IsVisible="{TemplateBinding NeedConfirmation}">
|
<StackPanel DockPanel.Dock="Bottom" IsVisible="{TemplateBinding NeedConfirmation}">
|
||||||
|
|||||||
@@ -111,12 +111,11 @@
|
|||||||
WindowManagerAddShadowHint="False">
|
WindowManagerAddShadowHint="False">
|
||||||
<Border
|
<Border
|
||||||
Name="PopupBorder"
|
Name="PopupBorder"
|
||||||
Margin="0,4"
|
Margin="{DynamicResource ComboBoxPopupBorderMargin}"
|
||||||
Background="{DynamicResource ComboBoxPopupBackground}"
|
Background="{DynamicResource ComboBoxPopupBackground}"
|
||||||
BorderBrush="{DynamicResource ComboBoxPopupBorderBrush}"
|
BorderBrush="{DynamicResource ComboBoxPopupBorderBrush}"
|
||||||
BorderThickness="{DynamicResource ComboBoxPopupBorderThickness}"
|
BorderThickness="{DynamicResource ComboBoxPopupBorderThickness}"
|
||||||
BoxShadow="{DynamicResource ComboBoxPopupBoxShadow}"
|
BoxShadow="{DynamicResource ComboBoxPopupBoxShadow}"
|
||||||
ClipToBounds="True"
|
|
||||||
CornerRadius="6">
|
CornerRadius="6">
|
||||||
<DockPanel LastChildFill="True">
|
<DockPanel LastChildFill="True">
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
<SolidColorBrush x:Key="OverlayDialogMaskBrush" Color="#FFA7ABB0" Opacity="0.2" />
|
<SolidColorBrush x:Key="OverlayDialogMaskBrush" Color="#FF16161A" Opacity="0.6" />
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
<SolidColorBrush x:Key="OverlayDialogMaskBrush" Color="#FF555B61" Opacity="0.2" />
|
<SolidColorBrush x:Key="OverlayDialogMaskBrush" Color="#FF16161A" Opacity="0.6" />
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
@@ -24,4 +24,6 @@
|
|||||||
<ResourceInclude Source="Toast.axaml" />
|
<ResourceInclude Source="Toast.axaml" />
|
||||||
<ResourceInclude Source="ToolBar.axaml" />
|
<ResourceInclude Source="ToolBar.axaml" />
|
||||||
</ResourceDictionary.MergedDictionaries>
|
</ResourceDictionary.MergedDictionaries>
|
||||||
|
<!-- This resource definition is from Semi Avalonia 11.2.1. This can be removed after Ursa dependency is higher than Avalonia 11.2.1 -->
|
||||||
|
<Thickness x:Key="ComboBoxPopupBorderMargin">4</Thickness>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
Reference in New Issue
Block a user