summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-01-25 03:39:24 +0100
committerRobin Gareus <robin@gareus.org>2020-01-25 03:40:04 +0100
commit0db559c0ac33a9884e05fc3d9b687db7b7d079bf (patch)
treec1a2f54f4b18ec86dad47808afc328dc7b51dc0e /libs
parent7c2ec72495fbc92577bb3038a5d654a5afbe0d51 (diff)
Special case checkbox border color in Treeview
Diffstat (limited to 'libs')
-rw-r--r--libs/clearlooks-newer/clearlooks_draw.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/libs/clearlooks-newer/clearlooks_draw.c b/libs/clearlooks-newer/clearlooks_draw.c
index 502d2e7786..ac411fedc7 100644
--- a/libs/clearlooks-newer/clearlooks_draw.c
+++ b/libs/clearlooks-newer/clearlooks_draw.c
@@ -2092,7 +2092,7 @@ clearlooks_draw_checkbox (cairo_t *cr,
const CheckboxParameters *checkbox,
int x, int y, int width, int height)
{
- const CairoColor *border;
+ CairoColor border;
const CairoColor *dot;
gboolean inconsistent = FALSE;
gboolean draw_bullet = (checkbox->shadow_type == (ClearlooksShadowType)GTK_SHADOW_IN);
@@ -2102,12 +2102,16 @@ clearlooks_draw_checkbox (cairo_t *cr,
if (widget->disabled)
{
- border = &colors->shade[5];
+ border = colors->shade[5];
dot = &colors->shade[6];
}
else
{
- border = &colors->shade[6];
+ if (checkbox->in_cell) {
+ ge_mix_color (&colors->text[GTK_STATE_NORMAL], &colors->shade[6], 0.7, &border);
+ } else {
+ border = colors->shade[6];
+ }
dot = &colors->text[GTK_STATE_NORMAL];
}
@@ -2133,7 +2137,7 @@ clearlooks_draw_checkbox (cairo_t *cr,
cairo_fill_preserve (cr);
}
- ge_cairo_set_color (cr, border);
+ ge_cairo_set_color (cr, &border);
cairo_stroke (cr);
if (draw_bullet)