summaryrefslogtreecommitdiff
path: root/themes/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'themes/emacs')
-rw-r--r--themes/emacs/Makefile.am16
-rw-r--r--themes/emacs/definition.xml15
-rw-r--r--themes/emacs/gresource.xml9
-rw-r--r--themes/emacs/palette.css19
-rw-r--r--themes/emacs/tokens.css128
-rw-r--r--themes/emacs/widgets.css6
6 files changed, 193 insertions, 0 deletions
diff --git a/themes/emacs/Makefile.am b/themes/emacs/Makefile.am
new file mode 100644
index 0000000..a8b0b80
--- /dev/null
+++ b/themes/emacs/Makefile.am
@@ -0,0 +1,16 @@
+
+GTK3_CSS = \
+ palette.css \
+ tokens.css \
+ widgets.css
+
+emacs.ctm: gresource.xml $(GTK3_CSS)
+ glib-compile-resources --target=$@ --sourcedir=$(srcdir) gresource.xml
+
+css_DATA = emacs.ctm
+
+cssdir = $(themesdir)
+
+EXTRA_DIST = $(css_DATA) gresource.xml
+
+CLEANFILES = $(css_DATA)
diff --git a/themes/emacs/definition.xml b/themes/emacs/definition.xml
new file mode 100644
index 0000000..c21a90c
--- /dev/null
+++ b/themes/emacs/definition.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ChrysalideTheme>
+ <identity>
+ <name>emacs</name>
+ <author>Cyrille Bagard</author>
+ <desc>Emacs colors for Chrysalide based on http://www.raebear.net/computers/emacs-colors/</desc>
+ </identity>
+ <resources>
+ <common>
+ <path>palette.css</path>
+ <path>tokens.css</path>
+ <path>widgets.css</path>
+ </common>
+ </resources>
+</ChrysalideTheme>
diff --git a/themes/emacs/gresource.xml b/themes/emacs/gresource.xml
new file mode 100644
index 0000000..010b6a4
--- /dev/null
+++ b/themes/emacs/gresource.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<gresources>
+ <gresource prefix="/org/chrysalide/gui/themes/emacs">
+ <file compressed="true">definition.xml</file>
+ <file compressed="true">palette.css</file>
+ <file compressed="true">tokens.css</file>
+ <file compressed="true">widgets.css</file>
+ </gresource>
+</gresources>
diff --git a/themes/emacs/palette.css b/themes/emacs/palette.css
new file mode 100644
index 0000000..3c4c2c5
--- /dev/null
+++ b/themes/emacs/palette.css
@@ -0,0 +1,19 @@
+
+@define-color DarkSlateGray #2f4f4f;
+
+@define-color DarkSalmon #e9967a;
+@define-color Khaki #f0e68c;
+@define-color MediumSeaGreen #3cb371;
+
+@define-color Sienna #a0522d;
+@define-color Peru #cd853f;
+@define-color Chocolate #d2691e;
+@define-color DeepSkyBlue #00bfff;
+@define-color WhiteSmoke #f5f5f5;
+@define-color HotPink #ff69b4;
+@define-color LimeGreen #32cd32;
+@define-color Wheat #f5deb3;
+@define-color GoldenRod #daa520;
+@define-color OrangeRed #ff4500;
+@define-color MediumPurple #9370db;
+@define-color VioletRed #d02090;
diff --git a/themes/emacs/tokens.css b/themes/emacs/tokens.css
new file mode 100644
index 0000000..5245549
--- /dev/null
+++ b/themes/emacs/tokens.css
@@ -0,0 +1,128 @@
+
+/* Hex display */
+
+.token-raw {
+
+ color: @Khaki;
+
+}
+
+.token-raw-full {
+
+ color: @DarkSalmon;
+
+ font-weight: bold;
+
+}
+
+.token-raw-null {
+
+ color: @MediumSeaGreen;
+
+}
+
+.token-printable {
+
+ color: @Khaki;
+
+}
+
+.token-not-printable {
+
+ color: @MediumSeaGreen;
+
+}
+
+/* Assembly views */
+
+.token-comment,
+.token-indication {
+
+ color: @Chocolate;
+
+}
+
+.token-phys-addr-padding,
+.token-virt-addr-padding {
+
+ color: @Sienna;
+
+}
+
+.token-phys-addr,
+.token-virt-addr {
+
+ color: @Peru;
+
+}
+
+.token-raw-code {
+
+ color: @Khaki;
+
+}
+
+.token-raw-code-null {
+
+ color: @MediumSeaGreen;
+
+}
+
+.token-label,
+.token-section,
+.token-segment {
+
+ color: @DeepSkyBlue;
+
+}
+
+.token-instruction {
+
+ color: @WhiteSmoke;
+
+}
+
+.token-immediate {
+
+ color: @HotPink;
+
+}
+
+.token-register {
+
+ color: @LimeGreen;
+
+}
+
+.token-punct,
+.token-hooks,
+.token-signs,
+.token-ltgt {
+
+ color: @Wheat;
+
+}
+
+.token-string {
+
+ color: @GoldenRod;
+
+}
+
+.token-var-name {
+
+ color: @OrangeRed;
+
+}
+
+.token-keyword {
+
+ color: @MediumPurple;
+
+}
+
+.token-error {
+
+ color: @VioletRed;
+
+}
diff --git a/themes/emacs/widgets.css b/themes/emacs/widgets.css
new file mode 100644
index 0000000..46f8e36
--- /dev/null
+++ b/themes/emacs/widgets.css
@@ -0,0 +1,6 @@
+
+.graph-block-background {
+
+ background-color: @DarkSlateGray;
+
+}