Skip to content

Commit

Permalink
Add styling BOLD_RESET_FG (black un Jupyter Lab, white un VSCode)
Browse files Browse the repository at this point in the history
Change use of  BOLD_BLACK_FG to BOLD_RESET_FG for improved visibility
  • Loading branch information
ecastro-capgemini committed Dec 27, 2024
1 parent 1fbe234 commit 1fc33b1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions jjava/src/main/java/org/dflib/jjava/JavaKernel.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ public JavaKernel(String version) {
);

this.errorStyler = new StringStyler.Builder()
.addPrimaryStyle(TextColor.BOLD_BLACK_FG)
.addPrimaryStyle(TextColor.BOLD_RESET_FG)
.addSecondaryStyle(TextColor.BOLD_RED_FG)
.addHighlightStyle(TextColor.BOLD_BLACK_FG)
.addHighlightStyle(TextColor.BOLD_RESET_FG)
.addHighlightStyle(TextColor.RED_BG)
//TODO map snippet ids to code cells and put the proper line number in the margin here
.withLinePrefix(TextColor.BOLD_BLACK_FG + "| ")
.withLinePrefix(TextColor.BOLD_RESET_FG + "| ")
.build();

this.mavenResolver.initImplicitExtensions();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ public BaseKernel(Charset charset) {
Text.registerAll(this.renderer);

this.errorStyler = new StringStyler.Builder()
.addPrimaryStyle(TextColor.BOLD_BLACK_FG)
.addPrimaryStyle(TextColor.BOLD_RESET_FG)
.addSecondaryStyle(TextColor.BOLD_RED_FG)
.addHighlightStyle(TextColor.BOLD_BLACK_FG)
.addHighlightStyle(TextColor.BOLD_RESET_FG)
.addHighlightStyle(TextColor.RED_BG)
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public enum TextColor {
WHITE_BG(47),
RESET_BG(49),

BOLD_RESET_FG(39, 1),

BOLD(1),
UNDERLINE(4),
SWAP_FG_BG(7),
Expand Down

0 comments on commit 1fc33b1

Please sign in to comment.