Skip to content

Commit b383d19

Browse files
gnl42ruspl-afed
authored andcommitted
Quick hack for better colors with Dark Theme #44
Task-Url: #44
1 parent f505a2d commit b383d19

2 files changed

Lines changed: 4 additions & 51 deletions

File tree

mylyn.context/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/context/ui/ContextUi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static Color getForeground(IInteractionElement node) {
5151
} else if (node.getInterest().isInteresting()) {
5252
return null;
5353
}
54-
return ColorMap.GRAY_MEDIUM;
54+
return ColorMap.GRAY_LIGHT;
5555
}
5656

5757
public static boolean isEditorAutoCloseEnabled() {

mylyn.context/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/context/ui/ColorMap.java

Lines changed: 3 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -21,66 +21,19 @@
2121
public class ColorMap {
2222

2323
// TODO: use themes?
24-
public static final Color LANDMARK = new Color(Display.getDefault(), 36, 22, 50);
25-
26-
public static final Color BACKGROUND_COLOR = new Color(Display.getDefault(), 255, 255, 255);
27-
28-
public static final Color DEFAULT = null;//Display.getCurrent().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND);//new Color(Display.getDefault(), 255, 255, 255);
29-
30-
public static final Color GRAY_DARK = new Color(Display.getDefault(), 70, 70, 70);
24+
public static final Color LANDMARK = new Color(Display.getDefault(), 80, 140, 200);
3125

3226
public static final Color GRAY_MEDIUM = new Color(Display.getDefault(), 105, 105, 105);
3327

3428
public static final Color GRAY_LIGHT = new Color(Display.getDefault(), 145, 145, 145);
3529

36-
public static final Color GRAY_VERY_LIGHT = new Color(Display.getDefault(), 200, 200, 200);
37-
38-
public static final Color RELATIONSHIP = new Color(Display.getDefault(), 32, 104, 157);
39-
40-
// FIXME 3.9 rename to HIGHLIGHTER_RED_INTERSECTION
41-
public static final Color HIGLIGHTER_RED_INTERSECTION = new Color(Display.getDefault(), 200, 0, 0);
42-
43-
public static final Color HIGHLIGHTER_ORANGE_GRADIENT = new Color(Display.getDefault(), 222, 137, 71);
44-
45-
public static final Color HIGLIGHTER_BLUE_GRADIENT = new Color(Display.getDefault(), 81, 158, 235);
46-
47-
public static final Color HIGHLIGHTER_YELLOW = new Color(Display.getDefault(), 255, 238, 99);
48-
49-
public static final Color PANTONE_PASTEL_YELLOW = new Color(Display.getDefault(), 244, 238, 175);
50-
51-
public static final Color PANTONE_PASTEL_ROSE = new Color(Display.getDefault(), 254, 179, 190);
52-
53-
public static final Color PANTONE_PASTEL_MAUVE = new Color(Display.getDefault(), 241, 183, 216);
54-
55-
public static final Color PANTONE_PASTEL_PURPLE = new Color(Display.getDefault(), 202, 169, 222);
56-
57-
public static final Color PANTONE_PASTEL_BLUE = new Color(Display.getDefault(), 120, 160, 250);
58-
59-
public static final Color PANTONE_PASTERL_GREEN = new Color(Display.getDefault(), 162, 231, 215);
60-
61-
public static final Color COLOR_WHITE = new Color(Display.getCurrent(), 255, 255, 255);
62-
63-
public static final Color COLOR_BLACK = new Color(Display.getCurrent(), 0, 0, 0);
30+
public static final Color RELATIONSHIP = new Color(Display.getDefault(), 0, 254, 0);
6431

6532
public void dispose() {
6633
LANDMARK.dispose();
67-
BACKGROUND_COLOR.dispose();
68-
GRAY_DARK.dispose();
69-
GRAY_MEDIUM.dispose();
7034
GRAY_LIGHT.dispose();
71-
GRAY_VERY_LIGHT.dispose();
35+
GRAY_MEDIUM.dispose();
7236
RELATIONSHIP.dispose();
73-
HIGLIGHTER_RED_INTERSECTION.dispose();
74-
HIGHLIGHTER_ORANGE_GRADIENT.dispose();
75-
HIGHLIGHTER_YELLOW.dispose();
76-
PANTONE_PASTERL_GREEN.dispose();
77-
PANTONE_PASTEL_BLUE.dispose();
78-
PANTONE_PASTEL_MAUVE.dispose();
79-
PANTONE_PASTEL_PURPLE.dispose();
80-
PANTONE_PASTEL_ROSE.dispose();
81-
PANTONE_PASTEL_YELLOW.dispose();
82-
COLOR_WHITE.dispose();
83-
COLOR_BLACK.dispose();
8437

8538
// below disposed by registry
8639
// DEFAULT.dispose();

0 commit comments

Comments
 (0)