Skip to content

Commit 40b8ddf

Browse files
devel0jp2masa
andauthored
upgrade avalonia pkg to 0.10.0 (#186)
* upgrade avalonia pkg to 0.10.0-rc1 * Revert "upgrade avalonia pkg to 0.10.0-rc1" to verify CI build without patch This reverts commit 272d3db. * Revert "Revert "upgrade avalonia pkg to 0.10.0-rc1" to verify CI build without patch" This reverts commit 12797de. * updated uri as of 0.10.0-rc1 * avalonia 0.10.0 Co-authored-by: jp2masa <[email protected]> * Update CSharpMath.Avalonia.Example/App.xaml use FluentTheme xaml constructor Co-authored-by: jp2masa <[email protected]> Co-authored-by: jp2masa <[email protected]>
1 parent 2431d7d commit 40b8ddf

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CSharpMath.Avalonia.Example/App.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
<Application.Styles>
66

7-
<StyleInclude Source="avares://Avalonia.Themes.Fluent/Accents/FluentLight.xaml"/>
7+
<FluentTheme Mode="Light" />
88

99
<StyleInclude Source="/Styles.xaml"/>
1010

1111
</Application.Styles>
1212

13-
</Application>
13+
</Application>

CSharpMath.Avalonia.Example/MainView.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ public class MainView : UserControl {
88
public MainView() {
99
InitializeComponent();
1010

11-
var light = (Styles)AvaloniaXamlLoader.Load(new System.Uri("avares://Avalonia.Themes.Fluent/Accents/FluentLight.xaml"));
12-
var dark = (Styles)AvaloniaXamlLoader.Load(new System.Uri("avares://Avalonia.Themes.Fluent/Accents/FluentDark.xaml"));
11+
var light = (Styles)AvaloniaXamlLoader.Load(new System.Uri("avares://Avalonia.Themes.Fluent/FluentLight.xaml"));
12+
var dark = (Styles)AvaloniaXamlLoader.Load(new System.Uri("avares://Avalonia.Themes.Fluent/FluentDark.xaml"));
1313
var themes = this.Find<RadioButton>("lightThemeRbn");
1414
themes.Checked += (sender, e) => Application.Current.Styles[0] = light;
1515
themes.Unchecked += (sender, e) => Application.Current.Styles[0] = dark;

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<!--Don't apply to Typography projects-->
1616
<PropertyGroup Condition="$(MSBuildProjectName.StartsWith('CSharpMath'))">
1717
<!--CSharpMath-specific properties for centralized control of values-->
18-
<AvaloniaVersion>0.10.0-preview5</AvaloniaVersion>
18+
<AvaloniaVersion>0.10.0</AvaloniaVersion>
1919

2020
<!--C# code properties-->
2121
<LangVersion>preview</LangVersion>

0 commit comments

Comments
 (0)