Added gtkutil_apply_palette declaration and implementation to apply palette colors/fonts via GTK3 CSS providers with GTK2 fallbacks preserved.

Switched channel tree and theme application logic to use the new palette helper.
Updated entry and user list styling to route palette/font application through the helper.
This commit is contained in:
deepend committed 2026-01-25 11:30:21 -07:00
1 parent 08d357dc98
commit 94789a9100
5 files changed
+85 -17

No files matched your search

+3
View File
@@ -22,6 +22,7 @@
#include <gtk/gtk.h>
#include "../common/fe.h"
#include "palette.h"
typedef void (*filereqcallback) (void *, char *file);
@@ -47,6 +48,8 @@ gboolean gtkutil_treemodel_string_to_iter (GtkTreeModel *model, gchar *pathstr,
gboolean gtkutil_treeview_get_selected_iter (GtkTreeView *view, GtkTreeIter *iter_ret);
gboolean gtkutil_treeview_get_selected (GtkTreeView *view, GtkTreeIter *iter_ret, ...);
gboolean gtkutil_tray_icon_supported (GtkWindow *window);
void gtkutil_apply_palette (GtkWidget *widget, const PaletteColor *bg, const PaletteColor *fg,
const PangoFontDescription *font_desc);
#if defined (WIN32) || defined (__APPLE__)
gboolean gtkutil_find_font (const char *fontname);