1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00
Arduino/app
Matthijs Kooijman 93581b03d7 Set foreground color in library/board manager
Previously, only the background color was changed to white or light
grey. This worked well for the default theme with a black or dark text,
but not for a dark theme with white or light text.

This commit fixes this by also overriding the text color to be black.
Since the colors are set on the JPanel table cell, but the actual text
is rendered by the description JTextPane, the `setForeground` method is
overridden to forward the foreground color to the description pane.

Note that this commit only touches the table cell and description
inside, the dropdowns and buttons have neither background nor foreground
color set (thus these use both colors from the system theme). It might
be more consistent to also override these, but such native UI components
are typically tricky to colorize properly, so best let the system handle
that normally.

An alternative solution would be only use the default colors, which
would actually preserve the dark theme colors in these managers as well
(rather than forcing black-on-white/grey as now). There are default
colors for selected and non-selected table cells that could be used, but
these are different from the current colors. Additionally, the current
odd/even alternating colors are then also no longer available.
2019-10-16 17:30:40 +02:00
..
.settings Updated eclipse formatter options 2017-02-20 15:22:27 +01:00
lib Merge branch 'master' into add-file-cache 2019-07-18 11:28:46 +02:00
src Set foreground color in library/board manager 2019-10-16 17:30:40 +02:00
test Fixed test UpdateTextAreaActionTest 2019-07-18 14:25:24 +02:00
test-lib added files that state third party licenses 2013-08-28 10:12:33 +02:00
testdata/libraries Added first tests for library manager engine 2018-05-17 09:14:25 +02:00
.classpath Updated eclipse classpath 2019-07-18 14:24:59 +02:00
.classpath_macosx Got rid of ANTLR: we never used it 2015-08-10 09:35:47 +02:00
.editorconfig Added .editorconfig files http://editorconfig.org/ 2015-05-08 10:18:43 +02:00
.project Importing Processing rev. 5503 (1.0.3). 2009-05-31 15:53:33 +00:00
build.xml Add log4j.xml configuration 2019-07-05 11:47:36 +02:00