tweak "joined" buttons to have no border color
git-svn-id: svn://localhost/ardour2/branches/3.0@11460 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
5252c77d94
commit
aeb4617b1d
@ -345,6 +345,7 @@ ArdourButton::set_colors ()
|
||||
|
||||
if (edge_pattern) {
|
||||
cairo_pattern_destroy (edge_pattern);
|
||||
edge_pattern = 0;
|
||||
}
|
||||
|
||||
if (_elements & Edge) {
|
||||
@ -369,6 +370,7 @@ ArdourButton::set_colors ()
|
||||
|
||||
if (fill_pattern) {
|
||||
cairo_pattern_destroy (fill_pattern);
|
||||
fill_pattern = 0;
|
||||
}
|
||||
|
||||
if (_elements & Body) {
|
||||
@ -722,3 +724,10 @@ ArdourButton::set_rounded_corner_mask (int mask)
|
||||
_corner_mask = mask;
|
||||
queue_draw ();
|
||||
}
|
||||
|
||||
void
|
||||
ArdourButton::set_elements (Element e)
|
||||
{
|
||||
_elements = e;
|
||||
set_colors ();
|
||||
}
|
||||
|
@ -60,7 +60,8 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable
|
||||
void set_visual_state (Gtkmm2ext::VisualState);
|
||||
|
||||
Element elements() const { return _elements; }
|
||||
|
||||
void set_elements (Element);
|
||||
|
||||
void set_corner_radius (float);
|
||||
void set_rounded_corner_mask (int);
|
||||
void set_diameter (float);
|
||||
|
@ -221,6 +221,9 @@ ARDOUR_UI::ARDOUR_UI (int *argcp, char **argvp[])
|
||||
original_big_clock_height = -1;
|
||||
original_big_clock_font_size = 0;
|
||||
|
||||
roll_button.set_elements (ArdourButton::Element (ArdourButton::Body|ArdourButton::Text));
|
||||
play_selection_button.set_elements (ArdourButton::Element (ArdourButton::Body|ArdourButton::Text));
|
||||
|
||||
roll_button.set_controllable (roll_controllable);
|
||||
stop_button.set_controllable (stop_controllable);
|
||||
goto_start_button.set_controllable (goto_start_controllable);
|
||||
|
@ -2791,6 +2791,9 @@ Editor::setup_toolbar ()
|
||||
smart_mode_joiner = manage (new ButtonJoiner ("mouse mode button", mouse_move_button, mouse_select_button));
|
||||
smart_mode_joiner->set_related_action (smart_mode_action);
|
||||
|
||||
mouse_move_button.set_elements (ArdourButton::Element (ArdourButton::Body|ArdourButton::Text));
|
||||
mouse_select_button.set_elements (ArdourButton::Element (ArdourButton::Body|ArdourButton::Text));
|
||||
|
||||
mouse_move_button.set_rounded_corner_mask (0x1); // upper left only
|
||||
mouse_select_button.set_rounded_corner_mask (0x2); // upper right only
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user