summaryrefslogtreecommitdiff
path: root/themes/Solarized
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-11-09 13:18:35 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-11-09 13:18:35 (GMT)
commitc301f7e77eaca632a491b5b4417c8e4b9dce2570 (patch)
tree501ccdd583e35ccad4f3a0592f2fb1b0870e0d5f /themes/Solarized
parent459b345d69532825f21bdcd3e4f92009b0a046dc (diff)
Introduced the first features of a hexadecimal viewer.
Diffstat (limited to 'themes/Solarized')
-rw-r--r--themes/Solarized/Makefile.am18
-rw-r--r--themes/Solarized/definition.xml22
-rw-r--r--themes/Solarized/gresource.xml12
-rw-r--r--themes/Solarized/palette.css17
-rw-r--r--themes/Solarized/segments-dark.css61
-rw-r--r--themes/Solarized/segments-light.css61
-rw-r--r--themes/Solarized/segments.css48
-rw-r--r--themes/Solarized/widgets-dark.css6
-rw-r--r--themes/Solarized/widgets-light.css6
9 files changed, 251 insertions, 0 deletions
diff --git a/themes/Solarized/Makefile.am b/themes/Solarized/Makefile.am
new file mode 100644
index 0000000..37631eb
--- /dev/null
+++ b/themes/Solarized/Makefile.am
@@ -0,0 +1,18 @@
+
+GTK3_CSS = \
+ palette.css \
+ widgets.css \
+ widgets-dark.css \
+ segments.css \
+ segments-dark.css
+
+solarized.ctm: gresource.xml $(GTK3_CSS)
+ glib-compile-resources --target=$@ --sourcedir=$(srcdir) gresource.xml
+
+css_DATA = solarized.ctm
+
+cssdir = $(themesdir)
+
+EXTRA_DIST = $(css_DATA) gresource.xml
+
+CLEANFILES = $(css_DATA)
diff --git a/themes/Solarized/definition.xml b/themes/Solarized/definition.xml
new file mode 100644
index 0000000..5fc3e83
--- /dev/null
+++ b/themes/Solarized/definition.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ChrysalideTheme>
+ <identity>
+ <name>Solarized</name>
+ <author>Cyrille Bagard</author>
+ <desc>Precision colors for Chrysalide based on https://ethanschoonover.com/solarized/</desc>
+ </identity>
+ <resources>
+ <common>
+ <path>palette.css</path>
+ <path>segments.css</path>
+ </common>
+ <light>
+ <path>widgets-light.css</path>
+ <path>segments-light.css</path>
+ </light>
+ <dark>
+ <path>widgets-dark.css</path>
+ <path>segments-dark.css</path>
+ </dark>
+ </resources>
+</ChrysalideTheme>
diff --git a/themes/Solarized/gresource.xml b/themes/Solarized/gresource.xml
new file mode 100644
index 0000000..a12dcba
--- /dev/null
+++ b/themes/Solarized/gresource.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<gresources>
+ <gresource prefix="/org/chrysalide/gui/themes/Solarized">
+ <file compressed="true">definition.xml</file>
+ <file compressed="true">palette.css</file>
+ <file compressed="true">segments.css</file>
+ <file compressed="true">widgets-light.css</file>
+ <file compressed="true">segments-light.css</file>
+ <file compressed="true">widgets-dark.css</file>
+ <file compressed="true">segments-dark.css</file>
+ </gresource>
+</gresources>
diff --git a/themes/Solarized/palette.css b/themes/Solarized/palette.css
new file mode 100644
index 0000000..d111a31
--- /dev/null
+++ b/themes/Solarized/palette.css
@@ -0,0 +1,17 @@
+
+@define-color base03 #002b36;
+@define-color base02 #073642;
+@define-color base01 #586e75;
+@define-color base00 #657b83;
+@define-color base0 #839496;
+@define-color base1 #93a1a1;
+@define-color base2 #eee8d5;
+@define-color base3 #fdf6e3;
+@define-color yellow #b58900;
+@define-color orange #cb4b16;
+@define-color red #dc322f;
+@define-color magenta #d33682;
+@define-color violet #6c71c4;
+@define-color blue #268bd2;
+@define-color cyan #2aa198;
+@define-color green #859900;
diff --git a/themes/Solarized/segments-dark.css b/themes/Solarized/segments-dark.css
new file mode 100644
index 0000000..3c9a6fd
--- /dev/null
+++ b/themes/Solarized/segments-dark.css
@@ -0,0 +1,61 @@
+
+/* Hex display */
+
+.segment-raw {
+
+ color: @base1;
+
+}
+
+.segment-raw-full {
+
+ color: @base01;
+
+}
+
+.segment-raw-null {
+
+ color: @base02;
+
+}
+
+.segment-printable {
+
+ color: @base1;
+
+}
+
+.segment-not-printable {
+
+ color: @base02;
+
+}
+
+/* Assembly views */
+
+.segment-phys-addr-padding,
+.segment-virt-addr-padding {
+
+ color: @base02;
+
+}
+
+.segment-phys-addr,
+.segment-virt-addr {
+
+ color: @base01;
+
+}
+
+.segment-comment {
+
+ color: @base1;
+
+}
+
+.segment-keyword,
+.segment-instruction {
+
+ color: @base2;
+
+}
diff --git a/themes/Solarized/segments-light.css b/themes/Solarized/segments-light.css
new file mode 100644
index 0000000..74255e4
--- /dev/null
+++ b/themes/Solarized/segments-light.css
@@ -0,0 +1,61 @@
+
+/* Hex display */
+
+.segment-raw {
+
+ color: @base01;
+
+}
+
+.segment-raw-full {
+
+ color: @base1;
+
+}
+
+.segment-raw-null {
+
+ color: @base2;
+
+}
+
+.segment-printable {
+
+ color: @base01;
+
+}
+
+.segment-not-printable {
+
+ color: @base2;
+
+}
+
+/* Assembly views */
+
+.segment-phys-addr-padding,
+.segment-virt-addr-padding {
+
+ color: @base2;
+
+}
+
+.segment-phys-addr,
+.segment-virt-addr {
+
+ color: @base1;
+
+}
+
+.segment-comment {
+
+ color: @base01;
+
+}
+
+.segment-keyword,
+.segment-instruction {
+
+ color: @base02;
+
+}
diff --git a/themes/Solarized/segments.css b/themes/Solarized/segments.css
new file mode 100644
index 0000000..0391466
--- /dev/null
+++ b/themes/Solarized/segments.css
@@ -0,0 +1,48 @@
+
+/* Assembly views */
+
+.segment-label {
+
+ color: @blue;
+
+}
+
+.segment-register {
+
+ color: @violet;
+
+}
+
+.segment-immediate {
+
+ color: @orange;
+
+}
+
+.segment-string {
+
+ color: @yellow;
+
+}
+
+.segment-keyword {
+
+ font-style: italic;
+
+}
+
+.segment-punct {
+
+ color: @cyan;
+
+}
+
+.segment-hooks,
+.segment-ltgt,
+.segment-signs {
+
+ color: @cyan;
+
+ font-weight: bold;
+
+}
diff --git a/themes/Solarized/widgets-dark.css b/themes/Solarized/widgets-dark.css
new file mode 100644
index 0000000..5265d56
--- /dev/null
+++ b/themes/Solarized/widgets-dark.css
@@ -0,0 +1,6 @@
+
+.graph-block-background {
+
+ background-color: @base03;
+
+}
diff --git a/themes/Solarized/widgets-light.css b/themes/Solarized/widgets-light.css
new file mode 100644
index 0000000..b55cae2
--- /dev/null
+++ b/themes/Solarized/widgets-light.css
@@ -0,0 +1,6 @@
+
+.graph-block-background {
+
+ background-color: @base3;
+
+}