From: Andre Noll Date: Sat, 8 Mar 2014 20:18:21 +0000 (+0100) Subject: gui: Simplify color handling. X-Git-Tag: v0.5.3~12^2~1 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=821492dacaf35773acc59b45ef2b3c4f072581f4;hp=821492dacaf35773acc59b45ef2b3c4f072581f4 gui: Simplify color handling. Various gui elements of para_gui can be customized through struct gui_theme. Currently this structure contains two integers for each each element, one for the foreground and one for the background color of the element. This is a bit clumsy and repetitive. This commit cuts down the number of fields of struct gui_theme by a factor of two by introducing struct gui_color_spec as a pair of integers. The patch is quite large but also simple. ---