增加上一次状态的保存和恢复
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user