* UIStyle:增加一个扩展函数

This commit is contained in:
Sunny 2022-01-02 12:58:21 +08:00
parent f435956522
commit 875c038799
2 changed files with 10 additions and 0 deletions

Binary file not shown.

View File

@ -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);