* 重构全局字体设置逻辑,以期可以在程序运行时设置全局字体

This commit is contained in:
Sunny 2023-09-17 23:06:16 +08:00
parent e322338506
commit 2a989eafcb
8 changed files with 9 additions and 9 deletions

View File

@ -202,7 +202,7 @@ namespace Sunny.UI
/// 角标文字字体
/// </summary>
[Description("角标文字字体"), Category("SunnyUI")]
[DefaultValue(typeof(Font), "微软雅黑, 9pt")]
[DefaultValue(typeof(Font), "宋体, 9pt")]
public Font TipsFont
{
get { return tipsFont; }

View File

@ -149,7 +149,7 @@ namespace Sunny.UI
private Font tipsFont = UIStyles.SubFont();
[Description("角标文字字体"), Category("SunnyUI")]
[DefaultValue(typeof(Font), "微软雅黑, 9pt")]
[DefaultValue(typeof(Font), "宋体, 9pt")]
public Font TipsFont
{
get { return tipsFont; }

View File

@ -354,7 +354,7 @@ namespace Sunny.UI
/// 标题字体
/// </summary>
[Description("标题字体"), Category("SunnyUI")]
[DefaultValue(typeof(Font), "微软雅黑, 12pt")]
[DefaultValue(typeof(Font), "宋体, 12pt")]
public Font DropMenuFont
{
get => dropMenuFont;

View File

@ -335,7 +335,7 @@ namespace Sunny.UI
private Font tipsFont = UIStyles.SubFont();
[Description("角标文字字体"), Category("SunnyUI")]
[DefaultValue(typeof(Font), "微软雅黑, 9pt")]
[DefaultValue(typeof(Font), "宋体, 9pt")]
public Font TipsFont
{
get => tipsFont;

View File

@ -152,7 +152,7 @@ namespace Sunny.UI
private Font tipsFont = UIStyles.SubFont();
[Description("角标文字字体"), Category("SunnyUI")]
[DefaultValue(typeof(Font), "微软雅黑, 9pt")]
[DefaultValue(typeof(Font), "宋体, 9pt")]
public Font TipsFont
{
get { return tipsFont; }

View File

@ -49,10 +49,10 @@ namespace Sunny.UI
InitOwnerDraw();
}
[DefaultValue(typeof(Font), "微软雅黑, 9pt"), Description("字体"), Category("SunnyUI")]
[DefaultValue(typeof(Font), "宋体, 9pt"), Description("字体"), Category("SunnyUI")]
public Font Font { get; set; } = new Font("宋体", 9);
[DefaultValue(typeof(Font), "微软雅黑, 12pt"), Description("标题字体"), Category("SunnyUI")]
[DefaultValue(typeof(Font), "宋体, 12pt"), Description("标题字体"), Category("SunnyUI")]
public Font TitleFont { get; set; } = new Font("宋体", 12);
[DefaultValue(typeof(Color), "239, 239, 239"), Description("边框颜色"), Category("SunnyUI")]

View File

@ -549,7 +549,7 @@ namespace Sunny.UI
/// 标题字体
/// </summary>
[Description("标题字体"), Category("SunnyUI")]
[DefaultValue(typeof(Font), "微软雅黑, 12pt")]
[DefaultValue(typeof(Font), "宋体, 12pt")]
public Font TitleFont
{
get => titleFont;

View File

@ -831,7 +831,7 @@ namespace Sunny.UI
/// 标题字体
/// </summary>
[Description("标题字体"), Category("SunnyUI")]
[DefaultValue(typeof(Font), "微软雅黑, 12pt")]
[DefaultValue(typeof(Font), "宋体, 12pt")]
public Font TitleFont
{
get => titleFont;