mirror of
https://github.com/labwc/labwc.git
synced 2025-11-07 13:30:06 -05:00
font: remove arrow character from font buffer
Arrow signs are specific to submenu items, so they would be more natural to be handled in menu.c rather than accepting "arrow" in font_buffer_create(). Also I allowed non-positive numbers for max_width in font_buffer_create(), in which case the natural font width is used as the buffer width.
This commit is contained in:
parent
10fc656c23
commit
01032ef3bd
7 changed files with 28 additions and 43 deletions
|
|
@ -205,8 +205,7 @@ resize_indicator_update(struct view *view)
|
|||
wlr_scene_node_set_position(&indicator->tree->node, x, y);
|
||||
|
||||
scaled_font_buffer_update(indicator->text, text, width, &rc.font_osd,
|
||||
rc.theme->osd_label_text_color, rc.theme->osd_bg_color,
|
||||
NULL /* const char *arrow */);
|
||||
rc.theme->osd_label_text_color, rc.theme->osd_bg_color);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -504,7 +504,7 @@ ssd_update_title(struct ssd *ssd)
|
|||
if (part->buffer) {
|
||||
scaled_font_buffer_update(part->buffer, title,
|
||||
title_bg_width, font,
|
||||
text_color, bg_color, NULL);
|
||||
text_color, bg_color);
|
||||
}
|
||||
|
||||
/* And finally update the cache */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue