DesignerPreview changes
This commit is contained in:
@@ -18,18 +18,6 @@ public static class Program
|
||||
public static string AppDataRoot { get; private set; }
|
||||
public static string EnvironmentName { get; private set; }
|
||||
|
||||
static Program()
|
||||
{
|
||||
#if DEBUG
|
||||
InitDevelopment();
|
||||
#else
|
||||
InitRelease();
|
||||
#endif
|
||||
InitLogging();
|
||||
|
||||
Log.Logger.Information("Early app starting...");
|
||||
}
|
||||
|
||||
private static void InitDevelopment()
|
||||
{
|
||||
EnvironmentName = "Development";
|
||||
@@ -92,6 +80,15 @@ public static class Program
|
||||
[STAThread]
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
#if DEBUG
|
||||
InitDevelopment();
|
||||
#else
|
||||
InitRelease();
|
||||
#endif
|
||||
InitLogging();
|
||||
|
||||
Log.Logger.Information("Early app starting...");
|
||||
|
||||
AppDomain.CurrentDomain.FirstChanceException -= OnFirstChanceException;
|
||||
AppDomain.CurrentDomain.UnhandledException -= OnAppDomainUnhandledException;
|
||||
TaskScheduler.UnobservedTaskException -= OnTaskSchedulerUnobservedTaskException;
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace FileTime.GuiApp.ViewModels;
|
||||
public class MainWindowDesignViewModel : IMainWindowViewModel
|
||||
{
|
||||
public bool Loading => false;
|
||||
public IObservable<string?> MainFont { get; } = new BehaviorSubject<string?>("");
|
||||
public IObservable<string?> MainFont { get; } = new BehaviorSubject<string?>(null);
|
||||
public string Title => "FileTime Design Preview";
|
||||
public IGuiAppState AppState { get; }
|
||||
public IItemPreviewService ItemPreviewService { get; }
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
RequestedThemeVariant="Dark"
|
||||
Title="FileTime"
|
||||
TransparencyLevelHint="Blur"
|
||||
d:DataContext="vm:MainWindowDesignViewModel"
|
||||
d:DesignHeight="450"
|
||||
d:DesignWidth="800"
|
||||
mc:Ignorable="d"
|
||||
|
||||
Reference in New Issue
Block a user