:fire:增加自定义背景保存

This commit is contained in:
BookerLiu
2025-03-07 10:59:39 +08:00
parent e74b6d75c4
commit 32e91d6d23
24 changed files with 461 additions and 47 deletions

View File

@@ -8,6 +8,8 @@ namespace GeekDesk.ViewModel
[Serializable]
public class GradientBGParam : INotifyPropertyChanged
{
private string id;
private string color1;
private string color2;
@@ -16,14 +18,26 @@ namespace GeekDesk.ViewModel
public GradientBGParam() { }
public GradientBGParam(string name, string color1, string color2)
public GradientBGParam(string id, string name, string color1, string color2)
{
this.id = id;
this.name = name;
this.color1 = color1;
this.color2 = color2;
}
public string Id
{
get
{
return id;
}
set
{
id = value;
OnPropertyChanged("Id");
}
}
public string Color1
{