优化界面, 下班
This commit is contained in:
@@ -44,7 +44,43 @@ namespace GeekDesk.ViewModel
|
||||
private string customIconUrl; //自定义图标url
|
||||
private string customIconJsonUrl; //自定义图标json信息url
|
||||
|
||||
private bool blurEffect = false; //毛玻璃效果 默认否
|
||||
private double blurValue;
|
||||
|
||||
#region GetSet
|
||||
|
||||
public double BlurValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return blurValue;
|
||||
}
|
||||
set
|
||||
{
|
||||
blurValue = value;
|
||||
OnPropertyChanged("BlurValue");
|
||||
}
|
||||
}
|
||||
|
||||
public bool BlurEffect
|
||||
{
|
||||
get
|
||||
{
|
||||
return blurEffect;
|
||||
}
|
||||
set
|
||||
{
|
||||
blurEffect = value;
|
||||
if (blurEffect)
|
||||
{
|
||||
BlurValue = 100;
|
||||
} else
|
||||
{
|
||||
BlurValue = 0;
|
||||
}
|
||||
OnPropertyChanged("BlurEffect");
|
||||
}
|
||||
}
|
||||
public string CustomIconUrl
|
||||
{
|
||||
get
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using GeekDesk.Util;
|
||||
using GeekDesk.Constant;
|
||||
using GeekDesk.Util;
|
||||
using System;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.ComponentModel;
|
||||
@@ -25,6 +26,10 @@ namespace GeekDesk.ViewModel
|
||||
{
|
||||
get
|
||||
{
|
||||
if (menuGeometry == null)
|
||||
{
|
||||
return Constants.DEFAULT_MENU_GEOMETRY;
|
||||
}
|
||||
return menuGeometry;
|
||||
}
|
||||
set
|
||||
@@ -38,6 +43,10 @@ namespace GeekDesk.ViewModel
|
||||
{
|
||||
get
|
||||
{
|
||||
if (geometryColor == null)
|
||||
{
|
||||
return Constants.DEFAULT_MENU_GEOMETRY_COLOR;
|
||||
}
|
||||
return geometryColor;
|
||||
}
|
||||
set
|
||||
|
||||
Reference in New Issue
Block a user