summaryrefslogtreecommitdiff
path: root/gui-over.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-07 07:51:56 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-07 07:51:56 -0300
commit61384f7af053849beef7183bb27a86c3f6f20964 (patch)
tree5bc68d0263ab6ea35d63b2aedd5e3ac388b4855e /gui-over.c
parent4d9df47b6c207ebc1b745ae483c8792280c04e26 (diff)
downloadeeshow-61384f7af053849beef7183bb27a86c3f6f20964.tar.gz
eeshow-61384f7af053849beef7183bb27a86c3f6f20964.tar.bz2
eeshow-61384f7af053849beef7183bb27a86c3f6f20964.zip
eeshow/: selection of 2nd history entry (for comparisons, WIP)
Diffstat (limited to 'gui-over.c')
-rw-r--r--gui-over.c58
1 files changed, 47 insertions, 11 deletions
diff --git a/gui-over.c b/gui-over.c
index 5054b9a..f54a393 100644
--- a/gui-over.c
+++ b/gui-over.c
@@ -69,13 +69,29 @@ struct overlay {
#define DENSE_SKIP 5
#define DENSE_WIDTH 1
-#define BG_STANDARD { 0.8, 0.9, 1.0, 0.8 }
-#define FG_STANDARD { 0.0, 0.0, 0.0, 1.0 }
-#define FRAME_STANDARD { 0.5, 0.5, 1.0, 0.7 }
+#define BG_STANDARD { 0.8, 0.9, 1.0, 0.8 }
+#define FG_STANDARD { 0.0, 0.0, 0.0, 1.0 }
+#define FRAME_STANDARD { 0.5, 0.5, 1.0, 0.7 }
-#define BG_SELECTED BG_STANDARD
-#define FG_SELECTED FG_STANDARD
-#define FRAME_SELECTED { 0.0, 0.0, 1.0, 0.8 }
+#define BG_SELECTED BG_STANDARD
+#define FG_SELECTED FG_STANDARD
+#define FRAME_SELECTED { 0.0, 0.0, 1.0, 0.8 }
+
+#define BG_DIFF_NEW BG_STANDARD
+#define FG_DIFF_NEW { 0.0, 0.6, 0.0, 1.0 }
+#define FRAME_DIFF_NEW FRAME_STANDARD
+
+#define BG_DIFF_NEW_SELECTED BG_DIFF_NEW
+#define FG_DIFF_NEW_SELECTED FG_DIFF_NEW
+#define FRAME_DIFF_NEW_SELECTED FRAME_SELECTED
+
+#define BG_DIFF_OLD BG_STANDARD
+#define FG_DIFF_OLD { 0.8, 0.0, 0.0, 1.0 }
+#define FRAME_DIFF_OLD FRAME_STANDARD
+
+#define BG_DIFF_OLD_SELECTED BG_DIFF_OLD
+#define FG_DIFF_OLD_SELECTED FG_DIFF_OLD
+#define FRAME_DIFF_OLD_SELECTED FRAME_SELECTED
#define BOX_ATTRS(style) \
@@ -92,22 +108,42 @@ struct overlay {
.fg = FG_##style, \
.frame = FRAME_##style
-#define STANDARD COLOR_ATTRS(STANDARD)
-#define SELECTED COLOR_ATTRS(SELECTED)
+#define STANDARD COLOR_ATTRS(STANDARD)
+#define SELECTED COLOR_ATTRS(SELECTED)
+#define DIFF_NEW COLOR_ATTRS(DIFF_NEW)
+#define DIFF_NEW_SELECTED COLOR_ATTRS(DIFF_NEW_SELECTED)
+#define DIFF_OLD COLOR_ATTRS(DIFF_OLD)
+#define DIFF_OLD_SELECTED COLOR_ATTRS(DIFF_OLD_SELECTED)
struct overlay_style overlay_style_default = {
- .font = "Helvetica 10",
+ .font = NORMAL_FONT,
NORMAL,
STANDARD,
}, overlay_style_dense = {
- .font = "Helvetiva 10",
+ .font = NORMAL_FONT,
DENSE,
STANDARD,
}, overlay_style_dense_selected = {
- .font = "Helvetica Bold 10",
+ .font = BOLD_FONT,
DENSE,
SELECTED,
+}, overlay_style_diff_new = {
+ .font = NORMAL_FONT,
+ NORMAL,
+ DIFF_NEW,
+}, overlay_style_diff_old = {
+ .font = NORMAL_FONT,
+ NORMAL,
+ DIFF_OLD,
+}, overlay_style_dense_diff_new = {
+ .font = BOLD_FONT,
+ DENSE,
+ DIFF_NEW_SELECTED,
+}, overlay_style_dense_diff_old = {
+ .font = BOLD_FONT,
+ DENSE,
+ DIFF_OLD_SELECTED,
};