Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing actions #988

Merged
merged 11 commits into from Apr 4, 2018
Merged

Add missing actions #988

merged 11 commits into from Apr 4, 2018

Conversation

winder
Copy link
Owner

@winder winder commented Apr 3, 2018

Add missing actions:

  • Increase/Decrease/Multiply feed-rate/Z-step-size
  • Set Z step size to 10/1/0.1/0.01/0.001
  • Reset X/Y/Z actions

This resolves #984

@codecov-io
Copy link

codecov-io commented Apr 3, 2018

Codecov Report

Merging #988 into master will decrease coverage by 0.02%.
The diff coverage is 5.63%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #988      +/-   ##
============================================
- Coverage     29.72%   29.69%   -0.03%     
- Complexity      979      981       +2     
============================================
  Files           138      139       +1     
  Lines          9761     9778      +17     
  Branches        893      889       -4     
============================================
+ Hits           2901     2904       +3     
- Misses         6575     6590      +15     
+ Partials        285      284       -1
Impacted Files Coverage Δ Complexity Δ
...inder/universalgcodesender/AbstractController.java 61.71% <ø> (ø) 93 <0> (ø) ⬇️
...lwinder/universalgcodesender/model/GUIBackend.java 42.57% <ø> (ø) 50 <0> (ø) ⬇️
...illwinder/universalgcodesender/GrblController.java 54.26% <ø> (ø) 69 <0> (ø) ⬇️
...om/willwinder/universalgcodesender/MainWindow.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...desender/uielements/panels/MachineStatusPanel.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...nder/universalgcodesender/services/JogService.java 0% <0%> (ø) 0 <0> (ø) ⬇️
.../universalgcodesender/uielements/jog/JogPanel.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...com/willwinder/universalgcodesender/GrblUtils.java 70.64% <100%> (ø) 72 <0> (ø) ⬇️
...om/willwinder/universalgcodesender/model/Axis.java 100% <100%> (ø) 1 <1> (?)
...gcodesender/uielements/panels/SendStatusPanel.java 0% <0%> (ø) 0% <0%> (ø) ⬇️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e38325f...cb3ad64. Read the comment docs.

Copy link
Collaborator

@breiler breiler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow you are a machine Will. It looks nice, I made a comment feel free to ignore it! =)

@Override
public void actionPerformed(ActionEvent e) {
try {
backend.resetCoordinateToZero('Z');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is the old code, but I would love to see a enum or constant instead of using magic char.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea

@@ -4,7 +4,20 @@ if [ -f /Applications/Inkscape.app/Contents/Resources/bin/inkscape ]; then
alias inkscape="/Applications/Inkscape.app/Contents/Resources/bin/inkscape"
fi

# Make sure nobody is using black instead of blackish
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@breiler this PR is basically impossible to review now, I tweaked the export script to generate the _dark and _disabled_dark files. It does make the connect icon a little weird though, it will now have a teal border in dark mode since dark/_disabled_dark versions will be created.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dastultz I noticed that some icons used black and some used a very dark gray. Is this intentional? I converted everything to use the same dark gray color, the colors can be updated pretty easily now if we want to experiment.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm responsible for the dark gray color which is stolen from MacOSX. I wanted it to be more consistent with the dark gray panel and the menu text colors. If you don't approve I can change it back to black.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They both look black to me, I was just trying to make it consistent.

@winder winder merged commit 573aa11 into master Apr 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants