Cableguy Expert Licensed User Longtime User Sep 12, 2015 #1 hi, I have this code line that works: MainForm.RootPane.Style = "-fx-background-color:#e8f5fc;" but since I am styling several nodes, I wanted to pass this code line to a CSS file, where I already have some styles, but I can't get it right; I have tried: .root .rootpane .root .pane Nothing seems to do the trick! Please Help!
hi, I have this code line that works: MainForm.RootPane.Style = "-fx-background-color:#e8f5fc;" but since I am styling several nodes, I wanted to pass this code line to a CSS file, where I already have some styles, but I can't get it right; I have tried: .root .rootpane .root .pane Nothing seems to do the trick! Please Help!
Daestrum Expert Licensed User Longtime User Sep 12, 2015 #21 Very curious, but glad it's now working for you. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Sep 13, 2015 #22 Why don't you use the designer to set the background color? Upvote 0
Cableguy Expert Licensed User Longtime User Sep 13, 2015 #23 Erel said: Why don't you use the designer to set the background color? Click to expand... Because, given the ability to customize through stylesheets, it will be easier to change styles in the css file than to open the designer... and also its a good learning process. Upvote 0
Erel said: Why don't you use the designer to set the background color? Click to expand... Because, given the ability to customize through stylesheets, it will be easier to change styles in the css file than to open the designer... and also its a good learning process.