]> git.tuebingen.mpg.de Git - paraslash.git/commit
gui: Simplify color handling.
authorAndre Noll <maan@systemlinux.org>
Sat, 8 Mar 2014 20:18:21 +0000 (21:18 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 4 May 2014 13:53:20 +0000 (15:53 +0200)
commit821492dacaf35773acc59b45ef2b3c4f072581f4
tree5216a42b8391042f189a5985f72124e84943cdbc
parent9775f534cc971999cec266cb0ea526e254559d87
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.
gui.c
gui.h
gui_theme.c