fix(color): focus outline clipped on the color bars when editing a color (#6741)
Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
This commit is contained in:
@@ -215,22 +215,19 @@ class BarColorType : public ColorType
|
||||
{
|
||||
auto spacePerBar = (parent->width() / MAX_BARS);
|
||||
|
||||
int leftPos = 0;
|
||||
rect_t r;
|
||||
r.y = ColorEditor::BAR_MARGIN;
|
||||
r.w = spacePerBar - ColorEditor::BAR_MARGIN;
|
||||
r.h = parent->height() - (ColorEditor::BAR_MARGIN + ColorEditor::BAR_HEIGHT_OFFSET);
|
||||
|
||||
for (int i = 0; i < MAX_BARS; i++) {
|
||||
r.x = leftPos + ColorEditor::BAR_MARGIN;
|
||||
r.x = i * spacePerBar + ColorEditor::BAR_MARGIN / 2;
|
||||
|
||||
bars[i] = new ColorBar(parent, r);
|
||||
leftPos += spacePerBar;
|
||||
|
||||
// bar labels
|
||||
auto bar = bars[i];
|
||||
auto x = bar->left();
|
||||
auto y = bar->bottom();
|
||||
auto x = bars[i]->left() + PAD_TINY;
|
||||
auto y = bars[i]->bottom();
|
||||
|
||||
barLabels[i] = create_bar_label(parent->getLvObj(), x, y + ColorEditor::LBL_YO);
|
||||
barValLabels[i] = create_bar_value_label(parent->getLvObj(), x + ColorEditor::VAL_XO, y + PAD_THREE);
|
||||
|
||||
Reference in New Issue
Block a user