mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-27 17:47:34 +09:00
[GTK3] Draw separator menuitem background and frame behind separator in menu
This commit is contained in:
parent
381de05df3
commit
29821c238a
1 changed files with 8 additions and 0 deletions
|
|
@ -36,6 +36,10 @@ static gboolean is_initialized;
|
||||||
static gint
|
static gint
|
||||||
moz_gtk_get_tab_thickness(GtkStyleContext *style);
|
moz_gtk_get_tab_thickness(GtkStyleContext *style);
|
||||||
|
|
||||||
|
static gint
|
||||||
|
moz_gtk_menu_item_paint(WidgetNodeType widget, cairo_t *cr, GdkRectangle* rect,
|
||||||
|
GtkWidgetState* state, GtkTextDirection direction);
|
||||||
|
|
||||||
// GetStateFlagsFromGtkWidgetState() can be safely used for the specific
|
// GetStateFlagsFromGtkWidgetState() can be safely used for the specific
|
||||||
// GtkWidgets that set both prelight and active flags. For other widgets,
|
// GtkWidgets that set both prelight and active flags. For other widgets,
|
||||||
// either the GtkStateFlags or Gecko's GtkWidgetState need to be carefully
|
// either the GtkStateFlags or Gecko's GtkWidgetState need to be carefully
|
||||||
|
|
@ -1778,6 +1782,10 @@ static gint
|
||||||
moz_gtk_menu_separator_paint(cairo_t *cr, GdkRectangle* rect,
|
moz_gtk_menu_separator_paint(cairo_t *cr, GdkRectangle* rect,
|
||||||
GtkTextDirection direction)
|
GtkTextDirection direction)
|
||||||
{
|
{
|
||||||
|
GtkWidgetState defaultState = { 0 };
|
||||||
|
moz_gtk_menu_item_paint(MOZ_GTK_MENUSEPARATOR, cr, rect,
|
||||||
|
&defaultState, direction);
|
||||||
|
|
||||||
GtkStyleContext* style;
|
GtkStyleContext* style;
|
||||||
gboolean wide_separators;
|
gboolean wide_separators;
|
||||||
gint separator_height;
|
gint separator_height;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue