summaryrefslogtreecommitdiffstats
path: root/src/color.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-02-24 08:31:52 +0000
committerDavid Robillard <d@drobilla.net>2015-02-24 08:31:52 +0000
commit1b169cbe8955e5df9cd1c6d27d14fc2d8fb2c113 (patch)
tree73ad9701f40897bbe3f61f51bf587c6f94cbf648 /src/color.h
parent0f60c61b0d7424005385c5687377b48ceb0c0c9b (diff)
downloadganv-1b169cbe8955e5df9cd1c6d27d14fc2d8fb2c113.tar.gz
ganv-1b169cbe8955e5df9cd1c6d27d14fc2d8fb2c113.tar.bz2
ganv-1b169cbe8955e5df9cd1c6d27d14fc2d8fb2c113.zip
Add light theme for typesettable canvas export.
Don't show edge handles on export. Fix port control drawing to be pixel perfect. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5605 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/color.h')
-rw-r--r--src/color.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/color.h b/src/color.h
index 26cd7ea..d96bb2a 100644
--- a/src/color.h
+++ b/src/color.h
@@ -18,9 +18,21 @@
#include <glib.h>
-#define DEFAULT_TEXT_COLOR 0xFFFFFFFF
-#define DEFAULT_FILL_COLOR 0x1E2224FF
-#define DEFAULT_BORDER_COLOR 0x3E4244FF
+#ifdef GANV_USE_LIGHT_THEME
+# define DEFAULT_BACKGROUND_COLOR 0xFFFFFFFF
+# define DEFAULT_TEXT_COLOR 0x000000FF
+# define DEFAULT_FILL_COLOR 0xEEEEEEFF
+# define DEFAULT_BORDER_COLOR 0x000000FF
+# define PORT_BORDER_COLOR(fill) 0x000000FF
+# define EDGE_COLOR(base) highlight_color(tail_color, -48)
+#else
+# define DEFAULT_BACKGROUND_COLOR 0x000000FF
+# define DEFAULT_TEXT_COLOR 0xFFFFFFFF
+# define DEFAULT_FILL_COLOR 0x1E2224FF
+# define DEFAULT_BORDER_COLOR 0x3E4244FF
+# define PORT_BORDER_COLOR(fill) highlight_color(fill, 0x20)
+# define EDGE_COLOR(base) highlight_color(tail_color, 48)
+#endif
static inline void
color_to_rgba(guint color, double* r, double* g, double* b, double* a)