-
Wanted to ask about this before I opened any formal request about this. I'm in the process of fixing up some of the built-in controls to look nicer - this includes the scrollbars and One of the nicest CSS props for this sort of this is
I know content isn't currently supported, but without having it being supported, is there currently something I could (ab)use in RmlUi that would give me similar behavior? My first thought was a decorator, ie something like:
I don't know if there's enough stuff exposed that would allow me to efficiently do this, though, and it would probably make it harder to do things like setting font-effects that might be required depending on the styling we're aiming for. The nice thing about |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hey, I must have missed this post originally. I agree that the But I quite like the idea of a decorator too. I am pretty sure we expose enough things. I suspect the simplest approach would be to interface directly with the font engine interface. That should be fairly straightforward for basic text rendering. It could perhaps be useful to interface with |
Beta Was this translation helpful? Give feedback.
-
An update on this one. Just added the
One difference from what was suggested is that it will inherit the font from its parent element instead of specifying it inline. See more here: https://mikke89.github.io/RmlUiDoc/pages/rcss/decorators/text.html |
Beta Was this translation helpful? Give feedback.
An update on this one. Just added the
text
decorator to support cases like this: 66d0b7cOne difference from what was suggested is that it will inherit the font from its parent element instead of specifying it inline. See more here: https://mikke89.github.io/RmlUiDoc/pages/rcss/decorators/text.html