Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2007-03-17 00:58:44 +0000
committermkersten2007-03-17 00:58:44 +0000
commit19f972ef2fbbb08de0aa55348b447a20f9d9be15 (patch)
tree8a49c8af3b5c0bfbd942b3ec005415b243724354 /org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListView.java
parentf782c09534989095da904164416f23eaf08a3886 (diff)
downloadorg.eclipse.mylyn.tasks-19f972ef2fbbb08de0aa55348b447a20f9d9be15.tar.gz
org.eclipse.mylyn.tasks-19f972ef2fbbb08de0aa55348b447a20f9d9be15.tar.xz
org.eclipse.mylyn.tasks-19f972ef2fbbb08de0aa55348b447a20f9d9be15.zip
NEW - bug 177320: Pending changes to internal class UpdateCore will break Tasks/Core
https://bugs.eclipse.org/bugs/show_bug.cgi?id=177320
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListView.java')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListView.java16
1 files changed, 11 insertions, 5 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListView.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListView.java
index ceb6147d8..8c07fefa5 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListView.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListView.java
@@ -785,7 +785,7 @@ public class TaskListView extends ViewPart {
});
}
- IThemeManager themeManager = getSite().getWorkbenchWindow().getWorkbench().getThemeManager();
+ final IThemeManager themeManager = getSite().getWorkbenchWindow().getWorkbench().getThemeManager();
Color categoryBackground = themeManager.getCurrentTheme().getColorRegistry().get(
TaskListColorsAndFonts.THEME_COLOR_TASKLIST_CATEGORY);
@@ -881,13 +881,19 @@ public class TaskListView extends ViewPart {
Color oldForeground = gc.getForeground();
Color oldBackground = gc.getBackground();
- /* Gradient */
- gc.setForeground(TaskListColorsAndFonts.COLOR_CATEGORY_GRADIENT_START);
- gc.setBackground(TaskListColorsAndFonts.COLOR_CATEGORY_GRADIENT_BG);
+ /* Gradient */
+ Color gradientStart = themeManager.getCurrentTheme().getColorRegistry().get(
+ TaskListColorsAndFonts.THEME_COLOR_CATEGORY_GRADIENT_START);
+
+ Color gradientEnd = themeManager.getCurrentTheme().getColorRegistry().get(
+ TaskListColorsAndFonts.THEME_COLOR_CATEGORY_GRADIENT_END);
+
+ gc.setForeground(gradientStart);
+ gc.setBackground(gradientEnd);
gc.fillGradientRectangle(0, rect.y, area.width, rect.height, true);
/* Bottom Line */
- gc.setForeground(TaskListColorsAndFonts.COLOR_CATEGORY_GRADIENT_END);
+ gc.setForeground(gradientEnd);
gc.drawLine(0, rect.y + rect.height - 1, area.width, rect.y + rect.height - 1);
gc.setForeground(oldForeground);

Back to the top