use dynamic resource instead of static for ActionButtonPointerOverBackgroundColor
MODIFY
WalletWasabi.Fluent/Controls/QuestionControl.axaml
WalletWasabi.Fluent/Controls/QuestionControl.axaml
<Setter Property="VerticalContentAlignment" Value="Stretch" />
<Setter Property="Template">
<ControlTemplate>
- <DockPanel VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}">
+ <DockPanel VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
+ HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}">
<DockPanel HorizontalAlignment="Stretch" MaxWidth="500" DockPanel.Dock="Bottom">
- <Button Name="PART_NoButton" HorizontalAlignment="Left" Content="No" Classes="yesNo" Command="{TemplateBinding NoCommand}" />
- <Button Name="PART_YesButton" HorizontalAlignment="Right" Content="Yes" Classes="yesNo" IsDefault="True" Command="{TemplateBinding YesCommand}" />
+ <Button Name="PART_NoButton" HorizontalAlignment="Left" Content="No" Classes="yesNo"
+ Command="{TemplateBinding NoCommand}" />
+ <Button Name="PART_YesButton" HorizontalAlignment="Right" Content="Yes" Classes="yesNo" IsDefault="True"
+ Command="{TemplateBinding YesCommand}" />
</DockPanel>
<ContentPresenter Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
</Style>
<!-- YesNo Button background -->
- <Style Selector="c|QuestionControl[HighlightButton=NoButton] /template/ Button#PART_NoButton,
+ <Style
+ Selector="c|QuestionControl[HighlightButton=NoButton] /template/ Button#PART_NoButton,
c|QuestionControl[HighlightButton=YesButton] /template/ Button#PART_YesButton,
c|QuestionControl[HighlightButton=Both] /template/ Button#PART_NoButton,
c|QuestionControl[HighlightButton=Both] /template/ Button#PART_YesButton">
</Style>
<!-- YesNo Button pointerover -->
- <Style Selector="c|QuestionControl[HighlightButton=YesButton] /template/ Button#PART_YesButton.yesNo:pointerover /template/ ContentPresenter,
+ <Style
+ Selector="c|QuestionControl[HighlightButton=YesButton] /template/ Button#PART_YesButton.yesNo:pointerover /template/ ContentPresenter,
c|QuestionControl[HighlightButton=NoButton] /template/ Button#PART_NoButton.yesNo:pointerover /template/ ContentPresenter,
c|QuestionControl[HighlightButton=Both] /template/ Button#PART_NoButton.yesNo:pointerover /template/ ContentPresenter,
c|QuestionControl[HighlightButton=Both] /template/ Button#PART_YesButton.yesNo:pointerover /template/ ContentPresenter">
- <Setter Property="Background" Value="{StaticResource ActionButtonPointerOverBackgroundColor}" />
+ <Setter Property="Background" Value="{DynamicResource ActionButtonPointerOverBackgroundColor}" />
</Style>
<!-- YesNo Button pressed -->
- <Style Selector="c|QuestionControl[HighlightButton=YesButton] /template/ Button#PART_YesButton.yesNo:pressed /template/ ContentPresenter,
+ <Style
+ Selector="c|QuestionControl[HighlightButton=YesButton] /template/ Button#PART_YesButton.yesNo:pressed /template/ ContentPresenter,
c|QuestionControl[HighlightButton=NoButton] /template/ Button#PART_NoButton.yesNo:pressed /template/ ContentPresenter,
c|QuestionControl[HighlightButton=Both] /template/ Button#PART_NoButton.yesNo:pressed /template/ ContentPresenter,
c|QuestionControl[HighlightButton=Both] /template/ Button#PART_YesButton.yesNo:pressed /template/ ContentPresenter">
- <Setter Property="Background" Value="{StaticResource ActionButtonPressedBackgroundColor}" />
+ <Setter Property="Background" Value="{DynamicResource ActionButtonPressedBackgroundColor}" />
</Style>
</Styles>
\ No newline at end of file

use dynamic resource instead of static for ActionButtonPointerOverBackgroundColor