Skip to content

Commit

Permalink
Fix AccessText (in Buttons) font family for WASM
Browse files Browse the repository at this point in the history
  • Loading branch information
SKProCH committed Mar 24, 2024
1 parent bf031e3 commit 8bde2fe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions Material.Styles/MaterialToolKit.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<ResourceInclude Source="avares://Material.Ripple/Theme.axaml" />

<!-- Avalonia controls -->
<ResourceInclude Source="avares://Material.Styles/Resources/Themes/AccessText.axaml" />
<ResourceInclude Source="avares://Material.Styles/Resources/Themes/AdornerLayer.axaml" />
<ResourceInclude Source="avares://Material.Styles/Resources/Themes/AutoCompleteBox.axaml" />
<ResourceInclude Source="avares://Material.Styles/Resources/Themes/Button.axaml" />
Expand Down
10 changes: 10 additions & 0 deletions Material.Styles/Resources/Themes/AccessText.axaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<ControlTheme x:Key="MaterialAccessText"
TargetType="AccessText">
<Setter Property="FontFamily" Value="{StaticResource MaterialDesignFonts}" />
</ControlTheme>

<ControlTheme x:Key="{x:Type AccessText}" TargetType="AccessText"
BasedOn="{StaticResource MaterialAccessText}" />
</ResourceDictionary>

0 comments on commit 8bde2fe

Please sign in to comment.