Special case checkbox border color in Treeview
This commit is contained in:
parent
7c2ec72495
commit
0db559c0ac
@ -2092,7 +2092,7 @@ clearlooks_draw_checkbox (cairo_t *cr,
|
|||||||
const CheckboxParameters *checkbox,
|
const CheckboxParameters *checkbox,
|
||||||
int x, int y, int width, int height)
|
int x, int y, int width, int height)
|
||||||
{
|
{
|
||||||
const CairoColor *border;
|
CairoColor border;
|
||||||
const CairoColor *dot;
|
const CairoColor *dot;
|
||||||
gboolean inconsistent = FALSE;
|
gboolean inconsistent = FALSE;
|
||||||
gboolean draw_bullet = (checkbox->shadow_type == (ClearlooksShadowType)GTK_SHADOW_IN);
|
gboolean draw_bullet = (checkbox->shadow_type == (ClearlooksShadowType)GTK_SHADOW_IN);
|
||||||
@ -2102,12 +2102,16 @@ clearlooks_draw_checkbox (cairo_t *cr,
|
|||||||
|
|
||||||
if (widget->disabled)
|
if (widget->disabled)
|
||||||
{
|
{
|
||||||
border = &colors->shade[5];
|
border = colors->shade[5];
|
||||||
dot = &colors->shade[6];
|
dot = &colors->shade[6];
|
||||||
}
|
}
|
||||||
else
|
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];
|
dot = &colors->text[GTK_STATE_NORMAL];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2133,7 +2137,7 @@ clearlooks_draw_checkbox (cairo_t *cr,
|
|||||||
cairo_fill_preserve (cr);
|
cairo_fill_preserve (cr);
|
||||||
}
|
}
|
||||||
|
|
||||||
ge_cairo_set_color (cr, border);
|
ge_cairo_set_color (cr, &border);
|
||||||
cairo_stroke (cr);
|
cairo_stroke (cr);
|
||||||
|
|
||||||
if (draw_bullet)
|
if (draw_bullet)
|
||||||
|
Loading…
Reference in New Issue
Block a user