mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-13 17:20:21 +00:00
feat: centralize theming in theme-manager (palette/tokens, CSS, dark-mode, setup UI), add tests + win32/meson wiring
This commit is contained in:
21
src/fe-gtk/theme/theme-css.h
Normal file
21
src/fe-gtk/theme/theme-css.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef ZOITECHAT_THEME_CSS_H
|
||||
#define ZOITECHAT_THEME_CSS_H
|
||||
|
||||
#include "../fe-gtk.h"
|
||||
|
||||
/**
|
||||
* theme_css_apply_app_provider/theme_css_remove_app_provider:
|
||||
* Use for CSS providers that should apply to the entire application screen.
|
||||
*
|
||||
* theme_css_apply_widget_provider:
|
||||
* Use for widget-local CSS providers attached to a specific widget context.
|
||||
*/
|
||||
void theme_css_apply_app_provider (GtkStyleProvider *provider);
|
||||
void theme_css_remove_app_provider (GtkStyleProvider *provider);
|
||||
void theme_css_apply_widget_provider (GtkWidget *widget, GtkStyleProvider *provider);
|
||||
void theme_css_reload_input_style (gboolean enabled, const PangoFontDescription *font_desc);
|
||||
void theme_css_apply_palette_widget (GtkWidget *widget, const GdkRGBA *bg, const GdkRGBA *fg,
|
||||
const PangoFontDescription *font_desc);
|
||||
char *theme_css_build_toplevel_classes (void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user