* 重构全局字体设置逻辑,以期可以在程序运行时设置全局字体
This commit is contained in:
parent
e322338506
commit
2a989eafcb
@ -202,7 +202,7 @@ namespace Sunny.UI
|
|||||||
/// 角标文字字体
|
/// 角标文字字体
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Description("角标文字字体"), Category("SunnyUI")]
|
[Description("角标文字字体"), Category("SunnyUI")]
|
||||||
[DefaultValue(typeof(Font), "微软雅黑, 9pt")]
|
[DefaultValue(typeof(Font), "宋体, 9pt")]
|
||||||
public Font TipsFont
|
public Font TipsFont
|
||||||
{
|
{
|
||||||
get { return tipsFont; }
|
get { return tipsFont; }
|
||||||
|
@ -149,7 +149,7 @@ namespace Sunny.UI
|
|||||||
private Font tipsFont = UIStyles.SubFont();
|
private Font tipsFont = UIStyles.SubFont();
|
||||||
|
|
||||||
[Description("角标文字字体"), Category("SunnyUI")]
|
[Description("角标文字字体"), Category("SunnyUI")]
|
||||||
[DefaultValue(typeof(Font), "微软雅黑, 9pt")]
|
[DefaultValue(typeof(Font), "宋体, 9pt")]
|
||||||
public Font TipsFont
|
public Font TipsFont
|
||||||
{
|
{
|
||||||
get { return tipsFont; }
|
get { return tipsFont; }
|
||||||
|
@ -354,7 +354,7 @@ namespace Sunny.UI
|
|||||||
/// 标题字体
|
/// 标题字体
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Description("标题字体"), Category("SunnyUI")]
|
[Description("标题字体"), Category("SunnyUI")]
|
||||||
[DefaultValue(typeof(Font), "微软雅黑, 12pt")]
|
[DefaultValue(typeof(Font), "宋体, 12pt")]
|
||||||
public Font DropMenuFont
|
public Font DropMenuFont
|
||||||
{
|
{
|
||||||
get => dropMenuFont;
|
get => dropMenuFont;
|
||||||
|
@ -335,7 +335,7 @@ namespace Sunny.UI
|
|||||||
private Font tipsFont = UIStyles.SubFont();
|
private Font tipsFont = UIStyles.SubFont();
|
||||||
|
|
||||||
[Description("角标文字字体"), Category("SunnyUI")]
|
[Description("角标文字字体"), Category("SunnyUI")]
|
||||||
[DefaultValue(typeof(Font), "微软雅黑, 9pt")]
|
[DefaultValue(typeof(Font), "宋体, 9pt")]
|
||||||
public Font TipsFont
|
public Font TipsFont
|
||||||
{
|
{
|
||||||
get => tipsFont;
|
get => tipsFont;
|
||||||
|
@ -152,7 +152,7 @@ namespace Sunny.UI
|
|||||||
private Font tipsFont = UIStyles.SubFont();
|
private Font tipsFont = UIStyles.SubFont();
|
||||||
|
|
||||||
[Description("角标文字字体"), Category("SunnyUI")]
|
[Description("角标文字字体"), Category("SunnyUI")]
|
||||||
[DefaultValue(typeof(Font), "微软雅黑, 9pt")]
|
[DefaultValue(typeof(Font), "宋体, 9pt")]
|
||||||
public Font TipsFont
|
public Font TipsFont
|
||||||
{
|
{
|
||||||
get { return tipsFont; }
|
get { return tipsFont; }
|
||||||
|
@ -49,10 +49,10 @@ namespace Sunny.UI
|
|||||||
InitOwnerDraw();
|
InitOwnerDraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
[DefaultValue(typeof(Font), "微软雅黑, 9pt"), Description("字体"), Category("SunnyUI")]
|
[DefaultValue(typeof(Font), "宋体, 9pt"), Description("字体"), Category("SunnyUI")]
|
||||||
public Font Font { get; set; } = new Font("宋体", 9);
|
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);
|
public Font TitleFont { get; set; } = new Font("宋体", 12);
|
||||||
|
|
||||||
[DefaultValue(typeof(Color), "239, 239, 239"), Description("边框颜色"), Category("SunnyUI")]
|
[DefaultValue(typeof(Color), "239, 239, 239"), Description("边框颜色"), Category("SunnyUI")]
|
||||||
|
@ -549,7 +549,7 @@ namespace Sunny.UI
|
|||||||
/// 标题字体
|
/// 标题字体
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Description("标题字体"), Category("SunnyUI")]
|
[Description("标题字体"), Category("SunnyUI")]
|
||||||
[DefaultValue(typeof(Font), "微软雅黑, 12pt")]
|
[DefaultValue(typeof(Font), "宋体, 12pt")]
|
||||||
public Font TitleFont
|
public Font TitleFont
|
||||||
{
|
{
|
||||||
get => titleFont;
|
get => titleFont;
|
||||||
|
@ -831,7 +831,7 @@ namespace Sunny.UI
|
|||||||
/// 标题字体
|
/// 标题字体
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Description("标题字体"), Category("SunnyUI")]
|
[Description("标题字体"), Category("SunnyUI")]
|
||||||
[DefaultValue(typeof(Font), "微软雅黑, 12pt")]
|
[DefaultValue(typeof(Font), "宋体, 12pt")]
|
||||||
public Font TitleFont
|
public Font TitleFont
|
||||||
{
|
{
|
||||||
get => titleFont;
|
get => titleFont;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user