archimatetool / archi

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

theming on linux #730

Closed lvmm closed 3 years ago

lvmm commented 3 years ago

Version of Archi

4.8.1

Archi Plug-ins

no

Operating System

Linux 5.4.0-72-generic #80~18.04.1-Ubuntu SMP Mon Apr 12 23:26:25 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux, X11, KDE, standard Breeze Dark UI theme in ubuntu.

Expected Behaviour

Theming should change interface colours and in general they should be readable.

Actual Behaviour

Regardless of the theme selected colours don't change much and are pretty unreadable e.g. all lines and connectors in Palette window. Weirdly dark theme changes main window background to light. It is almost the same on windows 10, only in reverse: even though the dark system UI is selected in windows, in Archi 's system theme everything is blinding white. Not cool, but at least readable. Screenshot_20210506_101100 Screenshot_20210506_101118 Screenshot_20210506_101134 Screenshot_20210506_101202 Screenshot_20210506_101212

Steps to Reproduce the Behaviour

1. 2. 3.

Phillipus commented 3 years ago

Themes are controlled by the Eclipse Theming Engine. The themes that ship with Archi are slightly modified Eclipse themes (these can actually be edited as CSS files, if required).

Regardless of the theme selected colours don't change much and are pretty unreadable e.g. all lines and connectors in Palette window.

I have no control over how a system theme affects the Palette. I've spent several days trying to hack this to control theming in the Palette, but it's not possible.

Weirdly dark theme changes main window background to light.

By design. If the background was black you would not see any connections.

It is almost the same on windows 10, only in reverse: even though the dark system UI is selected in windows, in Archi 's system theme everything is blinding white. Not cool, but at least readable.

If you want dark theme on Windows, then select the dark theme in Archi.

As I said, this is all handled by the Eclipse Theme Engine. Compare Archi with the Eclipse IDE if you like.

Phillipus commented 3 years ago

I've looked at this issue some more:

But there are some issues I can't solve:

If the OS theme is set to dark, then set Archi's theme to dark as well. This is not perfect but better in some cases.

Phillipus commented 3 years ago

I have no control over the Palette's background color

Now that we have forked our own versions of Eclipse GEF/Draw2d I have hooked into where the palette background is set and exposed it in the Theme files. It will be white regardless of the OS theme (slightly less white in Archi's Dark theme).