From 78eda2d45a276bd795484d2e481a74050b67eb78 Mon Sep 17 00:00:00 2001 From: snail1519 <1147412715@qq.com> Date: Tue, 25 Feb 2025 13:16:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DComboBox=E6=8E=A7?= =?UTF-8?q?=E4=BB=B6=E7=9A=84PlaceholderForeground=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Semi.Avalonia/Controls/ComboBox.axaml | 5 +++-- src/Semi.Avalonia/Themes/Dark/ComboBox.axaml | 1 + src/Semi.Avalonia/Themes/Light/ComboBox.axaml | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Semi.Avalonia/Controls/ComboBox.axaml b/src/Semi.Avalonia/Controls/ComboBox.axaml index 2b3fa59..243e496 100644 --- a/src/Semi.Avalonia/Controls/ComboBox.axaml +++ b/src/Semi.Avalonia/Controls/ComboBox.axaml @@ -12,7 +12,7 @@ BBB CCC - + AAA BBB CCC @@ -44,6 +44,7 @@ + @@ -65,7 +66,7 @@ HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" TextTrimming="CharacterEllipsis" - Foreground="{TemplateBinding Foreground}" + Foreground="{TemplateBinding PlaceholderForeground}" IsVisible="{TemplateBinding SelectionBoxItem,Converter={x:Static ObjectConverters.IsNull}}" Opacity="0.3" Text="{TemplateBinding PlaceholderText}" /> diff --git a/src/Semi.Avalonia/Themes/Dark/ComboBox.axaml b/src/Semi.Avalonia/Themes/Dark/ComboBox.axaml index 8294f86..cdfee41 100644 --- a/src/Semi.Avalonia/Themes/Dark/ComboBox.axaml +++ b/src/Semi.Avalonia/Themes/Dark/ComboBox.axaml @@ -1,5 +1,6 @@ + diff --git a/src/Semi.Avalonia/Themes/Light/ComboBox.axaml b/src/Semi.Avalonia/Themes/Light/ComboBox.axaml index 4df35d1..e658099 100644 --- a/src/Semi.Avalonia/Themes/Light/ComboBox.axaml +++ b/src/Semi.Avalonia/Themes/Light/ComboBox.axaml @@ -1,5 +1,6 @@ +