From 3fe073e40563d03ed7ea9911e6076f20a74ba64f Mon Sep 17 00:00:00 2001 From: rabbitism Date: Tue, 24 Jan 2023 13:32:36 +0800 Subject: [PATCH] fix: fix flyout default foreground. --- src/Semi.Avalonia/Controls/FlyoutPresenter.axaml | 4 +++- src/Semi.Avalonia/Themes/Light/Flyout.axaml | 6 ++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Semi.Avalonia/Controls/FlyoutPresenter.axaml b/src/Semi.Avalonia/Controls/FlyoutPresenter.axaml index 651916d..f39e3ee 100644 --- a/src/Semi.Avalonia/Controls/FlyoutPresenter.axaml +++ b/src/Semi.Avalonia/Controls/FlyoutPresenter.axaml @@ -12,6 +12,7 @@ + @@ -37,7 +38,8 @@ VerticalContentAlignment="Stretch" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" - FontWeight="{TemplateBinding FontWeight}" /> + FontWeight="{TemplateBinding FontWeight}" + TextElement.Foreground="{TemplateBinding Foreground}" /> diff --git a/src/Semi.Avalonia/Themes/Light/Flyout.axaml b/src/Semi.Avalonia/Themes/Light/Flyout.axaml index ca7579e..bad27c3 100644 --- a/src/Semi.Avalonia/Themes/Light/Flyout.axaml +++ b/src/Semi.Avalonia/Themes/Light/Flyout.axaml @@ -3,10 +3,8 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=System.Runtime"> - + + 400 1 0 0 8 0 #1A000000