* UIStyle:增加一个扩展函数
This commit is contained in:
parent
f435956522
commit
875c038799
Binary file not shown.
@ -792,6 +792,16 @@ namespace Sunny.UI
|
||||
|
||||
public static class UIStyleHelper
|
||||
{
|
||||
/// <summary>
|
||||
/// 主题的调色板
|
||||
/// </summary>
|
||||
/// <param name="style"></param>
|
||||
/// <returns></returns>
|
||||
public static UIBaseStyle Colors(this UIStyle style)
|
||||
{
|
||||
return UIStyles.GetStyleColor(style);
|
||||
}
|
||||
|
||||
public static bool IsCustom(this UIStyle style)
|
||||
{
|
||||
return style.Equals(UIStyle.Custom);
|
||||
|
Loading…
x
Reference in New Issue
Block a user