check point
This commit is contained in:
24
framework/MaterialSkin.Core/Controls/MaterialLabel.cs
Normal file
24
framework/MaterialSkin.Core/Controls/MaterialLabel.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.ComponentModel;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace MaterialSkin.Controls
|
||||
{
|
||||
public class MaterialLabel : Label, IMaterialControl
|
||||
{
|
||||
[Browsable(false)]
|
||||
public int Depth { get; set; }
|
||||
[Browsable(false)]
|
||||
public MaterialSkinManager SkinManager => MaterialSkinManager.Instance;
|
||||
[Browsable(false)]
|
||||
public MouseState MouseState { get; set; }
|
||||
protected override void OnCreateControl()
|
||||
{
|
||||
base.OnCreateControl();
|
||||
|
||||
ForeColor = SkinManager.GetPrimaryTextColor();
|
||||
Font = SkinManager.ROBOTO_REGULAR_11;
|
||||
|
||||
BackColorChanged += (sender, args) => ForeColor = SkinManager.GetPrimaryTextColor();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user