13#ifndef WIDGETS_GP_WIDGET_STYLE_H
14#define WIDGETS_GP_WIDGET_STYLE_H
16static inline const gp_text_style *gp_widget_focused_font(
const gp_widget_render_ctx *ctx,
int is_focused)
18 return (is_focused && ctx->focused_is_bold) ? ctx->font_bold : ctx->font;
21static inline gp_pixel gp_widget_text_color(gp_widget *self,
22 const gp_widget_render_ctx *ctx,
25 gp_pixel text_color = ctx->text_color;
27 switch (gp_pixel_size(ctx->pixel_type)) {
31 if (gp_widget_is_disabled(self, render_flags))
32 text_color = ctx->col_disabled;
39static inline gp_pixel gp_widget_frame_color(gp_widget *self,
40 const gp_widget_render_ctx *ctx,
43 gp_pixel frame_color = ctx->text_color;
47 switch (gp_pixel_size(ctx->pixel_type)) {
52 frame_color = ctx->sel_color;
uint32_t gp_pixel
Pixel integer value.