JetBrains / jewel

An implementation of the IntelliJ look and feels in Compose for Desktop
Apache License 2.0
760 stars 40 forks source link

InputField — placeholder should be drawn behind cursor #610

Closed rock3r closed 1 month ago

rock3r commented 1 month ago

In the inputFields' layout code (in both the TextField and TextArea decorators) we should make sure we draw the placeholder behind the BTF. This way the cursor will display in front of the placeholder text instead of behind it.

image

This should be as simple as ensuring the BTF has a higher z-order than the placeholder (either by setting an explicit zIndex, or implicitly by changing the order the components are added to the layout)