From 1c9bcf62ebe09f7a249e7fa7f96816aa4314a1fb Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sun, 28 Dec 2025 10:50:17 -0800 Subject: [PATCH] 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. --- gnucash/gnome-utils/dialog-account.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gnucash/gnome-utils/dialog-account.c b/gnucash/gnome-utils/dialog-account.c index e92122e04d..ad5ab34ace 100644 --- a/gnucash/gnome-utils/dialog-account.c +++ b/gnucash/gnome-utils/dialog-account.c @@ -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);