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

Simple two-stop text gradients #734

Merged
merged 3 commits into from
Jan 20, 2025
Merged

Simple two-stop text gradients #734

merged 3 commits into from
Jan 20, 2025

Conversation

alexop1000
Copy link
Contributor

@alexop1000 alexop1000 commented Jan 19, 2025

Adds support for a simple gradient between two colors.
You can change size and angle. The UI fits how the rest of the program looks.

- Introduced gradient properties in FontFormat: enabled state, start color, end color, angle, and size.
- Implemented gradient handling functions in fontformat_commands.py.
- Updated funcmaps.py to include new gradient handlers.
- Enhanced FontFormatPanel in text_panel.py with UI controls for gradient settings (enable checkbox, color pickers, angle slider, size slider).
- Modified TextBlkItem in textitem.py to support gradient rendering in the paint method.
- Ensured gradient properties are preserved during font format updates.

This commit enhances the text formatting capabilities by allowing users to apply gradients to text elements, improving visual customization options.
@alexop1000 alexop1000 marked this pull request as draft January 20, 2025 11:07
@alexop1000 alexop1000 marked this pull request as ready for review January 20, 2025 11:39
@alexop1000
Copy link
Contributor Author

@dmMaze Ready for review 👍

@dmMaze dmMaze merged commit 2708612 into dmMaze:dev Jan 20, 2025
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