]>
Dogcows Code - chaz/homebank/blob - src/gtk-chart-colors.c
de98590d6435f47fb5d2616c634aedcb5575e392
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2014 Maxime DOYEN
4 * This file is part of HomeBank.
6 * HomeBank is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * HomeBank is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #include "gtk-chart-colors.h"
24 char *chart_colors
[] =
37 struct rgbcol money_colors
[] =
67 int money_nbcolors
= G_N_ELEMENTS(money_colors
);
70 struct rgbcol quicken_colors
[] =
83 { 113, 113, 113 }, // others
85 int quicken_nbcolors
= G_N_ELEMENTS(quicken_colors
);
88 struct rgbcol analytics_colors
[] =
90 { 5, 141, 199 }, //line color
101 { 204, 204, 204 }, // others
103 int analytics_nbcolors
= G_N_ELEMENTS(analytics_colors
);
106 struct rgbcol office2010_colors
[] =
129 int office2010_nbcolors
= G_N_ELEMENTS(office2010_colors
);
132 struct rgbcol office2013_colors
[] =
155 int office2013_nbcolors
= G_N_ELEMENTS(office2013_colors
);
157 struct rgbcol sap_colors
[] =
195 int sap_nbcolors
= G_N_ELEMENTS(sap_colors
);
197 struct rgbcol homebank_colors
[] =
234 int homebank_nbcolors
= G_N_ELEMENTS(homebank_colors
);
238 struct rgbcol global_colors
[] =
241 {255, 255, 255}, // white
242 {239, 239, 239}, // grey1 intermediate lines
243 { 68, 68, 68}, // text
244 { 51, 51, 51}, // x/y axis
245 { 0, 0, 0}, // theme base
246 { 0, 0, 0}, // theme text
252 struct rgbcol global_colors[] =
255 {255, 255, 255}, // white
256 {238, 238, 238}, // #top/bottom lines
257 {204, 204, 204}, // #dotted lines
258 {102, 102, 102}, // #x-axis, scale text
259 {153, 153, 153}, // # ??
260 { 0, 119, 204}, // #line color
263 {239, 239, 239}, // intermediate lines
264 { 68, 68, 68}, // text
265 { 51, 51, 51}, // x/y axis
273 void cairo_user_set_rgbcol(cairo_t
*cr
, struct rgbcol
*col
)
275 cairo_set_source_rgb(cr
, COLTOCAIRO(col
->r
), COLTOCAIRO(col
->g
), COLTOCAIRO(col
->b
));
279 void cairo_user_set_rgbacol(cairo_t
*cr
, struct rgbcol
*col
, double alpha
)
281 cairo_set_source_rgba(cr
, COLTOCAIRO(col
->r
), COLTOCAIRO(col
->g
), COLTOCAIRO(col
->b
), alpha
);
285 void cairo_user_set_rgbcol_over(cairo_t
*cr
, struct rgbcol
*col
, gboolean over
)
288 cairo_set_source_rgb(cr
, COLTOCAIROOVER(col
->r
), COLTOCAIROOVER(col
->g
), COLTOCAIROOVER(col
->b
));
290 cairo_set_source_rgb(cr
, COLTOCAIRO(col
->r
), COLTOCAIRO(col
->g
), COLTOCAIRO(col
->b
));
This page took 0.044158 seconds and 4 git commands to generate.