mirror of
https://github.com/labwc/labwc.git
synced 2025-11-11 13:30:04 -05:00
font: remove 4px padding on the right
Added `menu.items.padding.x` padding between item text and arrow instead. Replaced `if (!string)` with `if (string_null_or_empty(string))` in `font_extents()` just as a minor optimization.
This commit is contained in:
parent
141f932efa
commit
ebce406b11
3 changed files with 6 additions and 11 deletions
|
|
@ -193,9 +193,6 @@ resize_indicator_update(struct view *view)
|
|||
/* Let the indicator change width as required by the content */
|
||||
int width = font_width(&rc.font_osd, text);
|
||||
|
||||
/* font_extents() adds 4 pixels to the calculated width */
|
||||
width -= 4;
|
||||
|
||||
resize_indicator_set_size(indicator, width);
|
||||
|
||||
/* Center the indicator in the window */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue