fixes more or less
This commit is contained in:
parent
a315d72a57
commit
74c5f7a004
7 changed files with 67 additions and 63 deletions
|
|
@ -4,29 +4,35 @@ void pgpl_gui_theme_configure(PGPL_GuiTheme *theme, PGPL_Color base_color,
|
|||
double content_font_size, PGPL_Font *font) {
|
||||
theme->background_color = pgpl_color_divide(base_color, 8);
|
||||
|
||||
theme->widget_background_color[0] = pgpl_color_divide(base_color, 5);
|
||||
theme->widget_background_color[1] = pgpl_color_divide(base_color, 4);
|
||||
theme->widget_background_color[2] = pgpl_color_divide(base_color, 3);
|
||||
theme->widget_background_color[PGPL_GUI_STATUS_COLOR_NORMAL] =
|
||||
pgpl_color_divide(base_color, 5);
|
||||
theme->widget_background_color[PGPL_GUI_STATUS_COLOR_HOVER] =
|
||||
pgpl_color_divide(base_color, 4);
|
||||
theme->widget_background_color[PGPL_GUI_STATUS_COLOR_ACTIVE] =
|
||||
pgpl_color_divide(base_color, 3);
|
||||
|
||||
theme->text_color[0] = pgpl_color_divide(base_color, 1.5);
|
||||
theme->text_color[1] = pgpl_color_divide(base_color, 1.25);
|
||||
theme->text_color[2] = base_color;
|
||||
theme->text_color[PGPL_GUI_STATUS_COLOR_NORMAL] =
|
||||
pgpl_color_divide(base_color, 1.5);
|
||||
theme->text_color[PGPL_GUI_STATUS_COLOR_HOVER] =
|
||||
pgpl_color_divide(base_color, 1.25);
|
||||
theme->text_color[PGPL_GUI_STATUS_COLOR_ACTIVE] = base_color;
|
||||
|
||||
theme->font_size[0] = content_font_size * 3;
|
||||
theme->font_size[1] = content_font_size * 2;
|
||||
theme->font_size[2] = content_font_size;
|
||||
theme->font_size[PGPL_GUI_FONT_SIZE_TITLE] = content_font_size * 4;
|
||||
theme->font_size[PGPL_GUI_FONT_SIZE_HEADING_LARGE] = content_font_size * 3;
|
||||
theme->font_size[PGPL_GUI_FONT_SIZE_HEADING_SMALL] = content_font_size * 2;
|
||||
theme->font_size[PGPL_GUI_FONT_SIZE_CONTENT] = content_font_size;
|
||||
|
||||
theme->margin.top = content_font_size / 6;
|
||||
theme->margin.top = content_font_size / 3;
|
||||
theme->margin.left = theme->margin.top;
|
||||
theme->margin.bottom = theme->margin.top;
|
||||
theme->margin.right = theme->margin.top;
|
||||
|
||||
theme->border.top = content_font_size / 12;
|
||||
theme->border.top = content_font_size / 6;
|
||||
theme->border.left = theme->border.top;
|
||||
theme->border.bottom = theme->border.top;
|
||||
theme->border.right = theme->border.top;
|
||||
|
||||
theme->padding.top = content_font_size / 6;
|
||||
theme->padding.top = content_font_size / 3;
|
||||
theme->padding.left = theme->padding.top;
|
||||
theme->padding.bottom = theme->padding.top;
|
||||
theme->padding.right = theme->padding.top;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue