123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- namespace PicView.Core.Config;
- public class AppSettings
- {
- public double Version { get; set; } = SettingsConfiguration.CurrentSettingsVersion;
- public WindowProperties? WindowProperties { get; set; }
- public UIProperties? UIProperties { get; set; }
- public Theme? Theme { get; set; }
- public Gallery? Gallery { get; set; }
- public ImageScaling? ImageScaling { get; set; }
- public Sorting? Sorting { get; set; }
- public Zoom? Zoom { get; set; }
- public StartUp? StartUp { get; set; }
- }
- public class WindowProperties
- {
- public double Top { get; set; } = 0;
- public double Left { get; set; } = 0;
- public double Width { get; set; } = 750;
- public double Height { get; set; } = 1024;
- public bool AutoFit { get; set; } = true;
- public bool TopMost { get; set; } = false;
- public bool Maximized { get; set; } = false;
- public bool Fullscreen { get; set; } = false;
- public bool KeepCentered { get; set; } = false;
- public double Margin { get; set; } = -1;
- }
- public class UIProperties
- {
- public string UserLanguage { get; set; } = "en";
- public bool ShowInterface { get; set; } = true;
- public bool ShowAltInterfaceButtons { get; set; } = true;
- public bool ShowBottomNavBar { get; set; } = true;
- public bool IsTaskbarProgressEnabled { get; set; } = true;
- public double NavSpeed { get; set; } = 0.3;
- public bool Looping { get; set; } = false;
- public int BgColorChoice { get; set; } = 0;
- public double SlideShowTimer { get; set; } = 5000;
- public bool OpenInSameWindow { get; set; } = false;
- public bool ShowConfirmationOnEsc { get; set; } = false;
- public bool ShowRecycleConfirmation { get; set; } = false;
- public bool ShowPermanentDeletionConfirmation { get; set; } = true;
- public bool IsConstrainBackgroundColorEnabled { get; set; } = true;
- }
- public class Theme
- {
- public bool Dark { get; set; } = true;
- public int ColorTheme { get; set; } = 3;
- public bool UseSystemTheme { get; set; } = false;
-
- public bool GlassTheme { get; set; } = false;
- }
- public class Gallery
- {
- public bool IsBottomGalleryShown { get; set; } = false;
- public bool ShowBottomGalleryInHiddenUI { get; set; } = false;
- public double BottomGalleryItemSize { get; set; } = 37;
- public double ExpandedGalleryItemSize { get; set; } = 23;
- public string FullGalleryStretchMode { get; set; } = "Uniform";
- public string BottomGalleryStretchMode { get; set; } = "Uniform";
- }
- public class ImageScaling
- {
- public bool StretchImage { get; set; } = false;
- public bool IsScalingSetToNearestNeighbor { get; set; } = false;
-
- public bool ShowImageSideBySide { get; set; } = false;
- }
- public class Zoom
- {
- public double ZoomSpeed { get; set; } = 0.3;
- public bool AvoidZoomingOut { get; set; } = false;
- public bool CtrlZoom { get; set; } = true;
- public bool HorizontalReverseScroll { get; set; } = true;
- public bool ScrollEnabled { get; set; } = false;
- public bool IsUsingTouchPad { get; set; } = false;
- }
- public class Sorting
- {
- public bool Name { get; set; } = true;
- public bool Size { get; set; } = false;
- public bool CreationTime { get; set; } = false;
- public bool LastAccessTime { get; set; } = false;
- public bool LastWriteTime { get; set; } = false;
- public bool Random { get; set; } = false;
- public bool Ascending { get; set; } = true;
- public int SortPreference { get; set; } = 0;
- public bool IncludeSubDirectories { get; set; } = false;
- }
- public class StartUp
- {
- public bool OpenLastFile { get; set; } = false;
- public bool OpenSpecificFile { get; set; } = false;
- public string OpenSpecificString { get; set; } = "";
- public string? LastFile { get; set; } = "";
- }
|