Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
Coloryr committed Aug 8, 2024
1 parent ba45aa9 commit 524c0ca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/ColorMC.Gui/App.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ public override void OnFrameworkInitializationCompleted()

WindowManager.Init(ColorMCGui.RunDir);

if (ApplicationLifetime is ISingleViewApplicationLifetime singleViewPlatform)
{
singleViewPlatform.MainView = WindowManager.AllWindow;
}

if (ColorMCGui.RunType != RunType.AppBuilder)
{
Task.Run(() =>
Expand Down
7 changes: 6 additions & 1 deletion src/ColorMC.Gui/Manager/ThemeManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
using Avalonia.Media;
using Avalonia.Platform;
using Avalonia.Threading;
using ColorMC.Core.Objs;
using ColorMC.Core.Utils;
using ColorMC.Gui.Objs;
using ColorMC.Gui.Utils;

Expand Down Expand Up @@ -72,7 +74,10 @@ public static void Init()
}

LoadColor();
LoadFont();
if (SystemInfo.Os != OsType.Android)
{
LoadFont();
}

RgbColor.Load();
ColorSel.Load();
Expand Down

0 comments on commit 524c0ca

Please sign in to comment.