GtkThemingEngine: Also render topright and bottomleft corners if junction sides say so
This commit is contained in:
parent
11004ef61d
commit
e696c24f08
@ -1682,24 +1682,29 @@ render_frame_internal (GtkThemingEngine *engine,
|
|||||||
junction);
|
junction);
|
||||||
cairo_stroke (cr);
|
cairo_stroke (cr);
|
||||||
|
|
||||||
if (radius == 0 &&
|
if (border_width > 1)
|
||||||
border_width > 1)
|
|
||||||
{
|
{
|
||||||
/* overprint top/right and bottom/left corner
|
/* overprint top/right and bottom/left corner
|
||||||
* triangles, to give the box a 3D-like appearance
|
* triangles if there are square corners there,
|
||||||
|
* to give the box a 3D-like appearance.
|
||||||
*/
|
*/
|
||||||
|
cairo_save (cr);
|
||||||
|
|
||||||
if (border_style == GTK_BORDER_STYLE_INSET)
|
if (border_style == GTK_BORDER_STYLE_INSET)
|
||||||
gdk_cairo_set_source_rgba (cr, &lighter);
|
gdk_cairo_set_source_rgba (cr, &lighter);
|
||||||
else
|
else
|
||||||
gdk_cairo_set_source_rgba (cr, border_color);
|
gdk_cairo_set_source_rgba (cr, border_color);
|
||||||
|
|
||||||
cairo_save (cr);
|
|
||||||
|
|
||||||
cairo_set_line_width (cr, 1);
|
cairo_set_line_width (cr, 1);
|
||||||
|
|
||||||
|
if (radius == 0 ||
|
||||||
|
(junction & GTK_JUNCTION_CORNER_TOPRIGHT) != 0)
|
||||||
_cairo_corner_triangle (cr,
|
_cairo_corner_triangle (cr,
|
||||||
x + width - border_width, y,
|
x + width - border_width, y,
|
||||||
border_width);
|
border_width);
|
||||||
|
|
||||||
|
if (radius == 0 ||
|
||||||
|
(junction & GTK_JUNCTION_CORNER_BOTTOMLEFT) != 0)
|
||||||
_cairo_corner_triangle (cr,
|
_cairo_corner_triangle (cr,
|
||||||
x, y + height - border_width,
|
x, y + height - border_width,
|
||||||
border_width);
|
border_width);
|
||||||
|
Loading…
Reference in New Issue
Block a user