mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +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
|
||||
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
|
||||
// GtkWidgets that set both prelight and active flags. For other widgets,
|
||||
// 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,
|
||||
GtkTextDirection direction)
|
||||
{
|
||||
GtkWidgetState defaultState = { 0 };
|
||||
moz_gtk_menu_item_paint(MOZ_GTK_MENUSEPARATOR, cr, rect,
|
||||
&defaultState, direction);
|
||||
|
||||
GtkStyleContext* style;
|
||||
gboolean wide_separators;
|
||||
gint separator_height;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue