Hey guys, I am struggling with some Problems with ...
# tornadofx
n
Hey guys, I am struggling with some Problems with css in FX. I use the rowExtender on a table view and give it a whitish background. When selecting the entry in the table and opening the expander I did not find a way to change the text color of the label (see following GIF). Any Idea? Thanks!
Here you can see my problem
Ok I found a way - I needed to set textFill on the label instead of the hbox - that seams to work 🙂. My case was a bit more complicated (I used a fieldset instead of a plane label) but with some magic I was able to access the label and set the text to black
👍 1
a
@Nico Smeenk you can also change the text if you add styling to that component with
focus { }
when the text is clicked!
n
Ill try that - Thanks!
I can't find where I can use
focus { }
- is it inside of
style { }
? I feel like I miss something obvious 😉
Copy code
label ("test") {
            //here?
            style {
                //here?
            }
        }
a
@Nico Smeenk hey, I totally apologize I may have thrown you off - try this instead in your stylesheet
Copy code
s(label) {
     // whatever
   ]