B4J Code Snippet Dark theme - base color

Discussion in 'B4J Code Snippets' started by Erel, Jul 25, 2017.

  1. Erel

    Erel Administrator Staff Member Licensed User


    1. Create a file named dark.css with this text in the Files folder:
    .root {
      -fx-base: rgba(
    606365255); // dark
    2. Load it with:
    MainForm.Stylesheets.Add(File.GetUri(File.DirAssets, "dark.css"))
    That's it.

    Based on this blog: http://dlsc.com/2017/07/03/javafx-tip-26/
    MarkusR, jmon, BPak and 2 others like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice