|
@@ -3,10 +3,11 @@
|
|
public static class PixiEditorSettings
|
|
public static class PixiEditorSettings
|
|
{
|
|
{
|
|
private const string PixiEditor = "PixiEditor";
|
|
private const string PixiEditor = "PixiEditor";
|
|
-
|
|
|
|
|
|
+
|
|
public static class Palettes
|
|
public static class Palettes
|
|
{
|
|
{
|
|
- public static LocalSetting<IEnumerable<string>> FavouritePalettes { get; } = LocalSetting.NonOwned<IEnumerable<string>>(PixiEditor);
|
|
|
|
|
|
+ public static LocalSetting<IEnumerable<string>> FavouritePalettes { get; } =
|
|
|
|
+ LocalSetting.NonOwned<IEnumerable<string>>(PixiEditor);
|
|
}
|
|
}
|
|
|
|
|
|
public static class Update
|
|
public static class Update
|
|
@@ -22,16 +23,18 @@ public static class PixiEditorSettings
|
|
|
|
|
|
public static LocalSetting<string> PoEditorApiKey { get; } = new($"{PixiEditor}:POEditor_API_Key");
|
|
public static LocalSetting<string> PoEditorApiKey { get; } = new($"{PixiEditor}:POEditor_API_Key");
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
public static class Tools
|
|
public static class Tools
|
|
{
|
|
{
|
|
public static SyncedSetting<bool> EnableSharedToolbar { get; } = SyncedSetting.NonOwned<bool>(PixiEditor);
|
|
public static SyncedSetting<bool> EnableSharedToolbar { get; } = SyncedSetting.NonOwned<bool>(PixiEditor);
|
|
|
|
|
|
- public static SyncedSetting<RightClickMode> RightClickMode { get; } = SyncedSetting.NonOwned<RightClickMode>(PixiEditor);
|
|
|
|
-
|
|
|
|
|
|
+ public static SyncedSetting<RightClickMode> RightClickMode { get; } =
|
|
|
|
+ SyncedSetting.NonOwned<RightClickMode>(PixiEditor);
|
|
|
|
+
|
|
public static SyncedSetting<bool> IsPenModeEnabled { get; } = SyncedSetting.NonOwned<bool>(PixiEditor);
|
|
public static SyncedSetting<bool> IsPenModeEnabled { get; } = SyncedSetting.NonOwned<bool>(PixiEditor);
|
|
|
|
|
|
- public static SyncedSetting<string> PrimaryToolset { get; } = SyncedSetting.NonOwned<string>(PixiEditor, "PAINT_TOOLSET");
|
|
|
|
|
|
+ public static SyncedSetting<string> PrimaryToolset { get; } =
|
|
|
|
+ SyncedSetting.NonOwned<string>(PixiEditor, "PAINT_TOOLSET");
|
|
}
|
|
}
|
|
|
|
|
|
public static class File
|
|
public static class File
|
|
@@ -39,12 +42,13 @@ public static class PixiEditorSettings
|
|
public static SyncedSetting<int> DefaultNewFileWidth { get; } = SyncedSetting.NonOwned(PixiEditor, 64);
|
|
public static SyncedSetting<int> DefaultNewFileWidth { get; } = SyncedSetting.NonOwned(PixiEditor, 64);
|
|
|
|
|
|
public static SyncedSetting<int> DefaultNewFileHeight { get; } = SyncedSetting.NonOwned(PixiEditor, 64);
|
|
public static SyncedSetting<int> DefaultNewFileHeight { get; } = SyncedSetting.NonOwned(PixiEditor, 64);
|
|
-
|
|
|
|
- public static LocalSetting<IEnumerable<string>> RecentlyOpened { get; } = LocalSetting.NonOwned<IEnumerable<string>>(PixiEditor, []);
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ public static LocalSetting<IEnumerable<string>> RecentlyOpened { get; } =
|
|
|
|
+ LocalSetting.NonOwned<IEnumerable<string>>(PixiEditor, []);
|
|
|
|
+
|
|
public static SyncedSetting<int> MaxOpenedRecently { get; } = SyncedSetting.NonOwned(PixiEditor, 8);
|
|
public static SyncedSetting<int> MaxOpenedRecently { get; } = SyncedSetting.NonOwned(PixiEditor, 8);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
public static class StartupWindow
|
|
public static class StartupWindow
|
|
{
|
|
{
|
|
public static SyncedSetting<bool> ShowStartupWindow { get; } = SyncedSetting.NonOwned(PixiEditor, true);
|
|
public static SyncedSetting<bool> ShowStartupWindow { get; } = SyncedSetting.NonOwned(PixiEditor, true);
|
|
@@ -53,9 +57,10 @@ public static class PixiEditorSettings
|
|
|
|
|
|
public static SyncedSetting<bool> NewsPanelCollapsed { get; } = SyncedSetting.NonOwned<bool>(PixiEditor);
|
|
public static SyncedSetting<bool> NewsPanelCollapsed { get; } = SyncedSetting.NonOwned<bool>(PixiEditor);
|
|
|
|
|
|
- public static SyncedSetting<IEnumerable<int>> LastCheckedNewsIds { get; } = SyncedSetting.NonOwned<IEnumerable<int>>(PixiEditor);
|
|
|
|
|
|
+ public static SyncedSetting<IEnumerable<int>> LastCheckedNewsIds { get; } =
|
|
|
|
+ SyncedSetting.NonOwned<IEnumerable<int>>(PixiEditor);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
public static class Discord
|
|
public static class Discord
|
|
{
|
|
{
|
|
public static SyncedSetting<bool> EnableRichPresence { get; } = SyncedSetting.NonOwned(PixiEditor, true);
|
|
public static SyncedSetting<bool> EnableRichPresence { get; } = SyncedSetting.NonOwned(PixiEditor, true);
|
|
@@ -74,12 +79,32 @@ public static class PixiEditorSettings
|
|
|
|
|
|
public static class Scene
|
|
public static class Scene
|
|
{
|
|
{
|
|
- public static SyncedSetting<bool> AutoScaleBackground { get; } = SyncedSetting.NonOwned(PixiEditor, PreferencesConstants.AutoScaleBackgroundDefault, PreferencesConstants.AutoScaleBackground);
|
|
|
|
- public static SyncedSetting<double> CustomBackgroundScaleX { get; } = SyncedSetting.NonOwned(PixiEditor, PreferencesConstants.CustomBackgroundScaleDefault, PreferencesConstants.CustomBackgroundScaleX);
|
|
|
|
- public static SyncedSetting<double> CustomBackgroundScaleY { get; } = SyncedSetting.NonOwned(PixiEditor, PreferencesConstants.CustomBackgroundScaleDefault, PreferencesConstants.CustomBackgroundScaleY);
|
|
|
|
|
|
+ public static SyncedSetting<bool> AutoScaleBackground { get; } = SyncedSetting.NonOwned(PixiEditor,
|
|
|
|
+ PreferencesConstants.AutoScaleBackgroundDefault, PreferencesConstants.AutoScaleBackground);
|
|
|
|
+
|
|
|
|
+ public static SyncedSetting<double> CustomBackgroundScaleX { get; } = SyncedSetting.NonOwned(PixiEditor,
|
|
|
|
+ PreferencesConstants.CustomBackgroundScaleDefault, PreferencesConstants.CustomBackgroundScaleX);
|
|
|
|
+
|
|
|
|
+ public static SyncedSetting<double> CustomBackgroundScaleY { get; } = SyncedSetting.NonOwned(PixiEditor,
|
|
|
|
+ PreferencesConstants.CustomBackgroundScaleDefault, PreferencesConstants.CustomBackgroundScaleY);
|
|
|
|
|
|
- public static SyncedSetting<string> PrimaryBackgroundColor { get; } = SyncedSetting.NonOwned(PixiEditor, PreferencesConstants.PrimaryBackgroundColorDefault, PreferencesConstants.PrimaryBackgroundColor);
|
|
|
|
- public static SyncedSetting<string> SecondaryBackgroundColor { get; } = SyncedSetting.NonOwned(PixiEditor, PreferencesConstants.SecondaryBackgroundColorDefault, PreferencesConstants.SecondaryBackgroundColor);
|
|
|
|
|
|
+ public static SyncedSetting<string> PrimaryBackgroundColor { get; } = SyncedSetting.NonOwned(PixiEditor,
|
|
|
|
+ PreferencesConstants.PrimaryBackgroundColorDefault, PreferencesConstants.PrimaryBackgroundColor);
|
|
|
|
|
|
|
|
+ public static SyncedSetting<string> SecondaryBackgroundColor { get; } = SyncedSetting.NonOwned(PixiEditor,
|
|
|
|
+ PreferencesConstants.SecondaryBackgroundColorDefault, PreferencesConstants.SecondaryBackgroundColor);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public static class Performance
|
|
|
|
+ {
|
|
|
|
+ public static SyncedSetting<int> MaxBilinearSampleSize { get; } = SyncedSetting.NonOwned(
|
|
|
|
+ PixiEditor,
|
|
|
|
+ PreferencesConstants.MaxBilinearSampleSizeDefault,
|
|
|
|
+ PreferencesConstants.MaxBilinearSampleSize);
|
|
|
|
+
|
|
|
|
+ public static SyncedSetting<bool> DisablePreviews { get; } = SyncedSetting.NonOwned(
|
|
|
|
+ PixiEditor,
|
|
|
|
+ PreferencesConstants.DisablePreviewsDefault,
|
|
|
|
+ PreferencesConstants.DisablePreviews);
|
|
}
|
|
}
|
|
}
|
|
}
|