summaryrefslogtreecommitdiff
path: root/themes
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
parent459b345d69532825f21bdcd3e4f92009b0a046dc (diff)
Introduced the first features of a hexadecimal viewer.
Diffstat (limited to 'themes')
-rw-r--r--themes/Adwaita/display.css45
-rw-r--r--themes/Makefile.am4
-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
11 files changed, 254 insertions, 46 deletions
diff --git a/themes/Adwaita/display.css b/themes/Adwaita/display.css
index f5bd72c..977490d 100644
--- a/themes/Adwaita/display.css
+++ b/themes/Adwaita/display.css
@@ -3,8 +3,6 @@
color: #000;
- font-style: normal;
- font-weight: normal;
}
@@ -12,8 +10,6 @@
color: #37b05b;
- font-style: normal;
- font-weight: normal;
}
@@ -22,7 +18,6 @@
color: #828282;
font-style: italic;
- font-weight: normal;
}
@@ -30,62 +25,42 @@
color: darker(#7c7c7b);
- font-style: normal;
- font-weight: normal;
-
}
.segment-phys-addr {
color: #7c7c7b;
- font-style: normal;
- font-weight: normal;
-
}
.segment-virt-addr-padding {
color: darker(#7c7c7b);
- font-style: normal;
- font-weight: normal;
-
}
.segment-virt-addr {
color: #7c7c7b;
- font-style: normal;
- font-weight: normal;
-
}
.segment-raw-code {
color: #000;
- font-style: normal;
- font-weight: normal;
-
}
.segment-label {
color: #ffd200;
- font-style: normal;
- font-weight: normal;
-
}
.segment-instruction {
color: #bebebe;
- font-style: normal;
- font-weight: normal;
}
@@ -93,8 +68,6 @@
color: #a020f0;
- font-style: normal;
- font-weight: normal;
}
@@ -102,8 +75,6 @@
color: #4141d1;
- font-style: normal;
- font-weight: normal;
}
@@ -111,7 +82,6 @@
color: #000;
- font-style: normal;
font-weight: bold;
}
@@ -120,7 +90,6 @@
color: #000;
- font-style: normal;
font-weight: bold;
}
@@ -129,7 +98,6 @@
color: #000;
- font-style: normal;
font-weight: bold;
}
@@ -138,8 +106,6 @@
color: #000;
- font-style: normal;
- font-weight: normal;
}
@@ -147,8 +113,6 @@
color: #c80a0a;
- font-style: normal;
- font-weight: normal;
}
@@ -156,8 +120,6 @@
color: #000;
- font-style: normal;
- font-weight: normal;
}
@@ -165,8 +127,6 @@
color: #cc7e00;
- font-style: normal;
- font-weight: normal;
}
@@ -174,8 +134,6 @@
color: #000;
- font-style: normal;
- font-weight: normal;
}
@@ -183,8 +141,6 @@
color: #000;
- font-style: normal;
- font-weight: normal;
}
@@ -192,7 +148,6 @@
color: #ff0000;
- font-style: normal;
font-weight: bold;
}
diff --git a/themes/Makefile.am b/themes/Makefile.am
index 8010143..d75b446 100644
--- a/themes/Makefile.am
+++ b/themes/Makefile.am
@@ -1,2 +1,4 @@
-SUBDIRS = Adwaita
+SUBDIRS = \
+ Adwaita \
+ Solarized
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;
+
+}