Skip to content

Commit

Permalink
Add ColorSlider for better UI
Browse files Browse the repository at this point in the history
  • Loading branch information
arkypita committed Dec 25, 2016
1 parent fcfbac7 commit ad747e7
Show file tree
Hide file tree
Showing 7 changed files with 1,359 additions and 79 deletions.
7 changes: 7 additions & 0 deletions LaserGRBL/LaserGRBL.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@
<DependentUpon>ColorProgressBar.cs</DependentUpon>
</Compile>
<Compile Include="UserControls\ColorProgressBarDesigner.cs" />
<Compile Include="UserControls\ColorSlider.cs" />
<Compile Include="UserControls\ColorSlider.Designer.cs">
<DependentUpon>ColorSlider.cs</DependentUpon>
</Compile>
<Compile Include="UserControls\CommandLog.cs">
<SubType>UserControl</SubType>
</Compile>
Expand Down Expand Up @@ -299,6 +303,9 @@
<EmbeddedResource Include="SplashScreenForm.resx">
<DependentUpon>SplashScreenForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UserControls\ColorSlider.resx">
<DependentUpon>ColorSlider.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UserControls\CommandLog.resx">
<DependentUpon>CommandLog.cs</DependentUpon>
</EmbeddedResource>
Expand Down
174 changes: 106 additions & 68 deletions LaserGRBL/RasterConverter/RasterToLaserForm.Designer.cs

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions LaserGRBL/RasterConverter/RasterToLaserForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,15 @@ private void IISizeH_CurrentValueChanged(object sender, int NewValue, bool ByUse

private static bool IsOdd(int value)
{ return value % 2 != 0; }

void OnRGBCBDoubleClick(object sender, EventArgs e)
{
((UserControls.ColorSlider)sender).Value = 100;
}
void OnThresholdDoubleClick(object sender, EventArgs e)
{
((UserControls.ColorSlider)sender).Value = 50;
}


}
Expand Down
42 changes: 42 additions & 0 deletions LaserGRBL/UserControls/ColorSlider.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ad747e7

Please sign in to comment.