Heli, Inputs & Mixers: small UI tweaks
This commit is contained in:
committed by
Raphael Coeffic
parent
7f3b826b05
commit
431b423d63
@@ -65,7 +65,9 @@ void ModelHeliPage::build(FormWindow* form)
|
||||
GET_SET_DEFAULT(g_model.swashR.elevatorSource));
|
||||
|
||||
// Elevator weight
|
||||
new StaticText(line, rect_t{}, STR_WEIGHT, 0, COLOR_THEME_PRIMARY1);
|
||||
auto w = new StaticText(line, rect_t{}, STR_WEIGHT, 0, COLOR_THEME_PRIMARY1);
|
||||
lv_obj_set_style_grid_cell_x_align(w->getLvObj(), LV_GRID_ALIGN_END, 0);
|
||||
lv_obj_set_style_pad_right(w->getLvObj(), lv_dpx(8), 0);
|
||||
new NumberEdit(line, rect_t{}, -100, 100,
|
||||
GET_SET_DEFAULT(g_model.swashR.elevatorWeight));
|
||||
|
||||
@@ -76,7 +78,9 @@ void ModelHeliPage::build(FormWindow* form)
|
||||
GET_SET_DEFAULT(g_model.swashR.aileronSource));
|
||||
|
||||
// Aileron weight
|
||||
new StaticText(line, rect_t{}, STR_WEIGHT, 0, COLOR_THEME_PRIMARY1);
|
||||
w = new StaticText(line, rect_t{}, STR_WEIGHT, 0, COLOR_THEME_PRIMARY1);
|
||||
lv_obj_set_style_grid_cell_x_align(w->getLvObj(), LV_GRID_ALIGN_END, 0);
|
||||
lv_obj_set_style_pad_right(w->getLvObj(), lv_dpx(8), 0);
|
||||
new NumberEdit(line, rect_t{}, -100, 100,
|
||||
GET_SET_DEFAULT(g_model.swashR.aileronWeight));
|
||||
|
||||
@@ -87,7 +91,9 @@ void ModelHeliPage::build(FormWindow* form)
|
||||
GET_SET_DEFAULT(g_model.swashR.collectiveSource));
|
||||
|
||||
// Collective weight
|
||||
new StaticText(line, rect_t{}, STR_WEIGHT, 0, COLOR_THEME_PRIMARY1);
|
||||
w = new StaticText(line, rect_t{}, STR_WEIGHT, 0, COLOR_THEME_PRIMARY1);
|
||||
lv_obj_set_style_grid_cell_x_align(w->getLvObj(), LV_GRID_ALIGN_END, 0);
|
||||
lv_obj_set_style_pad_right(w->getLvObj(), lv_dpx(8), 0);
|
||||
new NumberEdit(line, rect_t{}, -100, 100,
|
||||
GET_SET_DEFAULT(g_model.swashR.collectiveWeight));
|
||||
|
||||
|
||||
@@ -797,7 +797,7 @@ static void theme_apply(lv_theme_t * th, lv_obj_t * obj)
|
||||
}
|
||||
else if(lv_obj_check_type(obj, &input_mix_line_class)) {
|
||||
lv_obj_add_style(obj, &styles.line_btn, 0);
|
||||
lv_obj_add_style(obj, &styles.pad_tiny, 0);
|
||||
lv_obj_add_style(obj, &styles.pad_small, 0);
|
||||
lv_obj_add_style(obj, &styles.bg_color_active, LV_STATE_CHECKED);
|
||||
lv_obj_add_style(obj, &styles.focus_border, LV_STATE_FOCUSED);
|
||||
}
|
||||
|
||||
Vendored
+1
-1
Submodule radio/src/thirdparty/libopenui updated: 3e17d1cd26...ae44b47611
Reference in New Issue
Block a user