B4J Question Font size in ContextMenu

1713335154961.png


Add a file named menu.css with (name isn't important):
Code: Copy
.context-menu {
   -fx-background-color: #C8CFD7;
  -fx-border-color: #BBC2CC;
  -fx-text-fill: white;
  -fx-font-size: 18px;
   -fx-font-weight: bold;
}

Code: Copy
B4XPages.GetNativeParent(Me).Stylesheets.Add(xui.FileUri(File.DirAssets, "menu.css"))
 
Upvote 1
Hello, is it possible to adjust the context-menu font size in code? When the window is maximized and all elements are enlarged, then the context-menu size does not change - it has css style.
 
Upvote 0
Back
Top