Skip to content

Commit 9b13538

Browse files
authored
fix: Improper icon sizing with respect to font size (#13841)
1 parent 025a6fc commit 9b13538

File tree

1 file changed

+16
-2
lines changed
  • jabgui/src/main/resources/org/jabref/gui

1 file changed

+16
-2
lines changed

jabgui/src/main/resources/org/jabref/gui/Base.css

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,14 +1097,28 @@ TextFlow > .tooltip-text-monospaced {
10971097
-fx-border-width: 0;
10981098
}
10991099

1100+
.mainToolbar .icon-button {
1101+
-fx-padding: 0.5em;
1102+
}
1103+
1104+
/*
1105+
* -fx-icon-size is intentionally omitted to prevent a rendering loop. The library sets font size
1106+
* based on the computed icon size, which is itself relative to the font size.
1107+
*/
11001108
.mainToolbar .glyph-icon,
11011109
.mainToolbar .ikonli-font-icon {
1102-
-fx-font-size: 1.7em;
1110+
/* `!important` is override library's default font size */
1111+
-fx-font-size: 1.7em!important;
11031112
-fx-fill: -jr-theme-text;
11041113
-fx-text-fill: -jr-theme-text;
11051114
-fx-icon-color: -jr-theme-text;
11061115
}
11071116

1117+
.mainToolbar .progress-indicator {
1118+
-fx-min-width: 2.8em;
1119+
-fx-max-width: 2.8em;
1120+
}
1121+
11081122
.search-field {
11091123
-fx-background-color: -jr-search-background;
11101124
-fx-border-width: 1;
@@ -3207,7 +3221,7 @@ journalInfo .grid-cell-b {
32073221
-fx-hgap: 1.5em;
32083222
-fx-vgap: 0.8em;
32093223
}
3210-
3224+
32113225
/* Automatic Field Editor */
32123226
.edit-field-content-pane {
32133227
-fx-padding: 0em 1em;

0 commit comments

Comments
 (0)