Added a GTK3 fallback when parsing palette RGB16 values into GdkRGBA colors to keep RGBA initialization robust.

Updated GTK3 list-model color storage and GtkCellRendererText foreground properties to use RGBA values in the user list, notify list, and DCC views while retaining GTK2 behavior.
Copied palette RGBA values before initializing the GTK3 color chooser dialog to ensure RGBA usage on the GTK3 path.
This commit is contained in:
2026-01-22 22:03:31 -07:00
parent d7d29a843f
commit 61669f6b98
5 changed files with 58 additions and 11 deletions

View File

@@ -1594,12 +1594,14 @@ setup_color_cb (GtkWidget *button, gpointer userdata)
#if GTK_CHECK_VERSION(3,0,0)
GtkWidget *dialog;
PaletteColor *color;
GdkRGBA rgba;
setup_color_dialog_data *data;
color = &colors[GPOINTER_TO_INT (userdata)];
dialog = gtk_color_chooser_dialog_new (_("Select color"), GTK_WINDOW (setup_window));
gtk_color_chooser_set_rgba (GTK_COLOR_CHOOSER (dialog), color);
rgba = *color;
gtk_color_chooser_set_rgba (GTK_COLOR_CHOOSER (dialog), &rgba);
gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
data = g_new0 (setup_color_dialog_data, 1);