From a467e74a78dbf1463ed16dee4de5c59048b4d4ec Mon Sep 17 00:00:00 2001 From: Erwin Ried <1091420+eried@users.noreply.github.com> Date: Sun, 24 May 2020 23:34:49 +0200 Subject: [PATCH] Minor UI changes to Soundboard --- firmware/application/apps/soundboard_app.cpp | 6 +++--- firmware/application/apps/soundboard_app.hpp | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/firmware/application/apps/soundboard_app.cpp b/firmware/application/apps/soundboard_app.cpp index 3c267a4b..2afd9790 100644 --- a/firmware/application/apps/soundboard_app.cpp +++ b/firmware/application/apps/soundboard_app.cpp @@ -207,8 +207,8 @@ SoundBoardView::SoundBoardView( &menu_view, &text_empty, &options_tone_key, - &text_title, - &text_duration, + //&text_title, + //&text_duration, &progressbar, &check_loop, &check_random, @@ -217,7 +217,7 @@ SoundBoardView::SoundBoardView( refresh_list(); - text_title.set(to_string_dec_uint(file_list.size())); + //text_title.set(to_string_dec_uint(file_list.size())); tone_keys_populate(options_tone_key); options_tone_key.set_selected_index(0); diff --git a/firmware/application/apps/soundboard_app.hpp b/firmware/application/apps/soundboard_app.hpp index 2bd64b60..cea284bd 100644 --- a/firmware/application/apps/soundboard_app.hpp +++ b/firmware/application/apps/soundboard_app.hpp @@ -80,12 +80,12 @@ private: void on_select_entry(); Labels labels { - { { 0, 20 * 8 + 4 }, "Title:", Color::light_grey() }, - { { 0, 23 * 8 }, "Key:", Color::light_grey() } + //{ { 0, 20 * 8 + 4 }, "Title:", Color::light_grey() }, + { { 0, 180 }, "Key:", Color::light_grey() } }; MenuView menu_view { - { 0, 2 * 8, 240, 20 * 8 }, + { 0, 0, 240, 175 }, true }; Text text_empty { @@ -93,22 +93,22 @@ private: "Empty directory !", }; - Text text_title { + /*Text text_title { { 6 * 8, 20 * 8 + 4, 15 * 8, 16 } - }; + };*/ - Text text_duration { + /*Text text_duration { { 22 * 8, 20 * 8 + 4, 6 * 8, 16 } - }; + };*/ OptionsField options_tone_key { - { 4 * 8, 23 * 8 }, + { 32 , 180 }, 18, { } }; Checkbox check_loop { - { 8, 25 * 8 + 4 }, + { 0, 25 * 8 + 4 }, 4, "Loop" }; -- GitLab