Reputation: 315
I just want to know how change gui font size in JavaFX SceneBuilder (on my screen it's just too small and it doesn't get default environment font size). There is no item like font size in preferences, so I thought about some java parameters or properties. Or maybe we could override some css. Any hints would be appreciated.
Upvotes: 3
Views: 4578
Reputation: 11
Thank's for the hint. I changed all fonts to size 1.2em in file ThemeDefault.css. And I changed the selection color: -sb-selected-bar-color: rgb(201, 222, 234); Now the SceneBuilder looks better. I did the changes using 7-zip. Here you can edit inside a .jar.
Upvotes: 1
Reputation: 21
One way is to edit the scenebuilder jar file directly. On the windows platform go into C:\Program Files\SceneBuilder\app\scenebuilder-11.0.0-all.jar\com\oracle\javafx\scenebuilder\kit\css, and modified the ThemeDefault.css file.
For example, to change the default font for the controls property sheet:
.property-sheet {
-fx-font-size: 1.5em;
}
There are lots of other properties in there which control the ui.
Upvotes: 2
Reputation: 1
Use css, its better. Something like this -fx-font-size:20; Specify id for the gui control you want to change its font in the scene builder's properties section and use it for the css.
Upvotes: -1