Skip to content

Commit

Permalink
stole @philmoz idea to bold the selected switch position to make it s…
Browse files Browse the repository at this point in the history
…tand out more
  • Loading branch information
mha1 authored and pfeerick committed Dec 22, 2022
1 parent e564ce0 commit d6b2ef7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions radio/src/gui/colorlcd/layouts/sliders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ void MainView6POS::paint(BitmapBuffer * dc)
#if NUM_XPOTS > 0 // prevent compiler warning
coord_t x = MULTIPOS_W_SPACING/4;
for (uint8_t value = 0; value < XPOTS_MULTIPOS_COUNT; value++) {
//dc->drawSolidVerticalLine(x, 4, 9, COLOR_THEME_SECONDARY1);
dc->drawNumber(x+TRIM_SQUARE_SIZE/4, 0, value+1, FONT(XS) | COLOR_THEME_SECONDARY1);
x += MULTIPOS_W_SPACING;
}
Expand All @@ -98,7 +97,7 @@ void MainView6POS::paint(BitmapBuffer * dc)
value = (potsPos[idx] & 0x0f);
x = MULTIPOS_W_SPACING/4+MULTIPOS_W_SPACING*value;
drawTrimSquare(dc, x, 0, COLOR_THEME_FOCUS);
dc->drawNumber(x+MULTIPOS_W_SPACING/4, 0, value+1, FONT(XS) | COLOR_THEME_PRIMARY2);
dc->drawNumber(x+MULTIPOS_W_SPACING/4, -2, value+1, FONT(BOLD) | COLOR_THEME_PRIMARY2);
#endif
}

Expand Down
1 change: 0 additions & 1 deletion radio/src/gui/colorlcd/view_main_decoration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ ViewMainDecoration::ViewMainDecoration(Window* parent) :
w_br = create_layout_box(parent, LV_ALIGN_BOTTOM_RIGHT, LV_FLEX_FLOW_COLUMN);

w_bc = create_layout_box(parent, LV_ALIGN_BOTTOM_MID, LV_FLEX_FLOW_COLUMN);
//lv_obj_set_style_flex_cross_place(w_bc->getLvObj(), LV_FLEX_ALIGN_CENTER, 0);
lv_obj_set_flex_align(w_bc->getLvObj(), LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_SPACE_AROUND);

createTrims(w_ml, w_mr, w_bl, w_br);
Expand Down

0 comments on commit d6b2ef7

Please sign in to comment.