VPet/VPet-Simulator.Core/Handle/Function.cs

56 lines
1.4 KiB
C#
Raw Normal View History

2022-12-13 07:10:18 +00:00
using System;
2023-01-10 10:43:32 +00:00
using System.Windows;
using System.Windows.Media;
2022-12-13 07:10:18 +00:00
namespace VPet_Simulator.Core
{
public class Function
{
public static Random Rnd = new Random();
2023-01-10 10:43:32 +00:00
/// <summary>
/// 获取资源笔刷
/// </summary>
/// <param name="name"></param>
/// <returns></returns>
public static Brush ResourcesBrush(BrushType name)
{
2023-04-04 16:21:46 +00:00
return (Brush)Application.Current.Resources.MergedDictionaries[0][name.ToString()];
2023-01-10 10:43:32 +00:00
}
public enum BrushType
{
Primary,
PrimaryTrans,
PrimaryTrans4,
PrimaryTransA,
PrimaryTransE,
PrimaryLight,
PrimaryLighter,
PrimaryDark,
PrimaryDarker,
PrimaryText,
Secondary,
SecondaryTrans,
SecondaryTrans4,
SecondaryTransA,
SecondaryTransE,
SecondaryLight,
SecondaryLighter,
SecondaryDark,
SecondaryDarker,
SecondaryText,
DARKPrimary,
DARKPrimaryTrans,
DARKPrimaryTrans4,
DARKPrimaryTransA,
DARKPrimaryTransE,
DARKPrimaryLight,
DARKPrimaryLighter,
DARKPrimaryDark,
DARKPrimaryDarker,
DARKPrimaryText,
}
2022-12-13 07:10:18 +00:00
}
}