Merged colours. More...
#include "config.h"
#include <stdbool.h>
#include <stddef.h>
#include "mutt/lib.h"
#include "attr.h"
#include "color.h"
#include "curses2.h"
Go to the source code of this file.
Functions | |
void | merged_colors_init (void) |
Initialise the Merged colours. | |
void | merged_colors_cleanup (void) |
Free the list of Merged colours. | |
static struct AttrColor * | merged_colors_find (color_t fg, color_t bg, int attrs) |
Find a Merged colour. | |
const struct AttrColor * | merged_color_overlay (const struct AttrColor *base, const struct AttrColor *over) |
Combine two colours. | |
Variables | |
struct AttrColorList | MergedColors |
Array of user colours. | |
Merged colours.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file merged.c.
void merged_colors_init | ( | void | ) |
void merged_colors_cleanup | ( | void | ) |
Free the list of Merged colours.
Definition at line 52 of file merged.c.
Find a Merged colour.
fg | Foreground colour |
bg | Background colour |
attrs | Attributes, e.g. A_UNDERLINE |
ptr | Matching Merged colour |
Definition at line 72 of file merged.c.
const struct AttrColor * merged_color_overlay | ( | const struct AttrColor * | base, |
const struct AttrColor * | over | ||
) |
Combine two colours.
base | Base colour |
over | Overlay colour |
ptr | Merged colour |
If either the foreground or background of the overlay is 'default', then the base colour will show through. The attributes of both base and overlay will be OR'd together.
Definition at line 107 of file merged.c.