diff --git a/CHANGELOG.md b/CHANGELOG.md index dea34f011c6..7fe899c63bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve ### Changed +- Change in the color of the selection entries and the color of the summary in the Import Entries Dialog. [#7927](https://github.com/JabRef/jabref/issues/7927) - We upgraded to Lucene 9.2 for the fulltext search. Thus, the now created search index cannot be read from older versions of JabRef anylonger. ⚠️ JabRef will recreate the index in a new folder for new files and this will take a long time for a huge library. diff --git a/src/main/java/org/jabref/gui/Base.css b/src/main/java/org/jabref/gui/Base.css index 3a25f9afc25..188182d5151 100644 --- a/src/main/java/org/jabref/gui/Base.css +++ b/src/main/java/org/jabref/gui/Base.css @@ -98,6 +98,9 @@ -jr-drag-target: -jr-purple; -jr-drag-target-hover: derive(-jr-purple, 80%); + -js-summary-text-color: #000000; + -js-summary-text-color-selected: #000000; + /* Here are redefinitions of the default properties of modena. They should in principle all be derived from the above colors. Goal should be to make as few as possible direct color-changes to elements and only do this for diff --git a/src/main/java/org/jabref/gui/Dark.css b/src/main/java/org/jabref/gui/Dark.css index e1de8084646..adaa1cd1a83 100644 --- a/src/main/java/org/jabref/gui/Dark.css +++ b/src/main/java/org/jabref/gui/Dark.css @@ -55,6 +55,9 @@ -jr-drag-target: -jr-accent; -jr-drag-target-hover: -jr-accent; + + -js-summary-text-color: derive(-fx-light-text-color, 70%); + -js-summary-text-color-selected: derive( -fx-dark-text-color, 70%); } #previewBody { diff --git a/src/main/java/org/jabref/gui/importer/ImportEntriesDialog.css b/src/main/java/org/jabref/gui/importer/ImportEntriesDialog.css index 5adbe79d227..03251b85b89 100644 --- a/src/main/java/org/jabref/gui/importer/ImportEntriesDialog.css +++ b/src/main/java/org/jabref/gui/importer/ImportEntriesDialog.css @@ -11,10 +11,15 @@ /*-fx-padding: 0.5em 0em 0.5em 0em;*/ } -.list-cell { +.list-cell .summary > Text { -fx-padding: 0.5em 0 1em 0.5em; + -fx-fill: -js-summary-text-color; } .list-cell:entry-selected { - -fx-background-color: derive(-jr-selected, 60%); + -fx-background-color: derive(-jr-selected, 35%); +} + +.list-cell:entry-selected .summary > Text { + -fx-fill: js-summary-text-color-selected; }