core icon indicating copy to clipboard operation
core copied to clipboard

Resolve label link styling and event structure

Open kkoreilly opened this issue 1 year ago • 3 comments

kkoreilly avatar Jan 08 '24 20:01 kkoreilly

make a LabelLinks struct, put Stylers, Listeners in it, and be done with it. it really doesn't need a full Widget object per link, right?

rcoreilly avatar Jan 22 '24 03:01 rcoreilly

There are significant issues with just doing that: the event manager needs to be aware of the labels and handle long hover events at that point; otherwise, it is impossible to trigger long hover events at the right time. Also, the tooltips created for links do not get cleared correctly. Also, even if you have style objects for each link, it is unclear how to pass them to the renderer, as we hand over links to paint immediately.

kkoreilly avatar Feb 07 '24 18:02 kkoreilly

One option for this is to have a real widget that doesn't render anything overlayed for each link in the appropriate position.

kkoreilly avatar Feb 21 '24 00:02 kkoreilly