fixed spinner/selector triangle button padding

This commit is contained in:
vurtun 2015-05-01 13:42:27 +02:00
parent 6a819cdb41
commit ce8f2ca798
1 changed files with 2 additions and 2 deletions

4
gui.c
View File

@ -2038,8 +2038,8 @@ gui_panel_selector(struct gui_panel_layout *layout, const char *items[],
button_h = bounds.h / 2; button_h = bounds.h / 2;
button_w = bounds.h - config->item_padding.x; button_w = bounds.h - config->item_padding.x;
button_x = bounds.x + bounds.w - button_w; button_x = bounds.x + bounds.w - button_w;
button.padding.x = MAX(3, button_h - layout->font.height); button.padding.x = MAX(3, (button_h - layout->font.height) / 2);
button.padding.y = MAX(3, button_h - layout->font.height); button.padding.y = MAX(3, (button_h - layout->font.height) / 2);
button.background = config->colors[GUI_COLOR_BUTTON]; button.background = config->colors[GUI_COLOR_BUTTON];
button.foreground = config->colors[GUI_COLOR_BUTTON_BORDER]; button.foreground = config->colors[GUI_COLOR_BUTTON_BORDER];
button.content = config->colors[GUI_COLOR_TEXT]; button.content = config->colors[GUI_COLOR_TEXT];