break;
}
+ if (!darea.get_sensitive()) {
+ rounded_rectangle (context, 0, 0, darea.get_width(), darea.get_height(), 3);
+ context->set_source_rgba (0.505, 0.517, 0.525, 0.6);
+ context->fill ();
+ }
+
/* draw label */
double xpos = -1;
pango_cairo_show_layout (cr, _layout->gobj());
}
-// if (Config->get_widget_prelight()) { //pixfader does not have access to config
- if (_hovering) {
- Gtkmm2ext::rounded_rectangle (cr, 0, 0, get_width(), get_height(), 3);
- cairo_set_source_rgba (cr, 0.905, 0.917, 0.925, 0.1);
- cairo_fill (cr);
- }
-// }
+ if (!get_sensitive()) {
+ Gtkmm2ext::rounded_rectangle (cr, 0, 0, get_width(), get_height(), 3);
+ cairo_set_source_rgba (cr, 0.505, 0.517, 0.525, 0.4);
+ cairo_fill (cr);
+ } else if (_hovering) {
+ Gtkmm2ext::rounded_rectangle (cr, 0, 0, get_width(), get_height(), 3);
+ cairo_set_source_rgba (cr, 0.905, 0.917, 0.925, 0.1);
+ cairo_fill (cr);
+ }
last_drawn = ds;