File: colors.h

package info (click to toggle)
warmux 1%3A11.04.1%2Brepack2-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 126,388 kB
  • sloc: cpp: 186,040; xml: 8,909; sh: 3,358; makefile: 1,052; ansic: 713
file content (64 lines) | stat: -rw-r--r-- 2,602 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/******************************************************************************
 *  Warmux is a convivial mass murder game.
 *  Copyright (C) 2001-2011 Warmux Team.
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  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, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
 ******************************************************************************
 * Colors.
 ******************************************************************************/

#ifndef COLORS_H
#define COLORS_H

#include "color.h"

const Color transparent_color(255, SDL_ALPHA_TRANSPARENT);

// Greyscale
const Color white_color(255, SDL_ALPHA_OPAQUE);
const Color light_gray_color(169, SDL_ALPHA_OPAQUE);
const Color gray_color(128, SDL_ALPHA_OPAQUE);
const Color dark_gray_color(64, SDL_ALPHA_OPAQUE);
const Color dark_red_color(170, SDL_ALPHA_OPAQUE);
const Color black_color(0, SDL_ALPHA_OPAQUE);

const Color primary_red_color(255, 0, 0, SDL_ALPHA_OPAQUE);
const Color primary_green_color(0, 255, 0, SDL_ALPHA_OPAQUE);
const Color primary_blue_color(0, 0, 255, SDL_ALPHA_OPAQUE);
const Color green_color(68, 120, 51, SDL_ALPHA_OPAQUE);
const Color pink_color(0xFF, 0xFF, 0x00, SDL_ALPHA_OPAQUE);
const Color yellow_color(0xFF, 0xFF, 0x00, SDL_ALPHA_OPAQUE);
const Color orange_color(0xFF, 0xC0, 0x00, SDL_ALPHA_OPAQUE);

const Color c_white  (0xFF, 0x70);
const Color c_black  (0x00, 0x70);
const Color c_grey   (0xF0, 0x70);
const Color c_red    (0xFF, 0x00, 0x00, 0x70);
const Color c_yellow (0xFF, 0xFF, 0x00, 0x70);

// Default colors:
const Color defaultColorBox(80, 80, 159, 206);
const Color defaultColorRect(49, 32, 122, 255);

const Color defaultOptionColorBox(255, 160);
const Color defaultOptionColorRect(59, 88, 129, SDL_ALPHA_OPAQUE);

const Color highlightOptionColorBox(200, 100, 100, 206);

const Color defaultListColor1(75, 163, 200, (255*3)/10);
const Color defaultListColor2(0, 0, (255*6)/10, (255*6)/10);
const Color defaultListColor3(0, 0, (255*6)/10, (255*3)/10);

#endif /* COLORS_H */