Improve dark theme for disassembly view
Contributed by STMicroelectronics
Change-Id: I6699a003e38c61f70d90d2b1856d4b4edc6032fb
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
diff --git a/dsf/org.eclipse.cdt.dsf.ui/build.properties b/dsf/org.eclipse.cdt.dsf.ui/build.properties
index 086f570..58590f0 100644
--- a/dsf/org.eclipse.cdt.dsf.ui/build.properties
+++ b/dsf/org.eclipse.cdt.dsf.ui/build.properties
@@ -19,5 +19,6 @@
plugin.properties,\
about.html,\
icons/,\
- .options
+ .options,\
+ css/
src.includes = about.html
diff --git a/dsf/org.eclipse.cdt.dsf.ui/css/e4-dark_dsf.css b/dsf/org.eclipse.cdt.dsf.ui/css/e4-dark_dsf.css
new file mode 100644
index 0000000..1c231ab
--- /dev/null
+++ b/dsf/org.eclipse.cdt.dsf.ui/css/e4-dark_dsf.css
@@ -0,0 +1,22 @@
+/*******************************************************************************
+ * Copyright (c) 2022 STMicroelectronics and others.
+ *
+ * This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License 2.0
+ * which accompanies this distribution, and is available at
+ * https://www.eclipse.org/legal/epl-2.0/
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ ******************************************************************************/
+
+IEclipsePreferences#org-eclipse-cdt-dsf-ui:org-eclipse-cdt-dsf-ui {
+ preferences:
+ "disassembly.functionOffsetsColor=221,40,103"
+ "disassembly.addressColor=0,170,0"
+ "disassembly.codeBytesColor=221,40,103"
+ "disassembly.rulerBackgroundColor=47,47,47"
+ "disassembly.errorColor=221,40,103"
+ "disassembly.instructionColor=18,144,195"
+ "disassembly.sourceColor=200,200,200"
+ "disassembly.labelColor=255,191,38"
+}
diff --git a/dsf/org.eclipse.cdt.dsf.ui/plugin.xml b/dsf/org.eclipse.cdt.dsf.ui/plugin.xml
index 9d63857..301d9cc 100644
--- a/dsf/org.eclipse.cdt.dsf.ui/plugin.xml
+++ b/dsf/org.eclipse.cdt.dsf.ui/plugin.xml
@@ -1024,4 +1024,13 @@
id="org.eclipse.cdt.dsf.ui.simpleMapPersistableFactory">
</factory>
</extension>
+ <extension
+ point="org.eclipse.e4.ui.css.swt.theme">
+ <stylesheet
+ uri="css/e4-dark_dsf.css">
+ <themeid
+ refid="org.eclipse.e4.ui.css.theme.e4_dark">
+ </themeid>
+ </stylesheet>
+ </extension>
</plugin>