Skip to content

Commit

Permalink
Fix number column hits by adding css selectors
Browse files Browse the repository at this point in the history
Fixes #12413
  • Loading branch information
Siedlerchr committed Jan 25, 2025
1 parent df438b8 commit 775fa9a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
14 changes: 8 additions & 6 deletions src/main/java/org/jabref/gui/Base.css
Original file line number Diff line number Diff line change
Expand Up @@ -664,13 +664,7 @@ TextFlow > .tooltip-text-monospaced {
-fx-padding: 0 0 0 0;
}

.numberColumn > .hits:any-selected {
-fx-background-color: derive(-jr-green, 70%);
}

.numberColumn > .hits:all-selected {
-fx-background-color: -jr-green;
}

.table-view,
.tree-table-view {
Expand Down Expand Up @@ -2037,6 +2031,14 @@ We want to have a look that matches our icons in the tool-bar */
-fx-fill: -jr-group-hits-fg;
}

#groupTree .numberColumn > .hits:any-selected {
-fx-background-color: derive(-jr-green, 70%);
}

#groupTree .numberColumn > .hits:all-selected {
-fx-background-color: -jr-green;
}

#groupTree .expansionNodeColumn {
-fx-alignment: top-right;
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/jabref/gui/Dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,11 @@
-fx-background-color: -fx-light-text-color, -fx-control-inner-background;
}

.numberColumn > .hits:any-selected {
#groupTree .numberColumn > .hits:any-selected {
-fx-background-color: derive(-jr-gray-3, 25%);
}

.numberColumn > .hits:all-selected {
#groupTree .numberColumn > .hits:all-selected {
-fx-background-color: -jr-gray-3;
}

Expand Down

0 comments on commit 775fa9a

Please sign in to comment.