Skip to content

Commit

Permalink
Fixed #1880 - colors for an eye friendly green schema
Browse files Browse the repository at this point in the history
  • Loading branch information
eselmeister committed Sep 20, 2024
1 parent 01bd1ab commit 537c8f1
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,19 @@ public class Colors {
public static final Color LIGHT_RED = Colors.getColor(new RGB(249, 154, 152));
public static final Color LIGHT_GREEN = Colors.getColor(new RGB(166, 255, 139));
public static final Color LIGHT_YELLOW = Colors.getColor(new RGB(255, 254, 136));
/*
* Levels 01 - 10 (light to dark)
*/
public static final Color GREEN_LEVEL_01 = Colors.getColor(new RGB(229, 255, 213));
public static final Color GREEN_LEVEL_02 = Colors.getColor(new RGB(204, 255, 170));
public static final Color GREEN_LEVEL_03 = Colors.getColor(new RGB(179, 255, 128));
public static final Color GREEN_LEVEL_04 = Colors.getColor(new RGB(153, 255, 85));
public static final Color GREEN_LEVEL_05 = Colors.getColor(new RGB(127, 255, 42));
public static final Color GREEN_LEVEL_06 = Colors.getColor(new RGB(102, 255, 0));
public static final Color GREEN_LEVEL_07 = Colors.getColor(new RGB(85, 255, 0));
public static final Color GREEN_LEVEL_08 = Colors.getColor(new RGB(68, 255, 0));
public static final Color GREEN_LEVEL_09 = Colors.getColor(new RGB(51, 255, 0));
public static final Color GREEN_LEVEL_10 = Colors.getColor(new RGB(34, 255, 0));
/*
* These are system color ids, defined org.eclipse.swt.SWT. If you use own
* color, dispose them, if not needed any more.
Expand Down

2 comments on commit 537c8f1

@Mailaender
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are unused fields. Better to define them where they are actually used.

@eselmeister
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are used to test if peak lists can be displayed in a less candy-shop like style. But you're right, only colors that are really needed shall be defined. Alternatively, we could create a color scheme for green gradient colors. I'll optimize it, as soon as tests are finished successfully.

Please sign in to comment.