diff options
author | Robin Gareus <robin@gareus.org> | 2014-08-31 12:46:45 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-08-31 12:46:45 +0200 |
commit | db34d9a556c5bcf62259656e6114f340bb444ab7 (patch) | |
tree | c1a742fc4a8bc2da7a6f1025c24c779c92065fd0 | |
parent | 42e6c9c75d379918d9a9a8cbe37b243ffbb6e34c (diff) |
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.
-rw-r--r-- | gtk2_ardour/ardour3_styles.rc.in | 2 | ||||
-rw-r--r-- | libs/clearlooks-newer/clearlooks_draw.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/ardour3_styles.rc.in b/gtk2_ardour/ardour3_styles.rc.in index 89a3347df6..6d8998fd9c 100644 --- a/gtk2_ardour/ardour3_styles.rc.in +++ b/gtk2_ardour/ardour3_styles.rc.in @@ -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" diff --git a/libs/clearlooks-newer/clearlooks_draw.c b/libs/clearlooks-newer/clearlooks_draw.c index 1f98485ce5..b6db6062e9 100644 --- a/libs/clearlooks-newer/clearlooks_draw.c +++ b/libs/clearlooks-newer/clearlooks_draw.c @@ -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 { |