mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-24 05:23:06 +00:00
Fixed
This commit is contained in:
parent
fbe7209817
commit
05641378d9
2 changed files with 4 additions and 1 deletions
|
@ -49,6 +49,8 @@ static void hid_mouse_jiggler_draw_callback(Canvas* canvas, void* context) {
|
||||||
canvas_draw_icon(canvas, 80, 19, &I_ButtonRight_4x7);
|
canvas_draw_icon(canvas, 80, 19, &I_ButtonRight_4x7);
|
||||||
elements_multiline_text(canvas, 91, 26, furi_string_get_cstr(interval_str));
|
elements_multiline_text(canvas, 91, 26, furi_string_get_cstr(interval_str));
|
||||||
|
|
||||||
|
furi_string_free(interval_str);
|
||||||
|
|
||||||
canvas_set_font(canvas, FontPrimary);
|
canvas_set_font(canvas, FontPrimary);
|
||||||
elements_multiline_text(canvas, AlignLeft, 40, "Press Start\nto jiggle");
|
elements_multiline_text(canvas, AlignLeft, 40, "Press Start\nto jiggle");
|
||||||
canvas_set_font(canvas, FontSecondary);
|
canvas_set_font(canvas, FontSecondary);
|
||||||
|
|
|
@ -33,13 +33,14 @@ static void hid_mouse_jiggler_draw_callback(Canvas* canvas, void* context) {
|
||||||
// Timeout
|
// Timeout
|
||||||
FuriString* interval_str = furi_string_alloc_printf("%d", intervals[model->interval_idx]);
|
FuriString* interval_str = furi_string_alloc_printf("%d", intervals[model->interval_idx]);
|
||||||
elements_multiline_text(canvas, AlignLeft, 26, "Interval (ms):");
|
elements_multiline_text(canvas, AlignLeft, 26, "Interval (ms):");
|
||||||
elements_multiline_text(canvas, AlignLeft, 26, "Interval (ms):");
|
|
||||||
canvas_set_font(canvas, FontSecondary);
|
canvas_set_font(canvas, FontSecondary);
|
||||||
if(model->interval_idx != 0) canvas_draw_icon(canvas, 74, 19, &I_ButtonLeft_4x7);
|
if(model->interval_idx != 0) canvas_draw_icon(canvas, 74, 19, &I_ButtonLeft_4x7);
|
||||||
if(model->interval_idx != LENGTH(intervals) - 1)
|
if(model->interval_idx != LENGTH(intervals) - 1)
|
||||||
canvas_draw_icon(canvas, 80, 19, &I_ButtonRight_4x7);
|
canvas_draw_icon(canvas, 80, 19, &I_ButtonRight_4x7);
|
||||||
elements_multiline_text(canvas, 91, 26, furi_string_get_cstr(interval_str));
|
elements_multiline_text(canvas, 91, 26, furi_string_get_cstr(interval_str));
|
||||||
|
|
||||||
|
furi_string_free(interval_str);
|
||||||
|
|
||||||
canvas_set_font(canvas, FontPrimary);
|
canvas_set_font(canvas, FontPrimary);
|
||||||
elements_multiline_text(canvas, AlignLeft, 40, "Press Start\nto jiggle");
|
elements_multiline_text(canvas, AlignLeft, 40, "Press Start\nto jiggle");
|
||||||
canvas_set_font(canvas, FontSecondary);
|
canvas_set_font(canvas, FontSecondary);
|
||||||
|
|
Loading…
Reference in a new issue