mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-08-01 21:32:18 +02:00
Settings completion
This commit is contained in:
@@ -17,7 +17,7 @@ namespace UVtools.WPF
|
||||
public class App : Application
|
||||
{
|
||||
public static IThemeSelector? ThemeSelector { get; set; }
|
||||
|
||||
public static MainWindow MainWindow;
|
||||
public static FileFormat SlicerFile = null;
|
||||
|
||||
public override void Initialize()
|
||||
@@ -30,10 +30,11 @@ namespace UVtools.WPF
|
||||
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
|
||||
{
|
||||
UserSettings.Load();
|
||||
UserSettings.SetVersion();
|
||||
|
||||
ThemeSelector = Avalonia.ThemeManager.ThemeSelector.Create("Assets/Themes");
|
||||
ThemeSelector.LoadSelectedTheme("Assets/selected.theme");
|
||||
desktop.MainWindow = new MainWindow
|
||||
desktop.MainWindow = MainWindow = new MainWindow
|
||||
{
|
||||
//DataContext = Selector
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user