proper round corners on focused TextEntry
authorRobin Gareus <robin@gareus.org>
Sun, 31 Aug 2014 10:46:45 +0000 (12:46 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 31 Aug 2014 10:46:45 +0000 (12:46 +0200)
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.

gtk2_ardour/ardour3_styles.rc.in
libs/clearlooks-newer/clearlooks_draw.c

index 89a3347df6ec471e0e5db0f1fe68cb9c274eab27..6d8998fd9cbe763616927c168c44cf082cd8e6b8 100644 (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"
index 1f98485ce57b57f2bbeaaf55fe8054774d7c8511..b6db6062e98e0727228aaa95ee7a6c68de13811d 100644 (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
        {