aboutsummaryrefslogtreecommitdiff
path: root/atom_inspector_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 /atom_inspector_nk.c
parent345db0ecf42ec9866a562572b8a9222e85a6c4ed (diff)
downloadsherlock.lv2-0dca8bf47f83cbe07dbe899acf01d1b9c75c95c5.tar.xz
nk: fix lexer color theme, support sratom pretty.
Diffstat (limited to 'atom_inspector_nk.c')
-rw-r--r--atom_inspector_nk.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/atom_inspector_nk.c b/atom_inspector_nk.c
index 1551df5..4631a6b 100644
--- a/atom_inspector_nk.c
+++ b/atom_inspector_nk.c
@@ -20,7 +20,6 @@
#include <sherlock.h>
#include <sherlock_nk.h>
-
#include <encoder.h>
#define NS_RDF (const uint8_t*)"http://www.w3.org/1999/02/22-rdf-syntax-ns#"
@@ -224,7 +223,7 @@ _atom_inspector_expose(struct nk_context *ctx, struct nk_rect wbounds, void *dat
nk_list_view_end(&lview);
}
- nk_layout_row_dynamic(ctx, widget_h, 3);
+ nk_layout_row_dynamic(ctx, widget_h, 4);
{
if(nk_checkbox_label(ctx, "overwrite", &handle->state.overwrite))
_toggle(handle, handle->urid.overwrite, handle->state.overwrite, true);
@@ -232,6 +231,11 @@ _atom_inspector_expose(struct nk_context *ctx, struct nk_rect wbounds, void *dat
_toggle(handle, handle->urid.block, handle->state.block, true);
if(nk_checkbox_label(ctx, "follow", &handle->state.follow))
_toggle(handle, handle->urid.follow, handle->state.follow, true);
+ if(nk_checkbox_label(ctx, "pretty", &handle->pretty_numbers))
+ {
+ handle->ttl_dirty = true;
+ sratom_set_pretty_numbers(handle->sratom, handle->pretty_numbers);
+ }
}
const bool max_reached = handle->n_item >= MAX_LINES;