<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>No easy way as of yet, the border isn't created by JavaFX but by
      Windows, and I think JavaFX is not responding to the global
      LIGHT/DARK settings of the platform.  You could try use the
      StageStyle UNDECORATED or UNIFIED, but that would still involve
      rendering your own border.</p>
    <p>Other options may include getting the HWND handle and using
      Windows API directly to change the style.  Getting the HWND (using
      Windows API) is not too hard, but I'm not sure what you may need
      to do to change the Window border to use the dark theme.</p>
    <p>--John<br>
    </p>
    <div class="moz-cite-prefix">On 01/05/2023 22:45, Davide Perini
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:0cf0fb54-5b63-8e94-e77d-14ff8e4bad8a@dpsoftware.org">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      Hi all,<br>
      <div class="moz-forward-container"> is there an easy way to change
        the window border color in JavaFX?<br>
        <br>
        I would not like to create a custom border since I like to use
        the "native window border" look n feel, <br>
        but how can I match the color with the one used in the OS?<br>
        <br>
        I'm using Windows 11 here,<br>
        <br>
        <img src="cid:part1.GfZUpZIP.4wzb4aM9@gmail.com" alt="" class=""><br>
        <br>
        as you can see from this image, Windows explorer uses a dark
        grey border, while my JavaFX app uses the light grey color.<br>
        <br>
        How can I change that color without creating a custom "window
        border"?<br>
        <br>
        Thanks<br>
        Davide<br>
      </div>
    </blockquote>
  </body>
</html>