Content-Length: 298137 | pFad | http://github.com/slint-ui/slint/pull/7859

F3 Add a brush widgets into the live-preview by hunger · Pull Request #7859 · slint-ui/slint · GitHub
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 a brush widgets into the live-preview #7859

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

hunger
Copy link
Member

@hunger hunger commented Mar 14, 2025

This is the first attempt at a brush widget. It still has several problems (I would not want this in 1.10.1 in this state!).

Problems:

  • You need to use any of the secondary UI elements before the gradient preview becomes fully functional
  • The widget does not work well in the property editor: Any gradient you add using the widget is considered "too complex" and is shown as a code widget the next time round
  • The widget is not keyboard friendly at all

I also expect some opposition to the JSON representation for our gradients I picked in the first change: I wanted something machine-readable for those, while we go for strings elsewhere.

@hunger hunger requested review from FloVanGH and ogoffart and removed request for FloVanGH March 14, 2025 13:23
@hunger hunger force-pushed the tobias/push-vxvtumlrzrzy branch from 1aaf170 to fdc7263 Compare March 14, 2025 13:29
hunger and others added 9 commits March 14, 2025 17:48
Add gradients to the list of types that can be read from
JSON and serialized to JSON.
... and add helper code to enable the backend to set/show
Brush information.
... including adding/removing values and such. Whoho.
It now works, provided the first thing you do is
to drag one of the color sliders ;-)
@hunger hunger force-pushed the tobias/push-vxvtumlrzrzy branch from 6847819 to 13f055f Compare March 14, 2025 18:19
Copy link
Member

@szecket szecket left a comment

Choose a reason for hiding this comment

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

aside from the drag not working until pressing enter on a text field, I think it looks really good and works really well, especially on the more interactive data tab side

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








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/slint-ui/slint/pull/7859

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy