RaUI/Source/ryControls/Gdu.WinFormUI/Theme/TrackBar/ThemeTrackBarTTPlayer.cs
如果当时 34a3ef3ed9 ### 2021-02-22更新
------
#### ryControls    V2.1.2102.2201
*.[新增]新加入Gdu.WinformUI控件。
2021-02-22 21:42:59 +08:00

37 lines
1.1 KiB
C#

using System;
using System.Drawing;
//忽略没有注释警告
#pragma warning disable 1591
namespace MGdu.WinFormUI
{
public class ThemeTrackBarTTPlayer : GMTrackBarThemeBase
{
public ThemeTrackBarTTPlayer()
{
ButtonLength1 = ButtonLength2 = 12;
ButtonOutterSpace2 = 6;
MainLineLength = 4;
DrawBackground = true;
BackColor = Color.FromArgb(49, 76, 111);
MainLineDrawBorder = false;
MainLineRadius = 2;
MainLineRange1BackColor = Color.FromArgb(154, 207, 242);
MainLineRange2BackColor = Color.FromArgb(66, 114, 176);
ThumbButtonBorderType = ButtonBorderType.Ellipse;
ThumbButtonColorTable = GetColorTable();
}
private ButtonColorTable GetColorTable()
{
ButtonColorTable table = new ButtonColorTable();
table.BackColorNormal = Color.White;
table.BackColorHover = Color.FromArgb(230, 230, 230);
table.BackColorPressed = Color.FromArgb(220, 220, 220);
return table;
}
}
}