- Material Pair에 layout 적용
- Trend Graph에 Force, Velocity 추가
This commit is contained in:
10
Theme.cs
10
Theme.cs
@@ -2,6 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
@@ -15,7 +16,6 @@ namespace friction
|
||||
public static Color Forecolor = Color.FromArgb(255, 235, 235, 235);
|
||||
|
||||
public static Color Green = Color.LimeGreen;
|
||||
//public static Color Yellow = Color.Gold;
|
||||
public static Color Yellow = Color.FromArgb(255, 255, 165, 0);
|
||||
public static Color Red = Color.OrangeRed;
|
||||
public static Color Gray = Color.DarkGray;
|
||||
@@ -37,6 +37,10 @@ namespace friction
|
||||
ctrl.ColumnHeadersDefaultCellStyle.ForeColor = Forecolor;
|
||||
ctrl.RowHeadersDefaultCellStyle.BackColor = Backcolor;
|
||||
ctrl.RowHeadersDefaultCellStyle.ForeColor = Forecolor;
|
||||
|
||||
typeof(DataGridView).InvokeMember("DoubleBuffered",
|
||||
BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.SetProperty,
|
||||
null, ctrl, new object[] { true });
|
||||
}
|
||||
|
||||
public static void Apply(ListView ctrl)
|
||||
@@ -50,6 +54,10 @@ namespace friction
|
||||
(sender, e) => ListViewHeaderDraw(sender, e, Backcolor, Forecolor)
|
||||
);
|
||||
ctrl.DrawItem += new DrawListViewItemEventHandler(ListViewBodyDraw);
|
||||
|
||||
typeof(ListView).InvokeMember("DoubleBuffered",
|
||||
BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.SetProperty,
|
||||
null, ctrl, new object[] { true });
|
||||
}
|
||||
|
||||
private static void ListViewHeaderDraw(object sender, DrawListViewColumnHeaderEventArgs e, Color backColor, Color foreColor)
|
||||
|
||||
Reference in New Issue
Block a user