Replies: 2 comments
-
Yes, we should have more API on the colors. See issue #911
We don't want the slint language to become a general purpose programming language. I think this kindof things should be done in native code.
Could you elaborate on the problem? Is that a Bug? |
Beta Was this translation helpful? Give feedback.
-
Understandable - CSS color parsing is probably far too complex for most needs (that's what Most color picking GUIs nowadays support input in the form of hex colors (e.g.
As for the notes on the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I needed a way for a user to specify a color, and noticed that there isn't a standard color picker widget, so I figured I'd try writing my own. It'll do for now but it's a lot more limited than I would like it to be - unfortunately, I can't seem to find a good way to implement some features without falling back to native code:
Colors.hsv(float, int, int) -> color
,Colors.hsl(float, int, int) -> color
,Colors.css(string) -> color
, etc.SpinBox
es for the r,g,b component value labels, their value sometimes fails to update when moving the sliders. It seems to occur after editing the inner textbox. TheSpinBox
fluent component has an internal private function to update the inner text value but there doesn't seem to be a way for me to call it or cause it to trigger, so I have to just use labels for now.Beta Was this translation helpful? Give feedback.
All reactions