B4J Question Change default text sizes?

agraham

Expert
Licensed User
I think I know the answer to this (it's No) but is there any way of changing the default text sizes for controls? They seem to be the same (14) as for B4A which makes the minimum size for Buttons, amongst others, too large and visually intrusive. A value of 12 looks much better.
 

Daestrum

Well-Known Member
Licensed User
You can try an external css file that contains
B4X:
.root { -fx-font-size: 12px; }

But ALL text is affected even inside textareas etc.
 
Upvote 0

Daestrum

Well-Known Member
Licensed User
You can call it what you want but suffix is css ( below mine is called fontsize.css)
It can be anywhere mine is just in my temp folder but should be in the app directories.

B4X:
MainForm.Stylesheets.Add(File.GetUri("c:/temp", "fontsize.css"))
 
Upvote 0
Top