You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I am trying to customize some special effects in Slint, for example:
Making a menu that plays an overlay animation when expanded;
Making a button that can be highlighted by position on approach;
These ran into difficulties. For this, I've thought of many options and still don't have a clue -
For the first: at first, I tried adding a mask to the border-color, or overlaying an Image layer with a mask animation for it; later, I tried using colorize in Image to make the source act as alpha.
For the second one: I tried calculating the angle of the cursor from its own center to colorize the stroke as @linear-gradient, but due to the inability to get the position of the cursor and the fact that the TouchArea doesn't allow click-throughs.
So, are these requirements impossible in Slint? If possible, I'm very curious to know what the thinking is.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Recently I am trying to customize some special effects in Slint, for example:
These ran into difficulties. For this, I've thought of many options and still don't have a clue -
border-color
, or overlaying anImage
layer with a mask animation for it; later, I tried usingcolorize
inImage
to make thesource
act as alpha.@linear-gradient
, but due to the inability to get the position of the cursor and the fact that theTouchArea
doesn't allow click-throughs.So, are these requirements impossible in Slint? If possible, I'm very curious to know what the thinking is.
Beta Was this translation helpful? Give feedback.
All reactions