proper round corners on focused TextEntry

IFF [xy]thickness is set > 2 for given Entry.

It seems gtk draws a base-color rectangle on
top, after clearlooks_draw_entry() is called.
This fills the complete area and voids previous
rounded rectangles in clearlooks_draw_entry().
setting [xy]thickness decreases the size of the
base rectangle.
This commit is contained in:
Robin Gareus 2014-08-31 12:46:45 +02:00
parent 42e6c9c75d
commit db34d9a556
2 changed files with 3 additions and 3 deletions

View File

@ -644,7 +644,7 @@ style "small_entry" = "small_text"
base[NORMAL] = @@COLPREFIX@_base
base[ACTIVE] = @@COLPREFIX@_base
base[SELECTED] = @@COLPREFIX@_bg_selected
base[SELECTED] = @@COLPREFIX@_base
}
style "red_active_small_entry" = "small_entry"

View File

@ -406,9 +406,9 @@ clearlooks_draw_entry (cairo_t *cr,
/* Draw the inner shadow */
if (params->focus)
{
/* ge_cairo_rounded_rectangle (cr, 2, 2, width-5, height-5, RADIUS-1, params->corners); */
ge_cairo_rounded_rectangle (cr, 2, 2, width-5, height-5, radius, params->corners);
ge_cairo_set_color (cr, &colors->spot[0]);
ge_cairo_stroke_rectangle (cr, 2, 2, width-5, height-5);
cairo_fill(cr);
}
else
{