mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:17:42 +00:00
GItemView: Add slightly more horizontal padding to the icon labels.
This commit is contained in:
parent
08085f48a0
commit
bc3c199bb1
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ void GItemView::paint_event(GPaintEvent& event)
|
||||||
|
|
||||||
Rect text_rect { 0, icon_rect.bottom() + 6 + 1, font.width(item_text.to_string()), font.glyph_height() };
|
Rect text_rect { 0, icon_rect.bottom() + 6 + 1, font.width(item_text.to_string()), font.glyph_height() };
|
||||||
text_rect.center_horizontally_within(item_rect);
|
text_rect.center_horizontally_within(item_rect);
|
||||||
text_rect.inflate(4, 4);
|
text_rect.inflate(6, 4);
|
||||||
|
|
||||||
Color text_color;
|
Color text_color;
|
||||||
if (is_selected_item)
|
if (is_selected_item)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue