Re: [External] : Re: UI elements sizing in Modena.css

2024-07-10 Thread Pedro Duque Vieira
I don't know the internals of the JavaFX CSS parser but regarding the CSS variable spec itself we could start by simply supporting numeric values as well as colors. This would already allow developers to use variables anywhere which would simplify and make managing stylesheets easier. On Wed, Jul

Re: [External] : Re: UI elements sizing in Modena.css

2024-07-10 Thread Andy Goryachev
I agree - having CSS variables will definitely help. Personally, I would rather see a better way to create stylesheets programmatically, bypassing the whole parsing routine, but I am sure a lot of people would be more comfortable if things were similar to web css. Enabling CSS variables seems

Re: [External] : Re: UI elements sizing in Modena.css

2024-07-09 Thread Andy Goryachev
Yeah, I thought that it might be possible to define properties for sizes similarly to colors, and some earlier attempts seemed to indicate that it might work. It does not, unless the sizes are fixed (e.g. -fx-size-1px: 1px; ) The real solution, as you mentioned, would be to add capability t