"item_right_space"
PATCH 5/11 "item_right_space"
I suggest to make new option "item_right_space" so we can set free space between text line and east slice of the selected_item_pixmap. (see screenshots)
list-string-after - before
list-string-after2 - after
Signature · 4 lines
With best regards, _______________________________ Vladimir Testov, ROSA Laboratory. www.rosalab.ru
grub-core/gfxmenu/gui_list.c +8 -1
@@ -39,6 +39,7 @@int item_height;int item_padding;int item_icon_space; +int item_right_space;int item_spacing;grub_font_t item_font;grub_font_t selected_item_font;
@@ -268,7 +269,8 @@grub_video_rect_t svpsave, sviewport; sviewport.x = string_left_offset; - sviewport.width = cwidth + sel_leftpad - string_left_offset; + sviewport.width = cwidth + sel_leftpad - string_left_offset + - self->item_right_space; sviewport.height = item_height;grub_font_t font, item_font, selected_item_font;
@@ -547,6 +549,10 @@ { self->item_icon_space =grub_strtol (value,0 ,10 ); } + else if (grub_strcmp (name, "item_right_space") == 0) + { + self->item_right_space =grub_strtol (value,0 ,10 ); + } else if (grub_strcmp (name, "item_spacing") == 0) { self->item_spacing =grub_strtol (value,0 ,10 );
@@ -663,6 +669,7 @@ self->item_height =42 ; self->item_padding =14 ; self->item_icon_space =4 ; + self->item_right_space =0 ; self->item_spacing =16 ; self->item_font = default_font; self->selected_item_font =0 ;/* Default to using the item_font. */