B4J Question Text size in Control FX Notification

micro

Well-Known Member
Licensed User
Longtime User
Hi to all
it's possible change text size in message for control fx notification?
Thanks
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Based on this answer: http://stackoverflow.com/questions/33494089/customize-controlsfx-notifications

1. Create a file named style.css in the Files folder with this content:

B4X:
.notification-bar>.pane .label {
  -fx-font-size: 2.3em;
  -fx-text-fill: #000;
  -fx-alignment: top-left;
}

2. Load the CSS file with:
B4X:
MainForm.Stylesheets.Add(File.GetUri(File.DirAssets, "style.css"))

That's it.
 
Upvote 0
Top