diff --git a/src/Ursa.Themes.Semi/Compatibles/Icon.axaml b/src/Ursa.Themes.Semi/Compatibles/Icon.axaml index 8380cfc..72f1457 100644 --- a/src/Ursa.Themes.Semi/Compatibles/Icon.axaml +++ b/src/Ursa.Themes.Semi/Compatibles/Icon.axaml @@ -67,4 +67,7 @@ M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm5-8c.48 0 .94-.05 1.39-.14a7 7 0 1 1-7.78-9.72A7 7 0 0 0 17 15Z + + M21.35 4.27c.68.47.86 1.4.38 2.08l-10 14.5a1.5 1.5 0 0 1-2.33.17l-6.5-7a1.5 1.5 0 0 1 2.2-2.04l5.23 5.63 8.94-12.96a1.5 1.5 0 0 1 2.08-.38Z + \ No newline at end of file diff --git a/src/Ursa.Themes.Semi/Controls/AutoCompleteBox.axaml b/src/Ursa.Themes.Semi/Controls/AutoCompleteBox.axaml index c89ec6f..8daf73f 100644 --- a/src/Ursa.Themes.Semi/Controls/AutoCompleteBox.axaml +++ b/src/Ursa.Themes.Semi/Controls/AutoCompleteBox.axaml @@ -22,12 +22,13 @@ Watermark="{TemplateBinding Watermark}" /> - + + + + + + + + + + @@ -10,7 +19,7 @@ - + @@ -42,18 +51,18 @@ IsVisible="{TemplateBinding InnerLeftContent, Converter={x:Static ObjectConverters.IsNotNull}}" /> + x:Name="PlaceholderTextBlock" + Grid.Column="1" + Grid.ColumnSpan="2" + Margin="{TemplateBinding Padding}" + TextTrimming="CharacterEllipsis" + HorizontalAlignment="Left" + VerticalAlignment="Center" + Foreground="{TemplateBinding Foreground}" + IsHitTestVisible="False" + IsVisible="False" + Opacity="0.3" + Text="{TemplateBinding Watermark}" /> + CornerRadius="{DynamicResource ComboBoxPopupBoxCornerRadius}"> - - + + - + @@ -220,6 +230,7 @@ diff --git a/src/Ursa.Themes.Semi/Controls/TreeComboBox.axaml b/src/Ursa.Themes.Semi/Controls/TreeComboBox.axaml index 09c273b..e82a921 100644 --- a/src/Ursa.Themes.Semi/Controls/TreeComboBox.axaml +++ b/src/Ursa.Themes.Semi/Controls/TreeComboBox.axaml @@ -5,7 +5,20 @@ xmlns:converters1="clr-namespace:Ursa.Converters;assembly=Ursa" xmlns:iri="https://irihi.tech/shared" xmlns:u="https://irihi.tech/ursa"> - + + + + + + + + + + + + CornerRadius="{DynamicResource ComboBoxPopupBoxCornerRadius}"> IsDropDownOpenProperty = ComboBox.IsDropDownOpenProperty.AddOwner(); - public static readonly StyledProperty MaxDropdownHeightProperty = + public static readonly StyledProperty MaxDropDownHeightProperty = AvaloniaProperty.Register( - nameof(MaxDropdownHeight)); + nameof(MaxDropDownHeight)); public static readonly StyledProperty MaxSelectionBoxHeightProperty = AvaloniaProperty.Register( @@ -89,10 +89,10 @@ public class MultiComboBox : SelectingItemsControl, IInnerContentControl, IPopup set => SetValue(IsDropDownOpenProperty, value); } - public double MaxDropdownHeight + public double MaxDropDownHeight { - get => GetValue(MaxDropdownHeightProperty); - set => SetValue(MaxDropdownHeightProperty, value); + get => GetValue(MaxDropDownHeightProperty); + set => SetValue(MaxDropDownHeightProperty, value); } public double MaxSelectionBoxHeight