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

Added Distribute Horizontally for cpal #4210

Open
wants to merge 1 commit into
base: 0_15
Choose a base branch
from

Conversation

1Prototype1
Copy link

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.

Added a button to distribute the color markers in palette equally
@blazoncek
Copy link
Collaborator

Thanks. Can you provide screenshot of the outcome?

@1Prototype1
Copy link
Author

Before (Added color markers randomly):

dist_before

After clicking distribute button:

dist_after

Copy link
Collaborator

@blazoncek blazoncek left a comment

Choose a reason for hiding this comment

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

Gets my approval.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants