fix(color): minor layout issues on mixes and curves screens (#6000)

This commit is contained in:
philmoz
2025-03-19 09:09:45 +10:00
committed by GitHub
parent d542cc4086
commit 7af358564c
2 changed files with 2 additions and 2 deletions
@@ -67,7 +67,7 @@ class CurveButton : public Button
CurveHeader &curve = g_model.curves[index]; CurveHeader &curve = g_model.curves[index];
snprintf(buf, 32, "%s %d %s", STR_CURVE_TYPES[curve.type], 5 + curve.points, snprintf(buf, 32, "%s %d %s", STR_CURVE_TYPES[curve.type], 5 + curve.points,
STR_PTS); STR_PTS);
new StaticText(this, {0, height() - INFO_H + 1, LV_PCT(100), 16}, buf, new StaticText(this, {0, height() - INFO_H, LV_PCT(100), 0}, buf,
COLOR_THEME_SECONDARY1_INDEX, CENTERED | FONT(BOLD)); COLOR_THEME_SECONDARY1_INDEX, CENTERED | FONT(BOLD));
} }
+1 -1
View File
@@ -181,7 +181,7 @@ class MixGroup : public InputMixGroupBase
etx_font(chText, FONT_XS_INDEX); etx_font(chText, FONT_XS_INDEX);
lv_label_set_text_fmt(chText, TR_CH "%" PRIu32, lv_label_set_text_fmt(chText, TR_CH "%" PRIu32,
UINT32_C(idx - MIXSRC_FIRST_CH + 1)); UINT32_C(idx - MIXSRC_FIRST_CH + 1));
lv_obj_set_pos(chText, PAD_TINY, CHNUM_Y); lv_obj_set_pos(chText, PAD_TINY, CHNUM_Y-1);
} }
refresh(); refresh();