mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-18 12:46:32 +01:00
ask TAV buttons to have square proportions
This commit is contained in:
parent
6dd114c3f1
commit
0ea1238479
3 changed files with 16 additions and 1 deletions
|
|
@ -602,6 +602,13 @@ ArdourButton::on_size_request (Gtk::Requisition* req)
|
||||||
}
|
}
|
||||||
|
|
||||||
req->width += _corner_radius;
|
req->width += _corner_radius;
|
||||||
|
|
||||||
|
if ((_tweaks & Square)==Square) {
|
||||||
|
if (req->width < req->height)
|
||||||
|
req->width = req->height;
|
||||||
|
if (req->height < req->width)
|
||||||
|
req->height = req->width;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ class ArdourButton : public CairoWidget , public Gtkmm2ext::Activatable
|
||||||
virtual ~ArdourButton ();
|
virtual ~ArdourButton ();
|
||||||
|
|
||||||
enum Tweaks {
|
enum Tweaks {
|
||||||
unused1 = 0x1,
|
Square = 0x1,
|
||||||
unused2 = 0x2,
|
unused2 = 0x2,
|
||||||
unused3 = 0x4,
|
unused3 = 0x4,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -251,6 +251,14 @@ RouteTimeAxisView::set_route (boost::shared_ptr<Route> rt)
|
||||||
ARDOUR_UI::instance()->set_tip(*mute_button,_("Mute"));
|
ARDOUR_UI::instance()->set_tip(*mute_button,_("Mute"));
|
||||||
ARDOUR_UI::instance()->set_tip(route_group_button, _("Route Group"));
|
ARDOUR_UI::instance()->set_tip(route_group_button, _("Route Group"));
|
||||||
|
|
||||||
|
mute_button->set_tweaks(ArdourButton::Square);
|
||||||
|
solo_button->set_tweaks(ArdourButton::Square);
|
||||||
|
rec_enable_button->set_tweaks(ArdourButton::Square);
|
||||||
|
playlist_button.set_tweaks(ArdourButton::Square);
|
||||||
|
automation_button.set_tweaks(ArdourButton::Square);
|
||||||
|
route_group_button.set_tweaks(ArdourButton::Square);
|
||||||
|
number_label.set_tweaks(ArdourButton::Square);
|
||||||
|
|
||||||
if (is_midi_track()) {
|
if (is_midi_track()) {
|
||||||
ARDOUR_UI::instance()->set_tip(automation_button, _("MIDI Controllers and Automation"));
|
ARDOUR_UI::instance()->set_tip(automation_button, _("MIDI Controllers and Automation"));
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue