Bug 799713 - Account Editor changes account color to gray when default selected.

Inadvertenly changed by 0a3fa2a because the logic is a bit too clever:
It's intentional that if the color-chooser color is the default that the
account color is set to NULL. That was removed for some flows and is
restored.

But that makes the default color button on the account edit dialog a
little misleading: It shows as gray but since selecting that makes the
account color NULL it's really transparent so we also enable alpha on the
color chooser and set the default color to be transparent so the
background checkerboard shows through.
pull/2165/head
John Ralls 5 months ago
parent f893b046fb
commit 1c9bcf62eb

@ -506,6 +506,11 @@ gnc_ui_to_account (AccountWindow *aw)
gtk_color_chooser_get_rgba (GTK_COLOR_CHOOSER(aw->color_entry_button), &color);
char* new_string = gdk_rgba_to_string (&color);
if (!g_strcmp0 (new_string, DEFAULT_COLOR))
{
g_free(new_string);
new_string = NULL;
}
old_string = xaccAccountGetColor (account);

Loading…
Cancel
Save