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
 
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:

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

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

That's it.
 
Upvote 0
Back
Top