fix(ui): set prompt-action resting color on ContentPresenter

The Fluent theme sets text color on the inner ContentPresenter, so setting
Foreground on the Button only took effect on hover. Move the normal-state
color onto the ContentPresenter so [Retry] shows green at rest.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
mika kuns
2026-06-05 08:58:26 +02:00
parent 07a9d07cf6
commit 561028e67b

View File

@@ -37,13 +37,14 @@
</Style> </Style>
<Style Selector="Button.prompt-action /template/ ContentPresenter"> <Style Selector="Button.prompt-action /template/ ContentPresenter">
<Setter Property="Background" Value="Transparent" /> <Setter Property="Background" Value="Transparent" />
<Setter Property="TextElement.Foreground" Value="{StaticResource TextMuteBrush}" />
</Style> </Style>
<Style Selector="Button.prompt-action:pointerover /template/ ContentPresenter"> <Style Selector="Button.prompt-action:pointerover /template/ ContentPresenter">
<Setter Property="Background" Value="Transparent" /> <Setter Property="Background" Value="Transparent" />
<Setter Property="TextElement.Foreground" Value="{StaticResource TextBrush}" /> <Setter Property="TextElement.Foreground" Value="{StaticResource TextBrush}" />
</Style> </Style>
<Style Selector="Button.prompt-action.accent"> <Style Selector="Button.prompt-action.accent /template/ ContentPresenter">
<Setter Property="Foreground" Value="{StaticResource AccentBrush}" /> <Setter Property="TextElement.Foreground" Value="{StaticResource AccentBrush}" />
</Style> </Style>
<Style Selector="Button.prompt-action.accent:pointerover /template/ ContentPresenter"> <Style Selector="Button.prompt-action.accent:pointerover /template/ ContentPresenter">
<Setter Property="TextElement.Foreground" Value="{StaticResource MossBrightBrush}" /> <Setter Property="TextElement.Foreground" Value="{StaticResource MossBrightBrush}" />