From db34d9a556c5bcf62259656e6114f340bb444ab7 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 31 Aug 2014 12:46:45 +0200 Subject: 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. --- gtk2_ardour/ardour3_styles.rc.in | 2 +- 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 { -- cgit v1.2.3