aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2020-04-28 18:40:41 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2020-04-28 18:40:41 +0200
commit3c799bcb019308d87ab4b0154fee273b412db699 (patch)
treeaf22582236c19f3339925cedaa3030bd92a705ab
parent66a4d9386fc9f0c7fdf848fd8a979f01900e7da8 (diff)
downloadmephisto.lv2-3c799bcb019308d87ab4b0154fee273b412db699.tar.xz
ui: use spinner_bool for button/checkbox.
-rw-r--r--VERSION2
-rw-r--r--mephisto_ui.c11
2 files changed, 5 insertions, 8 deletions
diff --git a/VERSION b/VERSION
index 7874d11..7d7d637 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.11.25
+0.11.27
diff --git a/mephisto_ui.c b/mephisto_ui.c
index c3470b0..dfdff0a 100644
--- a/mephisto_ui.c
+++ b/mephisto_ui.c
@@ -567,7 +567,8 @@ _expose_slot(plughandle_t *handle, const d2tk_rect_t *rect, unsigned k)
{
bool val = handle->state.control[k] > 0.5;
- const d2tk_state_t state = d2tk_base_dial_bool(base, D2TK_ID_IDX(k), rect, &val);
+ const d2tk_state_t state = d2tk_base_spinner_bool(base, D2TK_ID_IDX(k), rect,
+ -1, handle->state.control_label[k], &val);
if(d2tk_state_is_down(state))
{
@@ -586,7 +587,8 @@ _expose_slot(plughandle_t *handle, const d2tk_rect_t *rect, unsigned k)
{
bool val = handle->state.control[k] > 0.5;
- if(d2tk_base_dial_bool_is_changed(base, D2TK_ID_IDX(k), rect, &val))
+ if(d2tk_base_spinner_bool_is_changed(base, D2TK_ID_IDX(k), rect,
+ -1, handle->state.control_label[k], &val))
{
handle->state.control[k] = val;
@@ -1149,11 +1151,6 @@ _idle(LV2UI_Handle instance)
handle->modtime = st.st_mtime;
}
- d2tk_base_t *base = d2tk_frontend_get_base(handle->dpugl);
- d2tk_style_t style = *d2tk_base_get_default_style(base);
- style.font_face = "FiraCode:regular";
- d2tk_base_set_style(base, &style);
-
if(d2tk_frontend_step(handle->dpugl))
{
handle->done = 1;