some quickie hackies

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1177 57a11ea4-9604-0410-9ed3-97b8803252fd
zzzoldfeatures/xacc-12-patch
Linas Vepstas 28 years ago
parent 1c407b0e22
commit 657222d6cc

@ -476,6 +476,20 @@ configCursors (SplitRegister *reg)
/* set the color of the cells in the cursors */
/* hack alert -- the actual color should depend on the
* type of register. */
/* they used top be the following:
"*regbank.oddRowBackground: #aaccff",
"*regcash.oddRowBackground: #ccffcc",
"*regasset.oddRowBackground: #aaffcc",
"*regcredit.oddRowBackground: #ffffaa",
"*regliability.oddRowBackground: #ffcccc",
"*ledportfolio.oddRowBackground: #ccffff",
"*regmutual.oddRowBackground: #ccffff",
"*regincome.oddRowBackground: #aaccff",
"*regexpense.oddRowBackground: #ffcccc",
"*regequity.oddRowBackground: #ffffaa",
"*ledgportfolio.evenRowBackground:grey",
"*regmutual.evenRowBackground: grey",
*/
reg->single_cursor->active_bg_color = 0xffdddd; /* pale red */
reg->single_cursor->passive_bg_color = 0xccccff; /* pale blue */

@ -359,7 +359,16 @@ makePassive (Table *table)
for (j=0; j<curs->numCols; j++) {
BasicCell *cell;
/* yooooo hack alert -- the color capabilities for the cursor should
* be per-cell, not per cursor; so we do a quickie hack ughhh.
* first line is whatever was speced, the second line is white.
*/
if (0==i) {
table->bg_colors[i+r_origin][j+c_origin] = curs->passive_bg_color;
} else {
table->bg_colors[i+r_origin][j+c_origin] = 0xffffff;
}
cell = curs->cells[i][j];
if (cell) {
if (cell->use_bg_color) {

Loading…
Cancel
Save