From 3239d1ee9dc6b471356ee44aaac6a56c16b53f4f Mon Sep 17 00:00:00 2001 From: "Jamie C. Driver" Date: Mon, 11 Nov 2024 14:57:30 +0000 Subject: [PATCH] usbstorage ui: horizontally centre file-picker and ota progress labels --- main/ui/dialogs.c | 2 +- main/usbhmsc/usbmode.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/main/ui/dialogs.c b/main/ui/dialogs.c index 1eda2c10..03a067d8 100644 --- a/main/ui/dialogs.c +++ b/main/ui/dialogs.c @@ -684,7 +684,7 @@ gui_activity_t* make_progress_bar_activity(const char* title, const char* messag gui_make_text(&node, message, TFT_WHITE); gui_set_parent(node, vsplit); gui_set_padding(node, GUI_MARGIN_TWO_VALUES, 0, 12); - gui_set_align(node, GUI_ALIGN_LEFT, GUI_ALIGN_MIDDLE); + gui_set_align(node, GUI_ALIGN_CENTER, GUI_ALIGN_MIDDLE); // second row, progress bar make_progress_bar(vsplit, progress_bar); diff --git a/main/usbhmsc/usbmode.c b/main/usbhmsc/usbmode.c index c7503c98..6547d2c8 100644 --- a/main/usbhmsc/usbmode.c +++ b/main/usbhmsc/usbmode.c @@ -191,7 +191,6 @@ static bool select_file_from_filtered_list(const char* title, const char* const JADE_ASSERT(label_item); uint8_t selected = 0; - gui_set_align(label_item, GUI_ALIGN_LEFT, GUI_ALIGN_MIDDLE); gui_update_text(filename_item, filenames[selected]); gui_set_current_activity(act); int32_t ev_id;