Skip to content

Commit

Permalink
Don't use StyleInclude for old simple theme
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkatz6 committed May 25, 2022
1 parent 174b10d commit 8c15dba
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 16 deletions.
5 changes: 2 additions & 3 deletions samples/BindingDemo/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="BindingDemo.App">
<Application.Styles>
<StyleInclude Source="avares://Avalonia.Themes.Default/DefaultTheme.xaml"/>
<StyleInclude Source="avares://Avalonia.Themes.Default/Accents/BaseLight.xaml"/>
<SimpleTheme />
</Application.Styles>
</Application>
</Application>
3 changes: 1 addition & 2 deletions samples/PlatformSanityChecks/App.xaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Application xmlns="https://github.com/avaloniaui">
<Application.Styles>
<StyleInclude Source="resm:Avalonia.Themes.Default.DefaultTheme.xaml?assembly=Avalonia.Themes.Default"/>
<StyleInclude Source="resm:Avalonia.Themes.Default.Accents.BaseLight.xaml?assembly=Avalonia.Themes.Default"/>
<SimpleTheme />
</Application.Styles>
</Application>
3 changes: 1 addition & 2 deletions samples/Previewer/App.xaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Application xmlns="https://github.com/avaloniaui">
<Application.Styles>
<StyleInclude Source="resm:Avalonia.Themes.Default.DefaultTheme.xaml?assembly=Avalonia.Themes.Default"/>
<StyleInclude Source="resm:Avalonia.Themes.Default.Accents.BaseLight.xaml?assembly=Avalonia.Themes.Default"/>
<SimpleTheme />
</Application.Styles>
</Application>
3 changes: 1 addition & 2 deletions samples/VirtualizationDemo/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="VirtualizationDemo.App">
<Application.Styles>
<StyleInclude Source="avares://Avalonia.Themes.Default/DefaultTheme.xaml"/>
<StyleInclude Source="avares://Avalonia.Themes.Default/Accents/BaseLight.xaml"/>
<SimpleTheme />
</Application.Styles>
</Application>
3 changes: 1 addition & 2 deletions samples/interop/Direct3DInteropSample/App.paml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<Application xmlns="https://github.com/avaloniaui">
<Application.Styles>
<StyleInclude Source="resm:Avalonia.Themes.Default.DefaultTheme.xaml?assembly=Avalonia.Themes.Default"/>
<StyleInclude Source="resm:Avalonia.Themes.Default.Accents.BaseLight.xaml?assembly=Avalonia.Themes.Default"/>
<SimpleTheme />
</Application.Styles>
</Application>
3 changes: 1 addition & 2 deletions samples/interop/NativeEmbedSample/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="NativeEmbedSample.App">
<Application.Styles>
<StyleInclude Source="avares://Avalonia.Themes.Default/DefaultTheme.xaml"/>
<StyleInclude Source="avares://Avalonia.Themes.Default/Accents/BaseLight.xaml"/>
<SimpleTheme />
</Application.Styles>
</Application>
3 changes: 3 additions & 0 deletions src/Avalonia.Themes.Default/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
using Avalonia.Metadata;

[assembly: XmlnsDefinition("https://github.com/avaloniaui", "Avalonia.Themes.Default")]
4 changes: 1 addition & 3 deletions tests/Avalonia.DesignerSupport.TestApp/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Application.Styles>
<StyleInclude Source="avares://Avalonia.Themes.Default/DefaultTheme.xaml" />
<StyleInclude Source="avares://Avalonia.Themes.Default/Accents/Base.xaml" />
<StyleInclude Source="avares://Avalonia.Themes.Default/Accents/BaseLight.xaml" />
<SimpleTheme />
</Application.Styles>
</Application>

0 comments on commit 8c15dba

Please sign in to comment.