AvaloniaUtils / DialogHost.Avalonia

AvaloniaUI control that provides a simple way to display a dialog with information or prompt the user when information is needed
MIT License
228 stars 15 forks source link

Material.Avalonia dark theme issue #13

Closed kirichenec closed 1 year ago

kirichenec commented 1 year ago

Background not changed with Material.Avalonia:

https://user-images.githubusercontent.com/7500203/200143912-54b217ac-fbef-4043-8bf3-0433d4b3ec62.mp4

Fixed it by this code:

<Style Selector="dialogHost|DialogHost Border#PART_ContentBackground">
    <Setter Property="Background" Value="{DynamicResource MaterialDesignPaper}"/>
</Style>

SystemControlBackgroundAltHighBrush => MaterialDesignPaper