mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
Increases contrast of RTA grid labels
This commit is contained in:
parent
db16c8818c
commit
24e8784719
1 changed files with 5 additions and 0 deletions
|
|
@ -524,12 +524,15 @@ RTAWindow::darea_expose_event (GdkEventExpose* ev)
|
||||||
cr->line_to (xx, y1 + 5);
|
cr->line_to (xx, y1 + 5);
|
||||||
cr->stroke ();
|
cr->stroke ();
|
||||||
|
|
||||||
|
cr->save ();
|
||||||
layout->set_text (txt);
|
layout->set_text (txt);
|
||||||
layout->set_alignment (Pango::ALIGN_CENTER);
|
layout->set_alignment (Pango::ALIGN_CENTER);
|
||||||
int tw, th;
|
int tw, th;
|
||||||
layout->get_pixel_size (tw, th);
|
layout->get_pixel_size (tw, th);
|
||||||
cr->move_to (xx - tw / 2, y1 + 5);
|
cr->move_to (xx - tw / 2, y1 + 5);
|
||||||
|
Gtkmm2ext::set_source_rgb_a (cr, _textc, 0.75);
|
||||||
layout->show_in_cairo_context (cr);
|
layout->show_in_cairo_context (cr);
|
||||||
|
cr->restore ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* dB grid */
|
/* dB grid */
|
||||||
|
|
@ -569,11 +572,13 @@ RTAWindow::darea_expose_event (GdkEventExpose* ev)
|
||||||
int tw, th;
|
int tw, th;
|
||||||
layout->get_pixel_size (tw, th);
|
layout->get_pixel_size (tw, th);
|
||||||
cr->save ();
|
cr->save ();
|
||||||
|
Gtkmm2ext::set_source_rgb_a (cr, _textc, 0.75);
|
||||||
cr->move_to (x1 + 5, y + tw / 2);
|
cr->move_to (x1 + 5, y + tw / 2);
|
||||||
cr->rotate (1.5 * M_PI);
|
cr->rotate (1.5 * M_PI);
|
||||||
layout->show_in_cairo_context (cr);
|
layout->show_in_cairo_context (cr);
|
||||||
cr->restore ();
|
cr->restore ();
|
||||||
cr->save ();
|
cr->save ();
|
||||||
|
Gtkmm2ext::set_source_rgb_a (cr, _textc, 0.75);
|
||||||
cr->move_to (x0 - 5, y - tw / 2);
|
cr->move_to (x0 - 5, y - tw / 2);
|
||||||
cr->rotate (0.5 * M_PI);
|
cr->rotate (0.5 * M_PI);
|
||||||
layout->show_in_cairo_context (cr);
|
layout->show_in_cairo_context (cr);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue