Skip to content

Commit

Permalink
gui1: Reduce menu column text padding to 2px, use only on headers
Browse files Browse the repository at this point in the history
  • Loading branch information
irydacea committed Feb 16, 2014
1 parent f8f9338 commit c054a5e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/widgets/menu.cpp
Expand Up @@ -983,8 +983,9 @@ void menu::draw_row(const size_t row_index, const SDL_Rect& rect, ROW_TYPE type)
}
const SDL_Rect& text_size = font::text_area(str,style_->get_font_size());
const size_t y = rect.y + (rect.h - text_size.h)/2;
const size_t padding = 5;
font::draw_text(&video(),column,style_->get_font_size(),font::NORMAL_COLOR,to_show,xpos+padding,y);
const size_t padding = 2;
font::draw_text(&video(),column,style_->get_font_size(),font::NORMAL_COLOR,to_show,
(type == HEADING_ROW ? xpos+padding : xpos), y);

if(type == HEADING_ROW && sortby_ == int(i)) {
const surface sort_img = image::get_image(sortreversed_ ? "buttons/sliders/slider_arrow_blue.png" :
Expand Down

0 comments on commit c054a5e

Please sign in to comment.