Skip to content

Commit

Permalink
chaged color summary text select active/inactive (JabRef#7927)
Browse files Browse the repository at this point in the history
  • Loading branch information
victordmp committed Jun 26, 2022
1 parent 4c07145 commit c2fb09d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/jabref/gui/Base.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@
-jr-drag-target: -jr-purple;
-jr-drag-target-hover: derive(-jr-purple, 80%);

/* For summary text color */
-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
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/org/jabref/gui/Dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
11 changes: 8 additions & 3 deletions src/main/java/org/jabref/gui/importer/ImportEntriesDialog.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.addEntryButton {
-fx-font-size: 2em;
-fx-font-size: 35;
}

.addEntryButton:selected {
Expand All @@ -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 {
.list-cell:entry-selected{
-fx-background-color: derive(-jr-selected, 35%);
}

.list-cell:entry-selected .summary > Text{
-fx-fill: js-summary-text-color-selected;
}

0 comments on commit c2fb09d

Please sign in to comment.