aboutsummaryrefslogtreecommitdiff
path: root/sherlock_nk.c
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2017-02-19 12:08:10 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2017-02-19 12:08:10 +0100
commit0dca8bf47f83cbe07dbe899acf01d1b9c75c95c5 (patch)
treecc20499d1cc4fd729b8d99ce5b416a47e0131a99 /sherlock_nk.c
parent345db0ecf42ec9866a562572b8a9222e85a6c4ed (diff)
downloadsherlock.lv2-0dca8bf47f83cbe07dbe899acf01d1b9c75c95c5.tar.xz
nk: fix lexer color theme, support sratom pretty.
Diffstat (limited to 'sherlock_nk.c')
-rw-r--r--sherlock_nk.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/sherlock_nk.c b/sherlock_nk.c
index 8684f7c..c272689 100644
--- a/sherlock_nk.c
+++ b/sherlock_nk.c
@@ -29,20 +29,6 @@
#define NK_PUGL_IMPLEMENTATION
#include <sherlock_nk.h>
-#define ful 0xff
-#define one 0xbb
-#define two 0x66
-#define non 0x0
-const struct nk_color white = {.r = one, .g = one, .b = one, .a = ful};
-const struct nk_color gray = {.r = two, .g = two, .b = two, .a = ful};
-const struct nk_color yellow = {.r = one, .g = one, .b = non, .a = ful};
-const struct nk_color magenta = {.r = one, .g = two, .b = one, .a = ful};
-const struct nk_color green = {.r = non, .g = one, .b = non, .a = ful};
-const struct nk_color blue = {.r = non, .g = one, .b = one, .a = ful};
-const struct nk_color orange = {.r = one, .g = two, .b = non, .a = ful};
-const struct nk_color violet = {.r = two, .g = two, .b = one, .a = ful};
-const struct nk_color red = {.r = one, .g = non, .b = non, .a = ful};
-
const char *max_items [5] = {
"1k", "2k", "4k", "8k", "16k"
};
@@ -349,7 +335,7 @@ instantiate(const LV2UI_Descriptor *descriptor, const char *plugin_uri,
handle->editor.lexer.data = NULL;
handle->sratom = sratom_new(handle->map);
- sratom_set_pretty_numbers(handle->sratom, false);
+ sratom_set_pretty_numbers(handle->sratom, handle->pretty_numbers);
handle->base_uri = "file:///tmp/base";
return handle;