summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenny Ballou <kballou@devnulllabs.io>2018-08-07 17:13:34 -0600
committerKenny Ballou <kballou@devnulllabs.io>2018-08-07 17:19:38 -0600
commit7aecd6d7c9894fe585ec4cefa0da67c559c1cdc7 (patch)
tree71d921638ed28585eb59854625c3580c87370bc8
parent12e2fc69f9b7698f19ab21d98f92151029c669fb (diff)
downloadsakura-7aecd6d7c9894fe585ec4cefa0da67c559c1cdc7.tar.gz
sakura-7aecd6d7c9894fe585ec4cefa0da67c559c1cdc7.tar.xz
sakura.c: add zenburn theme palettezenburn-theme
Add the zenburn color palette and selection option to sakura.c. The color palette was converted from Emacs Zenburn theme[0]. [0]: https://github.com/bbatsov/zenburn-emacs Signed-off-by: Kenny Ballou <kballou@devnulllabs.io>
-rw-r--r--src/sakura.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/sakura.c b/src/sakura.c
index e72a9aa..5ccf60d 100644
--- a/src/sakura.c
+++ b/src/sakura.c
@@ -232,6 +232,25 @@ const GdkRGBA rxvt_palette[PALETTE_SIZE] = {
{1, 1, 1, 1 }
};
+const GdkRGBA zenburn_palette[PALETTE_SIZE] = {
+ {0.247058, 0.247058, 0.247058, 1 },
+ {0.8, 0.576471, 0.576471, 1 },
+ {0.498039, 0.623529, 0.498039, 1 },
+ {0.941117, 0.087451, 0.068627, 1 },
+ {0.549019, 0.815686, 0.827451, 1 },
+ {0.862745, 0.549019, 0.764705, 1 },
+ {0.576471, 0.878431, 0.890196, 1 },
+ {0.980392, 0.921568, 0.843137, 1 },
+ {0.396078, 0.396078, 0.333333, 1 },
+ {0.737254, 0.513725, 0.513725, 1 },
+ {0.435294, 0.560784, 0.435294, 1 },
+ {0.878431, 0.811765, 0.623529, 1 },
+ {0.486275, 0.721568, 0.733333, 1 },
+ {0.862745, 0.549019, 0.764705, 1 },
+ {0.576471, 0.878431, 0.890196, 1 },
+ {1, 1, 1, 1 }
+};
+
#define HIG_DIALOG_CSS "* {\n"\
"-GtkDialog-action-area-border : 12;\n"\
@@ -1912,6 +1931,8 @@ sakura_set_palette(GtkWidget *widget, void *data)
sakura.palette=tango_palette;
} else if (strcmp(palette, "solarized_dark")==0) {
sakura.palette=solarized_dark_palette;
+ } else if (strcmp(palette, "zenburn")==0) {
+ sakura.palette=zenburn_palette;
} else {
sakura.palette=solarized_light_palette;
}