Skip to content

Commit

Permalink
improved color scheme of the links
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralf Wisser committed Nov 20, 2024
1 parent 5e96982 commit 96b368d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/gui/net/sf/jailer/ui/Colors.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private static void initColors() {
ColorAssoc_2_3.init(new Color(70, 255, 70));
ColorAssoc_2_4.init(new Color(245, 90, 60), new Color(235, 100, 70));
Color_153_153_153.init(new Color(153, 153, 153), ColorAssoc_2_2.dark);
Color_170_200_0.init(new Color(130, 140, 0), new Color(150, 160, 0)); // link join
Color_170_200_0.init(new Color(170, 180, 0), new Color(160, 170, 0)); // link join

Color_224_224_224.init(new Color(224, 224, 224), new Color(96, 96, 96));
Color_220_255_220.init(new Color(220, 255, 220), new Color(30, 61, 30));
Expand Down
4 changes: 2 additions & 2 deletions src/main/gui/net/sf/jailer/ui/databrowser/Desktop.java
Original file line number Diff line number Diff line change
Expand Up @@ -2643,15 +2643,15 @@ private void paintLink(Point2D start, Point2D end, Color color, Color fgColor, G
float d = 14;
mc = hslColor
.adjustLuminance(fg.getBlue() > fg.getRed() && fg.getBlue() > fg.getGreen() ? Math.max(0, l - d)
: fg.getGreen() > 130 && fg.getRed() > 130 && fg.getBlue() < 8 ? 30
: fg.getGreen() > 99 && fg.getRed() > 99 && fg.getBlue() < 8 ? 22
: fg.getGreen() > fg.getRed() && fg.getGreen() > fg.getBlue() ? Math.max(0, l - d)
: fg.getGreen() > 130 && fg.getBlue() > 130 && fg.getRed() < 30
? Math.max(0, l - d)
: Math.max(0, l - d));
} else {
mc = hslColor
.adjustLuminance(fg.getBlue() > fg.getRed() && fg.getBlue() > fg.getGreen() ? 80
: fg.getGreen() > 99 && fg.getRed() > 99 && fg.getBlue() < 8 ? 40
: fg.getGreen() > 99 && fg.getRed() > 99 && fg.getBlue() < 8 ? 48
: fg.getGreen() > fg.getRed() && fg.getGreen() > fg.getBlue() ? 46
: fg.getGreen() > 130 && fg.getBlue() > 130 && fg.getRed() < 30
? 70
Expand Down

0 comments on commit 96b368d

Please # to comment.