Support setting the gutter color of a Kobweb color for Color.rgb / Color.hsl calls #30
Labels
enhancement
New feature or request
maybe?
Not sure we'll do this, but thinking about it, and open for input.
For example, if you have something like this:
and you click on the red square, it brings up a color picker. Right now, we're ignoring the request to update the color if the user picks one.
The code to handle this would go in
KobwebColorProvider::setColorTo
, which is currently stubbed.We're not always in a situation where we can change the color, but we might try to update things when we can. It could be pretty cool to write
val x = Color.rgb(0, 0, 0)
and then use the color picker to figure out the correct value we want.We should support all the Kobweb color functions, specifically here: https://github.com/varabyte/kobweb/blob/14e9ccffb889907cb3ee9d94a0c3e90c3d33db74/frontend/kobweb-compose/src/jsMain/kotlin/com/varabyte/kobweb/compose/ui/graphics/Color.kt#L221
See also: https://github.com/JetBrains/intellij-community/blob/master/java/java-impl/src/com/intellij/codeInsight/daemon/impl/JavaColorProvider.java
The text was updated successfully, but these errors were encountered: