X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fhomebank;a=blobdiff_plain;f=src%2Fgtk-chart-colors.c;fp=src%2Fgtk-chart-colors.c;h=d7ce7d80cb1e52051123fae1696611069a509f02;hp=e7bca04088d7703cf5fb43f749d052d4347d2838;hb=b84403141a4c3a32a594800eb3fcabdc856461f8;hpb=996fa4ab9f6b836001f8ad0eecbfd3821687fea7 diff --git a/src/gtk-chart-colors.c b/src/gtk-chart-colors.c index e7bca04..d7ce7d8 100644 --- a/src/gtk-chart-colors.c +++ b/src/gtk-chart-colors.c @@ -1,5 +1,5 @@ /* HomeBank -- Free, easy, personal accounting for everyone. - * Copyright (C) 1995-2016 Maxime DOYEN + * Copyright (C) 1995-2017 Maxime DOYEN * * This file is part of HomeBank. * @@ -30,10 +30,28 @@ char *chart_colors[] = "Office 2010", "Office 2013", "Analytics", + "YNAB", NULL }; +struct rgbcol ynab_colors[] = +{ + { 238, 118, 96 }, + { 245, 189, 115 }, + { 239, 234, 172 }, + { 143, 186, 209 }, + { 211, 229, 134 }, + { 163, 180, 120 }, + { 167, 209, 195 }, + { 51, 177, 191 }, + { 214, 227, 99 }, + //{ 242, 219, 64 }, // added color + { 131, 131, 131 }, // others +}; +int ynab_nbcolors = G_N_ELEMENTS(ynab_colors); + + struct rgbcol money_colors[] = { { 255, 193, 96 }, @@ -383,6 +401,13 @@ void colorscheme_init(GtkColorScheme *scheme, gint index) scheme->cs_yellow = 12; scheme->cs_orange = 20; break; + case CHART_COLMAP_YNAB: + scheme->colors = ynab_colors; + scheme->nb_cols = ynab_nbcolors; + scheme->cs_green = 5; + scheme->cs_red = 0; + scheme->cs_orange = 1; + break; }