Skip to content

Commit

Permalink
Fix position of new line on Inputs and Mixes pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Mitchell committed Mar 23, 2023
1 parent 6e12106 commit c43fafe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion radio/src/gui/colorlcd/model_inputs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,8 @@ void ModelInputsPage::build(FormWindow *window)
{
window->setFlexLayout(LV_FLEX_FLOW_COLUMN, 3);

form = window;
form = new FormWindow(window, rect_t{});
form->setFlexLayout(LV_FLEX_FLOW_COLUMN, 3);

groups.clear();
lines.clear();
Expand Down
7 changes: 4 additions & 3 deletions radio/src/gui/colorlcd/model_mixes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,8 @@ void ModelMixesPage::build(FormWindow * window)

window->setFlexLayout(LV_FLEX_FLOW_COLUMN, 3);

form = window;
form = new FormWindow(window, rect_t{});
form->setFlexLayout(LV_FLEX_FLOW_COLUMN, 3);

groups.clear();
lines.clear();
Expand All @@ -542,7 +543,7 @@ void ModelMixesPage::build(FormWindow * window)
}
}

auto box = new FormGroup(form, rect_t{});
auto box = new FormGroup(window, rect_t{});
box->setFlexLayout(LV_FLEX_FLOW_ROW, lv_dpx(8));
box->padLeft(lv_dpx(8));

Expand All @@ -555,7 +556,7 @@ void ModelMixesPage::build(FormWindow * window)
box, rect_t{}, [=]() { return showMonitors; },
[=](uint8_t val) { enableMonitors(val); });

auto btn = new TextButton(form, rect_t{}, LV_SYMBOL_PLUS, [=]() {
auto btn = new TextButton(window, rect_t{}, LV_SYMBOL_PLUS, [=]() {
newMix();
return 0;
});
Expand Down
2 changes: 1 addition & 1 deletion radio/src/gui/colorlcd/radio_setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ void RadioSetupPage::build(FormWindow * window)

// RX channel order
line = window->newLine(&grid);
new StaticText(line, rect_t{}, STR_RXCHANNELORD, 0,
new StaticText(line, rect_t{}, STR_DEF_CHAN_ORD, 0,
COLOR_THEME_PRIMARY1); // RAET->AETR
choice = new Choice(line, rect_t{}, 0, 4 * 3 * 2 - 1,
GET_SET_DEFAULT(g_eeGeneral.templateSetup));
Expand Down

0 comments on commit c43fafe

Please sign in to comment.