return TRUE;
}
-void vb_set_widget_font(GtkWidget* widget, const VpColor* fg, const VpColor* bg, PangoFontDescription* font)
+void vb_set_widget_font(GtkWidget* widget, const VbColor* fg, const VbColor* bg, PangoFontDescription* font)
{
VB_WIDGET_OVERRIDE_FONT(widget, font);
VB_WIDGET_OVERRIDE_TEXT(widget, GTK_STATE_NORMAL, fg);
}
#ifdef HAS_GTK3
-#define VpColor GdkRGBA
+#define VbColor GdkRGBA
#define VB_COLOR_PARSE(color, string) (gdk_rgba_parse(color, string))
#define VB_COLOR_TO_STRING(color) (gdk_rgba_to_string(color))
#define VB_WIDGET_OVERRIDE_BACKGROUND gtk_widget_override_background_color
#else
-#define VpColor GdkColor
+#define VbColor GdkColor
#define VB_COLOR_PARSE(color, string) (gdk_color_parse(string, color))
#define VB_COLOR_TO_STRING(color) (gdk_color_to_string(color))
#define VB_WIDGET_OVERRIDE_BACKGROUND gtk_widget_modify_bg
} Completions;
typedef struct {
- VpColor input_fg[VB_MSG_LAST];
- VpColor input_bg[VB_MSG_LAST];
+ VbColor input_fg[VB_MSG_LAST];
+ VbColor input_bg[VB_MSG_LAST];
PangoFontDescription* input_font[VB_MSG_LAST];
/* completion */
- VpColor comp_fg[VB_COMP_LAST];
- VpColor comp_bg[VB_COMP_LAST];
+ VbColor comp_fg[VB_COMP_LAST];
+ VbColor comp_bg[VB_COMP_LAST];
PangoFontDescription* comp_font;
/* hint style */
char* hint_bg;
char* hint_fg;
char* hint_style;
/* status bar */
- VpColor status_bg[VB_STATUS_LAST];
- VpColor status_fg[VB_STATUS_LAST];
+ VbColor status_bg[VB_STATUS_LAST];
+ VbColor status_fg[VB_STATUS_LAST];
PangoFontDescription* status_font[VB_STATUS_LAST];
} Style;
gboolean vb_load_uri(const Arg* arg);
gboolean vb_set_clipboard(const Arg* arg);
gboolean vb_set_mode(Mode mode, gboolean clean);
-void vb_set_widget_font(GtkWidget* widget, const VpColor* fg, const VpColor* bg, PangoFontDescription* font);
+void vb_set_widget_font(GtkWidget* widget, const VbColor* fg, const VbColor* bg, PangoFontDescription* font);
void vb_update_statusbar(void);
void vb_update_status_style(void);
void vb_update_input_style(MessageType type);
break;
case TYPE_COLOR:
- string = VB_COLOR_TO_STRING((VpColor*)value);
+ string = VB_COLOR_TO_STRING((VbColor*)value);
vb_echo(VB_MSG_NORMAL, FALSE, " %s=%s", name, string);
g_free(string);
break;
style->input_font[itype] = pango_font_description_from_string(s->arg.s);
}
} else {
- VpColor* color = NULL;
+ VbColor* color = NULL;
if (g_str_has_prefix(s->name, "input-bg")) {
/* background color */
color = &style->input_bg[itype];
style->comp_font = pango_font_description_from_string(s->arg.s);
}
} else {
- VpColor* color = NULL;
+ VbColor* color = NULL;
if (g_str_has_prefix(s->name, "completion-bg")) {
/* completion background color */
color = &style->comp_bg[ctype];