I want to create a label with a distinctive background so that the actual box of the label is visible. However whatever color I define as background (color 6 in the color scheme) is only drawn right behind the text but not in the actual label box. As a result the text looks rather ugly with an outline in the color of the defined background and the label box is invisible:
Left with “opaque background”, right with background defined in color 6.
I am aware of this post and setting the “opaque background” option does indeed make the text look good, but it does not solve the problem of the missing background in the box:
Not a solution but an easy workaround: I am now using Textfields instead of Labels what allows me to set the proper background color and with .setTextEditEnabled(false) they behave like non-editable labels.