84 |
|
|
85 |
RegionChooser::RegionChooser() : |
RegionChooser::RegionChooser() : |
86 |
activeKeyColor("red"), |
activeKeyColor("red"), |
87 |
red("#8070ff"), |
blue("#4796ff"), |
88 |
grey1("grey69"), |
grey1("grey69"), |
89 |
white("white"), |
white("white"), |
90 |
black("black"), |
black("black"), |
334 |
cr->line_to(x3, h1 - 0.5); |
cr->line_to(x3, h1 - 0.5); |
335 |
cr->stroke(); |
cr->stroke(); |
336 |
|
|
337 |
Gdk::Cairo::set_source_rgba(cr, region == r ? red : white); |
Gdk::Cairo::set_source_rgba(cr, region == r ? blue : white); |
338 |
cr->rectangle(x3 + 1, 1, x2 - x3 - 1, h1 - 2); |
cr->rectangle(x3 + 1, 1, x2 - x3 - 1, h1 - 2); |
339 |
cr->fill(); |
cr->fill(); |
340 |
Gdk::Cairo::set_source_rgba(cr, black); |
Gdk::Cairo::set_source_rgba(cr, black); |
405 |
layout->set_width(get_width() * Pango::SCALE); |
layout->set_width(get_width() * Pango::SCALE); |
406 |
//layout->set_height(get_height() * Pango::SCALE); |
//layout->set_height(get_height() * Pango::SCALE); |
407 |
layout->set_spacing(10); |
layout->set_spacing(10); |
408 |
Gdk::Cairo::set_source_rgba(cr, red); |
Gdk::Cairo::set_source_rgba(cr, blue); |
409 |
// get the text dimensions |
// get the text dimensions |
410 |
int text_width, text_height; |
int text_width, text_height; |
411 |
layout->get_pixel_size(text_width, text_height); |
layout->get_pixel_size(text_width, text_height); |