Skip to content

Commit

Permalink
Update and make ShowMeTheXaml actually visible
Browse files Browse the repository at this point in the history
  • Loading branch information
SKProCH committed Oct 22, 2023
1 parent c7db688 commit 45504bd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
<AvaloniaVersion>11.0.0</AvaloniaVersion>
<ShowMeTheXamlVersion>1.3.0</ShowMeTheXamlVersion>
<ShowMeTheXamlVersion>1.4.1</ShowMeTheXamlVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Avalonia" />
Expand Down
20 changes: 18 additions & 2 deletions Material.Demo/App.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,27 @@
xmlns:showMeTheXaml="clr-namespace:ShowMeTheXaml;assembly=ShowMeTheXaml.Avalonia"
xmlns:dialogHostAvalonia="clr-namespace:DialogHostAvalonia;assembly=DialogHost.Avalonia"
xmlns:avalonia="clr-namespace:Material.Icons.Avalonia;assembly=Material.Icons.Avalonia"
xmlns:grammars="clr-namespace:TextMateSharp.Grammars;assembly=TextMateSharp.Grammars"
xmlns:avaloniaEdit="clr-namespace:ShowMeTheXaml.Avalonia.AvaloniaEdit;assembly=ShowMeTheXaml.Avalonia.AvaloniaEdit"
x:Class="Material.Demo.App">
<Application.Resources>
<FontFamily x:Key="ContentControlThemeFontFamily">fonts:Inter#Inter, $Default</FontFamily>
</Application.Resources>
<Application.Styles>
<themes:MaterialTheme PrimaryColor="Purple" SecondaryColor="Indigo" />
<themes:MaterialTheme PrimaryColor="Purple" SecondaryColor="Indigo">
<themes:MaterialTheme.Resources>
<ResourceDictionary>
<ResourceDictionary.ThemeDictionaries>
<ResourceDictionary x:Key="{x:Static themes:Theme.MaterialLight}">
<grammars:ThemeName x:Key="AvaloniaEditThemeName">Light</grammars:ThemeName>
</ResourceDictionary>
<ResourceDictionary x:Key="{x:Static themes:Theme.MaterialDark}">
<grammars:ThemeName x:Key="AvaloniaEditThemeName">SolarizedDark</grammars:ThemeName>
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>
</ResourceDictionary>
</themes:MaterialTheme.Resources>
</themes:MaterialTheme>

<avalonia:MaterialIconStyles />
<dialogHostAvalonia:DialogHostStyles />
Expand All @@ -24,6 +39,7 @@
<Setter Property="VerticalAlignment" Value="Stretch" />
<Setter Property="ClipToBounds" Value="False" />
<Setter Property="Background" Value="Transparent" />
<Setter Property="avaloniaEdit:XamlDisplayAvaloniaEdit.CodeHighlightThemeName" Value="{DynamicResource AvaloniaEditThemeName}" />
</Style>

<Style Selector="showMeTheXaml|XamlDisplay /template/ Popup#XamlPopup > Border">
Expand All @@ -38,4 +54,4 @@
<Setter Property="Theme" Value="{StaticResource MaterialFlatButton}" />
</Style>
</Application.Styles>
</Application>
</Application>

0 comments on commit 45504bd

Please sign in to comment.