Convert more screens to SimpleDialogScreen

This commit is contained in:
Henrik Rydgård committed 2025-10-29 09:12:37 +01:00
1 parent e37c0cbef3
commit 78f20846c5
9 files changed
+27 -28

No files matched your search

+2 -5
View File
@@ -26,15 +26,12 @@ UploadScreen::~UploadScreen() {
StopWebServer(WebServerFlags::FILE_UPLOAD);
}
void UploadScreen::CreateViews() {
void UploadScreen::CreateDialogViews(UI::ViewGroup *root) {
using namespace UI;
auto n = GetI18NCategory(I18NCat::NETWORKING);
root_ = new LinearLayout(ORIENT_VERTICAL);
root_->Add(new TopBar(""));
LinearLayout *container = new LinearLayout(ORIENT_VERTICAL, new LinearLayoutParams(500, FILL_PARENT, 0.0f, UI::Gravity::G_HCENTER, Margins(10)));
root_->Add(container);
root->Add(container);
container->Add(new TextWithImage(ImageID("I_FOLDER_UPLOAD"), targetFolder_.ToVisualString()));
container->Add(new Spacer(20.0f));