From b8aa2c95ef8b354b29be2b40eef9103a46196d55 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 18 Nov 2011 23:34:28 +0000 Subject: [PATCH] audio clocks: the thin red line git-svn-id: svn://localhost/ardour2/branches/3.0@10695 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/audio_clock.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/audio_clock.cc b/gtk2_ardour/audio_clock.cc index 6252d2461e..e847a27e9f 100644 --- a/gtk2_ardour/audio_clock.cc +++ b/gtk2_ardour/audio_clock.cc @@ -186,7 +186,7 @@ AudioClock::set_colors () editing_color = ARDOUR_UI::config()->color_by_name (string_compose ("%1: edited text", get_name())); } - /* store for bg in ::render() */ + /* store for bg in render() */ UINT_TO_RGBA (bg_color, &r, &g, &b, &a); r = lrint ((r/256.0) * 65535.0); @@ -282,12 +282,12 @@ AudioClock::render (cairo_t* cr) } if (editing) { - const double cursor_width = 16.0; /* need em width here, not 16 */ + const double cursor_width = 4.0; /* need em width here, not 16 */ if (!insert_map.empty()) { Pango::Rectangle cursor = _layout->get_cursor_strong_pos (insert_map[input_string.length()]); - cairo_set_source_rgba (cr, 0.9, 0.1, 0.1, 0.4); + cairo_set_source_rgba (cr, 0.9, 0.1, 0.1, 0.8); cairo_rectangle (cr, x_leading_padding + cursor.get_x()/PANGO_SCALE, (upper_height - layout_height)/2.0, @@ -295,7 +295,7 @@ AudioClock::render (cairo_t* cr) cairo_fill (cr); } else { if (input_string.empty()) { - cairo_set_source_rgba (cr, 0.9, 0.1, 0.1, 0.4); + cairo_set_source_rgba (cr, 0.9, 0.1, 0.1, 0.8); cairo_rectangle (cr, (get_width()/2.0) - cursor_width, (upper_height - layout_height)/2.0,