Set monitor's background box use the prelight state
Most GTK+ themes have the same colors for normal and prelight, but some use a lighter version which makes the box look more distinguishable.
This commit is contained in:
@@ -235,7 +235,7 @@ xtm_process_monitor_paint (XtmProcessMonitor *monitor)
|
|||||||
height = GTK_WIDGET (monitor)->allocation.height;
|
height = GTK_WIDGET (monitor)->allocation.height;
|
||||||
|
|
||||||
/* Paint a box */
|
/* Paint a box */
|
||||||
gtk_paint_box (GTK_WIDGET (monitor)->style, GTK_WIDGET (monitor)->window, GTK_STATE_NORMAL, GTK_SHADOW_IN,
|
gtk_paint_box (GTK_WIDGET (monitor)->style, GTK_WIDGET (monitor)->window, GTK_STATE_PRELIGHT, GTK_SHADOW_IN,
|
||||||
NULL, GTK_WIDGET (monitor), "trough", 0, 0, width, height);
|
NULL, GTK_WIDGET (monitor), "trough", 0, 0, width, height);
|
||||||
|
|
||||||
/* Paint the graph */
|
/* Paint the graph */
|
||||||
@@ -272,7 +272,7 @@ xtm_process_monitor_paint (XtmProcessMonitor *monitor)
|
|||||||
cairo_stroke (cr);
|
cairo_stroke (cr);
|
||||||
|
|
||||||
/* Repaint a shadow on top of everything to clear corners */
|
/* Repaint a shadow on top of everything to clear corners */
|
||||||
gtk_paint_shadow (GTK_WIDGET (monitor)->style, GTK_WIDGET (monitor)->window, GTK_STATE_NORMAL, GTK_SHADOW_IN,
|
gtk_paint_shadow (GTK_WIDGET (monitor)->style, GTK_WIDGET (monitor)->window, GTK_STATE_PRELIGHT, GTK_SHADOW_IN,
|
||||||
NULL, GTK_WIDGET (monitor), "trough", 0, 0, width, height);
|
NULL, GTK_WIDGET (monitor), "trough", 0, 0, width, height);
|
||||||
|
|
||||||
cairo_destroy (cr);
|
cairo_destroy (cr);
|
||||||
|
|||||||
Reference in New Issue
Block a user