|
@@ -58,6 +58,10 @@ namespace PixiEditor.ViewModels
|
|
|
|
|
|
public DiscordViewModel DiscordViewModel { get; set; }
|
|
|
|
|
|
+#if DEBUG
|
|
|
+ public DebugViewModel DebugSubViewModel { get; set; }
|
|
|
+#endif
|
|
|
+
|
|
|
public BitmapManager BitmapManager { get; set; }
|
|
|
|
|
|
public PixelChangesController ChangesController { get; set; }
|
|
@@ -66,6 +70,16 @@ namespace PixiEditor.ViewModels
|
|
|
|
|
|
public IPreferences Preferences { get; set; }
|
|
|
|
|
|
+ public bool IsDebug
|
|
|
+ {
|
|
|
+ get =>
|
|
|
+#if DEBUG
|
|
|
+ true;
|
|
|
+#else
|
|
|
+ false;
|
|
|
+#endif
|
|
|
+ }
|
|
|
+
|
|
|
public ViewModelMain(IServiceProvider services)
|
|
|
{
|
|
|
Current = this;
|
|
@@ -97,6 +111,9 @@ namespace PixiEditor.ViewModels
|
|
|
DocumentSubViewModel = new DocumentViewModel(this);
|
|
|
MiscSubViewModel = new MiscViewModel(this);
|
|
|
DiscordViewModel = new DiscordViewModel(this, "764168193685979138");
|
|
|
+#if DEBUG
|
|
|
+ DebugSubViewModel = new DebugViewModel(this);
|
|
|
+#endif
|
|
|
|
|
|
ShortcutController = new ShortcutController
|
|
|
{
|
|
@@ -146,7 +163,7 @@ namespace PixiEditor.ViewModels
|
|
|
new Shortcut(Key.F2, LayersSubViewModel.RenameLayerCommand, BitmapManager.ActiveDocument?.ActiveLayerGuid),
|
|
|
|
|
|
// View
|
|
|
- new Shortcut(Key.OemTilde, ViewportSubViewModel.ToggleGridLinesCommand, modifier: ModifierKeys.Control)
|
|
|
+ new Shortcut(Key.OemTilde, ViewportSubViewModel.ToggleGridLinesCommand, modifier: ModifierKeys.Control),
|
|
|
}
|
|
|
};
|
|
|
BitmapManager.PrimaryColor = ColorsSubViewModel.PrimaryColor;
|