<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">The details on how to detect dark mode and alter the HWND’s title bar are laid out here:<div><br></div><div><a href="https://learn.microsoft.com/en-us/windows/apps/desktop/modernize/apply-windows-themes">https://learn.microsoft.com/en-us/windows/apps/desktop/modernize/apply-windows-themes</a><div><br></div><div>Martin</div><div><br></div><div><blockquote type="cite"><div>On May 1, 2023, at 2:28 PM, John Hendrikx <john.hendrikx@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div>
  
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  
  <div><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</p>
  </div>
</div></blockquote></div><br></div></body></html>