Updated GTK3 palette color parsing to use full 16-bit hex strings when converting to RGBA in palette handling and setup color dialogs.

Switched GtkCellRendererText foreground bindings to the palette foreground property macro in user list, notify list, and DCC views.
This commit is contained in:
2026-01-23 00:23:00 -07:00
parent ea4ef5be90
commit 1bb0451d75
5 changed files with 10 additions and 28 deletions

View File

@@ -1537,11 +1537,11 @@ static void
setup_rgba_from_palette (const PaletteColor *color, GdkRGBA *rgba)
{
guint16 red, green, blue;
char color_string[8];
char color_string[16];
palette_color_get_rgb16 (color, &red, &green, &blue);
g_snprintf (color_string, sizeof (color_string), "#%02x%02x%02x",
red >> 8, green >> 8, blue >> 8);
g_snprintf (color_string, sizeof (color_string), "#%04x%04x%04x",
red, green, blue);
if (!gdk_rgba_parse (rgba, color_string))
{
rgba->red = red / 65535.0;