Resources Cleanup

This commit is contained in:
Serge
2023-07-11 13:07:48 +02:00
parent 1d642a106b
commit 8a03b221e9
46 changed files with 296 additions and 526 deletions

View File

@@ -26,7 +26,6 @@ namespace GHelper.UI
private SizeF _barSize;
private PointF _barPos;
public int Step = 1;
public Color accentColor = Color.FromArgb(255, 58, 174, 239);
public Color borderColor = Color.White;
@@ -39,6 +38,7 @@ namespace GHelper.UI
DoubleBuffered = true;
}
private int _min = 0;
public int Min
{
@@ -61,6 +61,16 @@ namespace GHelper.UI
}
}
private int _step = 1;
public int Step
{
get => _step;
set
{
_step = value;
}
}
private int _value = 50;
public int Value
{
@@ -68,7 +78,7 @@ namespace GHelper.UI
set
{
value = (int)Math.Round(value / (float)Step) * Step;
value = (int)Math.Round(value / (float)_step) * _step;
if (_value != value)
{