WLED icon indicating copy to clipboard operation
WLED copied to clipboard

Added Distribute Horizontally for cpal

Open 1Prototype1 opened this issue 1 year ago • 2 comments

This pull request includes enhancements to the wled00/data/cpal/cpal.htm file, primarily focusing on adding a "Distribute horizontally" feature for color markers in Custom Palette Editor. It also includes minor refactoring existing code to use these new SVG definitions.

New Functionality:

  • Added a "Distribute Horizontally" button to the palette editor, which allows users to distribute color markers equally across the gradient.

Code Refactoring:

  • Replaced inline SVG definition for trash with SVG icons definitions for better maintainability.

1Prototype1 avatar Oct 18 '24 19:10 1Prototype1

Thanks. Can you provide screenshot of the outcome?

blazoncek avatar Oct 20 '24 08:10 blazoncek

Before (Added color markers randomly):

dist_before

After clicking distribute button:

dist_after

1Prototype1 avatar Oct 20 '24 17:10 1Prototype1