Skip to content

Commit 8228956

Browse files
committed
Make problem tooltips use jetbrains font to match code editor
1 parent 76ad33f commit 8228956

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

recaf-ui/src/main/java/software/coley/recaf/ui/control/richtext/problem/ProblemGutterGraphicFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public void apply(@Nonnull LineContainer container, int paragraph) {
7373
shape.setOpacity(0.33);
7474

7575
Tooltip tooltip = new Tooltip(formatTooltipMessage(problem));
76+
tooltip.getStyleClass().add("mono-text");
7677
tooltip.setGraphic(graphic);
7778
switch (level) {
7879
case ERROR -> tooltip.getStyleClass().add("error-text");

recaf-ui/src/main/resources/style/tweaks.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
.warn-text {
3939
-fx-text-fill: yellow;
4040
}
41+
.mono-text {
42+
-fx-font-family: 'JetBrains Mono';
43+
}
4144

4245
/* Clearly separates filter from the workspace tree */
4346
.workspace-filter-pane {

0 commit comments

Comments
 (0)