mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 16:00:18 +00:00
Converted palette storage to GdkRGBA with GTK2-guarded helpers, including RGB16 conversion support for shared consumers and dark-mode palette handling.
Updated setup color selection and styling to use RGBA-aware GTK3 overrides/CSS while preserving GTK2 behavior in guarded paths. Switched tree view color models/renderers and other palette consumers (user list, notify, DCC, menus, spell entry, input style) to RGBA-aware types/properties with shared RGB16 conversion usage.
This commit is contained in:
@@ -425,8 +425,14 @@ create_input_style (GtkStyle *style)
|
||||
g_free (theme_name);
|
||||
|
||||
done_rc = TRUE;
|
||||
sprintf (buf, cursor_color_rc, (colors[COL_FG].red >> 8),
|
||||
(colors[COL_FG].green >> 8), (colors[COL_FG].blue >> 8));
|
||||
{
|
||||
guint16 red;
|
||||
guint16 green;
|
||||
guint16 blue;
|
||||
|
||||
palette_color_get_rgb16 (&colors[COL_FG], &red, &green, &blue);
|
||||
sprintf (buf, cursor_color_rc, (red >> 8), (green >> 8), (blue >> 8));
|
||||
}
|
||||
gtk_rc_parse_string (buf);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user