Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2010-02-21 10:43:32 +0000
committerfbecker2010-02-21 10:43:32 +0000
commit78457484cf3d137ad27719e0beff29423011b236 (patch)
treec00f40b81f636c338ed9e4504f8de0f157875482
parent5e266d3e4aa400628685a4460779a6c8d610dfe0 (diff)
downloadorg.eclipse.mylyn.tasks-78457484cf3d137ad27719e0beff29423011b236.tar.gz
org.eclipse.mylyn.tasks-78457484cf3d137ad27719e0beff29423011b236.tar.xz
org.eclipse.mylyn.tasks-78457484cf3d137ad27719e0beff29423011b236.zip
ASSIGNED - bug 303431: remove CommonColors.CONTEXT_ACTIVE
https://bugs.eclipse.org/bugs/show_bug.cgi?id=303431
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TaskElementLabelProvider.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TaskElementLabelProvider.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TaskElementLabelProvider.java
index 2085290cd..743edcb75 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TaskElementLabelProvider.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/TaskElementLabelProvider.java
@@ -18,7 +18,6 @@ import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.viewers.IColorProvider;
import org.eclipse.jface.viewers.IFontProvider;
import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.mylyn.internal.provisional.commons.ui.CommonColors;
import org.eclipse.mylyn.internal.provisional.commons.ui.CommonFonts;
import org.eclipse.mylyn.internal.provisional.commons.ui.CommonImages;
import org.eclipse.mylyn.internal.provisional.commons.ui.CommonThemes;
@@ -188,7 +187,7 @@ public class TaskElementLabelProvider extends LabelProvider implements IColorPro
} else if (task.isCompleted()) {
return themeManager.getCurrentTheme().getColorRegistry().get(CommonThemes.COLOR_COMPLETED);
} else if (TasksUi.getTaskActivityManager().isActive(task)) {
- return CommonColors.CONTEXT_ACTIVE;
+ return themeManager.getCurrentTheme().getColorRegistry().get(CommonThemes.COLOR_TASK_ACTIVE);
} else if (TasksUiPlugin.getTaskActivityManager().isOverdue(task)) {
return themeManager.getCurrentTheme().getColorRegistry().get(CommonThemes.COLOR_OVERDUE);
} else if (TasksUiPlugin.getTaskActivityManager().isDueToday(task)) {
@@ -207,7 +206,7 @@ public class TaskElementLabelProvider extends LabelProvider implements IColorPro
} else if (object instanceof ITaskContainer) {
for (ITask child : ((ITaskContainer) object).getChildren()) {
if (child.isActive() || (child instanceof ITaskContainer && showHasActiveChild((ITaskContainer) child))) {
- return CommonColors.CONTEXT_ACTIVE;
+ return themeManager.getCurrentTheme().getColorRegistry().get(CommonThemes.COLOR_TASK_ACTIVE);
} else if (TasksUiPlugin.getTaskActivityManager().isOverdue(child)) {
// } else if ((child.isPastReminder() && !child.isCompleted()) || showHasChildrenPastDue(child)) {
return themeManager.getCurrentTheme().getColorRegistry().get(CommonThemes.COLOR_OVERDUE);

Back to the top