531530: [dark] Scheduled tasks appear with dark blue on dark grey when
using the dark theme

Change-Id: I737c3f93dee56f721b6e97a2542905bcffd66b22
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=531530
Signed-off-by: Robert Munteanu <robert.munteanu@gmail.com>
diff --git a/org.eclipse.mylyn.tasks.ui/build.properties b/org.eclipse.mylyn.tasks.ui/build.properties
index f4d75c7..5a69845 100644
--- a/org.eclipse.mylyn.tasks.ui/build.properties
+++ b/org.eclipse.mylyn.tasks.ui/build.properties
@@ -11,7 +11,8 @@
                icons/,\
                doc/,\
                META-INF/,\
-               plugin.properties
+               plugin.properties,\
+               css/
 src.includes = about.html,\
                schema/
 source.. = src/
diff --git a/org.eclipse.mylyn.tasks.ui/css/e4-dark_mylyn_prefstyle.css b/org.eclipse.mylyn.tasks.ui/css/e4-dark_mylyn_prefstyle.css
new file mode 100644
index 0000000..e06e986
--- /dev/null
+++ b/org.eclipse.mylyn.tasks.ui/css/e4-dark_mylyn_prefstyle.css
@@ -0,0 +1,10 @@
+/* See bug 466075 about the pseudo-selector ":org-eclipse-mylyn-tasks-ui" */
+IEclipsePreferences#org-eclipse-ui-workbench:org-eclipse-mylyn-tasks-ui {
+	preferences:
+		'org.eclipse.mylyn.tasks.ui.colors.foreground.today.scheduled=52,101,164'
+		'org.eclipse.mylyn.tasks.ui.colors.foreground.past.scheduled=52,101,164'
+		'org.eclipse.mylyn.tasks.ui.colors.foreground.thisweek.scheduled=85,87,83'
+		'org.eclipse.mylyn.tasks.ui.colors.foreground.task.active=117,80,123'
+		'org.eclipse.mylyn.tasks.ui.colors.category.gradient.start=85,87,83'
+		'org.eclipse.mylyn.tasks.ui.colors.category.gradient.end=136,137,133'
+}
\ No newline at end of file
diff --git a/org.eclipse.mylyn.tasks.ui/plugin.xml b/org.eclipse.mylyn.tasks.ui/plugin.xml
index b7b9d62..c0ccd48 100644
--- a/org.eclipse.mylyn.tasks.ui/plugin.xml
+++ b/org.eclipse.mylyn.tasks.ui/plugin.xml
@@ -799,6 +799,16 @@
    <!-- defaultsTo="org.eclipse.jface.dialogfont"-->
 
    <extension
+         point="org.eclipse.e4.ui.css.swt.theme">
+      <stylesheet
+            uri="css/e4-dark_mylyn_prefstyle.css">
+         <themeid
+               refid="org.eclipse.e4.ui.css.theme.e4_dark">
+         </themeid>
+      </stylesheet>
+   </extension>
+
+   <extension
          point="org.eclipse.ui.perspectives">
       <perspective
             class="org.eclipse.mylyn.internal.tasks.ui.PlanningPerspectiveFactory"