summaryrefslogtreecommitdiff
path: root/libs/gtkmm2ext/barcontroller.cc
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2014-08-28 16:42:02 -0500
committerBen Loftis <ben@harrisonconsoles.com>2014-08-29 16:35:20 -0500
commit40c3e4122ca804dac4d7fc1b3836e3f544bed911 (patch)
tree661369be7688def93a290939241282e69551c056 /libs/gtkmm2ext/barcontroller.cc
parent65e17604464597b27b82091dd3f7246f46dbf318 (diff)
try a different method of text display on automation bars
Diffstat (limited to 'libs/gtkmm2ext/barcontroller.cc')
-rw-r--r--libs/gtkmm2ext/barcontroller.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/libs/gtkmm2ext/barcontroller.cc b/libs/gtkmm2ext/barcontroller.cc
index 83a2901734..4ad048a0cc 100644
--- a/libs/gtkmm2ext/barcontroller.cc
+++ b/libs/gtkmm2ext/barcontroller.cc
@@ -456,9 +456,14 @@ BarController::expose (GdkEventExpose* /*event*/)
layout->set_text (label);
layout->get_pixel_size (twidth, theight);
- c = get_style()->get_text (get_state());
- CairoWidget::set_source_rgb_a (cr, c, 1.0);
- context->move_to ( (fract > 0.5) ? w - twidth/0.7 : twidth/0.7, (darea.get_height()/2) - (theight/2));
+ if (fract > 0.5) {
+ cairo_set_source_rgba (cr, 0.17, 0.17, 0.17, 1.0);
+ context->move_to ( 5, (darea.get_height()/2) - (theight/2));
+ } else {
+ c = get_style()->get_text (get_state());
+ CairoWidget::set_source_rgb_a (cr, c, 0.7);
+ context->move_to ( w-twidth-5, (darea.get_height()/2) - (theight/2));
+ }
layout->show_in_cairo_context (context);
}