增加上一次状态的保存和恢复

This commit is contained in:
ww-rm
2025-09-08 00:00:49 +08:00
parent e9951ed79a
commit 672a695b20
6 changed files with 52 additions and 100 deletions

View File

@@ -4,11 +4,14 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media;
namespace SpineViewer.Models
{
public class MainWindowLayoutModel
public class LastStateModel
{
#region
public double WindowLeft { get; set; }
public double WindowTop { get; set; }
public double WindowWidth { get; set; }
@@ -19,5 +22,19 @@ namespace SpineViewer.Models
public double ModelListRow0Height { get; set; }
public double ExplorerGridRow0Height { get; set; }
public double RightPanelGridRow0Height { get; set; }
#endregion
#region
public uint ResolutionX { get; set; } = 1500;
public uint ResolutionY { get; set; } = 1000;
public uint MaxFps { get; set; } = 30;
public float Speed { get; set; } = 1f;
public bool ShowAxis { get; set; } = true;
public Color BackgroundColor { get; set; } = Color.FromRgb(105, 105, 105);
#endregion
}
}

View File

@@ -71,22 +71,6 @@ namespace SpineViewer.Models
#endregion
#region
[ObservableProperty]
private uint _maxFps = 30;
[ObservableProperty]
private float _speed = 1f;
[ObservableProperty]
private bool _showAxis = true;
[ObservableProperty]
private Color _backgroundColor = Color.FromRgb(105, 105, 105);
#endregion
#region
[ObservableProperty]