From cc2a9048830f9f47b553713ca2739257143b0840 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Svensson?= Date: Thu, 5 May 2022 16:22:31 +0200 Subject: [PATCH] Improve dark theme for disassembly view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Contributed by STMicroelectronics Change-Id: I6699a003e38c61f70d90d2b1856d4b4edc6032fb Signed-off-by: Torbjörn Svensson --- dsf/org.eclipse.cdt.dsf.ui/build.properties | 3 ++- .../css/e4-dark_dsf.css | 22 +++++++++++++++++++ dsf/org.eclipse.cdt.dsf.ui/plugin.xml | 9 ++++++++ 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 dsf/org.eclipse.cdt.dsf.ui/css/e4-dark_dsf.css diff --git a/dsf/org.eclipse.cdt.dsf.ui/build.properties b/dsf/org.eclipse.cdt.dsf.ui/build.properties index 086f5702a79..58590f0008e 100644 --- a/dsf/org.eclipse.cdt.dsf.ui/build.properties +++ b/dsf/org.eclipse.cdt.dsf.ui/build.properties @@ -19,5 +19,6 @@ bin.includes = META-INF/,\ 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 00000000000..1c231ab78f7 --- /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 9d638579552..301d9cce2a5 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"> + + + + + +