Skip to content

Commit

Permalink
Merge pull request #12414 from JabRef/fixui
Browse files Browse the repository at this point in the history
Fix number column hits by adding css selectors
  • Loading branch information
Siedlerchr authored Jan 25, 2025
2 parents df438b8 + f345fd5 commit 2381079
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv
- We fixed an issue where new entries were inserted in the middle of the table instead of at the end. [#12371](https://github.com/JabRef/jabref/pull/12371)
- We fixed an issue where removing the sort from the table did not restore the original order. [#12371](https://github.com/JabRef/jabref/pull/12371)
- We fixed an issue where JabRef icon merges with dark background [#7771](https://github.com/JabRef/jabref/issues/7771)
- We fixed an issue where an entry's group was no longer highlighted on selection [#12413](https://github.com/JabRef/jabref/issues/12413)

### Removed

Expand Down
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 2381079

Please sign in to comment.