mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
UI Tweaks
This commit is contained in:
@@ -84,6 +84,12 @@ public static class ControlHelper
|
||||
gb.ForeColor = RForm.foreMain;
|
||||
}
|
||||
|
||||
var pn = control as Panel;
|
||||
if (pn != null && pn.Name.Contains("Header"))
|
||||
{
|
||||
pn.BackColor = RForm.buttonSecond;
|
||||
}
|
||||
|
||||
var sl = control as Slider;
|
||||
if (sl != null)
|
||||
{
|
||||
@@ -91,7 +97,7 @@ public static class ControlHelper
|
||||
}
|
||||
|
||||
var chk = control as CheckBox;
|
||||
if (chk != null && chk.Padding.Right > 5)
|
||||
if (chk != null && chk.Padding.Right >= 10)
|
||||
{
|
||||
chk.BackColor = RForm.buttonSecond;
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace GHelper.UI
|
||||
private SizeF _barSize;
|
||||
private PointF _barPos;
|
||||
|
||||
private int _step = 5;
|
||||
public int Step = 1;
|
||||
|
||||
public Color accentColor = Color.FromArgb(255, 58, 174, 239);
|
||||
public Color borderColor = Color.White;
|
||||
@@ -68,7 +68,7 @@ namespace GHelper.UI
|
||||
set
|
||||
{
|
||||
|
||||
value = (int)Math.Round(value / (float)_step) * _step;
|
||||
value = (int)Math.Round(value / (float)Step) * Step;
|
||||
|
||||
if (_value != value)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user