mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-01 09:04:02 +00:00
Fix internal rows' focused style in a ButtonSet
This commit is contained in:
parent
61879652cf
commit
4c54c62644
@ -106,7 +106,12 @@ void ButtonSet::Item::onPaint(ui::PaintEvent& ev)
|
|||||||
|
|
||||||
Grid::Info info = buttonSet()->getChildInfo(this);
|
Grid::Info info = buttonSet()->getChildInfo(this);
|
||||||
if (info.col < info.grid_cols-1) rc.w += 1*guiscale();
|
if (info.col < info.grid_cols-1) rc.w += 1*guiscale();
|
||||||
if (info.row < info.grid_rows-1) rc.h += 3*guiscale();
|
if (info.row < info.grid_rows-1) {
|
||||||
|
if (nw == theme->parts.toolbuttonHotFocused())
|
||||||
|
rc.h += 2*guiscale();
|
||||||
|
else
|
||||||
|
rc.h += 3*guiscale();
|
||||||
|
}
|
||||||
|
|
||||||
theme->drawRect(g, rc, nw.get(), bg);
|
theme->drawRect(g, rc, nw.get(), bg);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user