<@UBM6HQ2DN> pass a styleClass parameter to Langua...
# tornadofx
c
@fucata pass a styleClass parameter to LanguageSelector (say "english"). Then, the stylesheet will use this key in refining the styles. Like this in plain CSS syntax .english .language-selector-tile { background-image: img("uk_flag.png") } .spanish .language-selector-tile { background-image: img("spain_flag.png") }
f
@carlw Thanks. in typesafe css, it'll be s(english, language-selector-tile) { s(smaller-component/class inside) { background... } } ?
c
could be but you might refactor these styles if they start to build up and aren't all different with the different language selectors
f
I try to addClass (a) to determine the color when using LanguageSelector constructor to build the combobox but it doesn't work. I'm not sure right now if the issue is the cascading or if I added the class correctly