archimatetool / archi

Archi: ArchiMate Modelling Tool
https://www.archimatetool.com
MIT License
914 stars 267 forks source link

The Hints pane does not follow the MacOS dark theme #951

Closed heikkil closed 10 months ago

heikkil commented 10 months ago

Version of Archi

5.1.0, also present at least in the version 5.0.2

Archi Plug-ins

Operating System

MacOS Ventura 13.4

Expected Behaviour

All panes follow the system theme in their colour.

Actual Behaviour

The Hints pane has the default light theme even when all the other Archi window panes follow the system dark theme.

Steps to Reproduce the Behaviour

  1. Switch the MacOS appearance to dark from the Control Panel.
  2. Launch Archi
  3. Make the Hints pane visible
Screenshot 2023-08-09 at 20 51 03
Phillipus commented 10 months ago

The Hints pane is actually an embedded browser component and so is not theme aware, as it is displaying HTML content. So won't be able to change this.

Phillipus commented 10 months ago

So won't be able to change this.

Having said that, I have made some experiments of injecting some additional CSS values into the HTML via JavaScript when loading the hint HTML text to give a dark background and light text. So it may be possible - with the caveat that the Archi Preference "Enable JavaScript in Hints" has to be enabled and there is a slight flicker when rendering the HTML (white background changing to dark).

Phillipus commented 10 months ago

I've implemented this now. As I said above, the Archi Preference "Enable JavaScript in Hints" has to be enabled and there is a slight flicker when rendering the HTML (white background changing to dark).