[symbology] migrate graduated renderer color ramp widget #3815
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR migrates the graduated renderer from the deprecated color ramp combo box to the new color ramp button. I've also taken the opportunity to clean up the layout a bit (i.e. look at the now-aligned "color ramp" label, etc.).
The end result in one screenshot:
![untitled](https://cloud.githubusercontent.com/assets/1728657/20744143/b2f10cf8-b70c-11e6-88d8-66beaad5d5de.png)
Even with the addition of code to deal with the layout improvements, the PR results in fewer lines of code, thanks to the invert logic moved away from UI / renderer into the color ramp itself.
@nyalldawson , as always, your keen eye is most welcome.