*
This commit is contained in:
parent
3a042a1798
commit
eafc4ddab3
BIN
Bin/SunnyUI.dll
BIN
Bin/SunnyUI.dll
Binary file not shown.
BIN
Bin/SunnyUI.pdb
BIN
Bin/SunnyUI.pdb
Binary file not shown.
Binary file not shown.
@ -105,19 +105,6 @@ namespace Sunny.UI
|
||||
}
|
||||
|
||||
protected override void OnPaintFore(Graphics g, GraphicsPath path)
|
||||
{
|
||||
if (RightToLeft == RightToLeft.Yes)
|
||||
{
|
||||
//设置按钮标题位置
|
||||
Padding = new Padding(Padding.Left, Padding.Top, Padding.Right- _imageSize - _imageInterval * 2, Padding.Bottom);
|
||||
|
||||
//填充文字
|
||||
Color color = foreColor;
|
||||
color = Enabled ? color : UIDisableColor.Fore;
|
||||
|
||||
g.DrawString(Text, Font, color, Size, Padding, ContentAlignment.MiddleLeft);
|
||||
}
|
||||
else
|
||||
{
|
||||
//设置按钮标题位置
|
||||
Padding = new Padding(_imageSize + _imageInterval * 2, Padding.Top, Padding.Right, Padding.Bottom);
|
||||
@ -128,7 +115,6 @@ namespace Sunny.UI
|
||||
|
||||
g.DrawString(Text, Font, color, Size, Padding, ContentAlignment.MiddleLeft);
|
||||
}
|
||||
}
|
||||
|
||||
protected override void OnPaintFill(Graphics g, GraphicsPath path)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user