mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
Use text to specify combo box padding for better font/display tolerance.
Consistent mixer strip button height. The latter works by setting all the button size request heights to the calculated height of the alphabet. Thus, all buttons of the same class will be the same height regardless of their actual text.
This commit is contained in:
parent
394ea9cb86
commit
b75b88a1eb
5 changed files with 115 additions and 10 deletions
|
|
@ -23,6 +23,7 @@
|
|||
#include <gtkmm2ext/bindable_button.h>
|
||||
#include <gtkmm2ext/barcontroller.h>
|
||||
#include <gtkmm2ext/gtk_ui.h>
|
||||
#include <gtkmm2ext/utils.h>
|
||||
|
||||
#include "ardour/route_group.h"
|
||||
#include "ardour/dB.h"
|
||||
|
|
@ -65,6 +66,8 @@ uint32_t RouteUI::_max_invert_buttons = 3;
|
|||
PBD::Signal1<void, boost::shared_ptr<Route> > RouteUI::BusSendDisplayChanged;
|
||||
boost::weak_ptr<Route> RouteUI::_showing_sends_to;
|
||||
|
||||
static const int _button_vpad = 2;
|
||||
|
||||
RouteUI::RouteUI (ARDOUR::Session* sess)
|
||||
: AxisView(sess)
|
||||
, mute_menu(0)
|
||||
|
|
@ -1935,6 +1938,7 @@ RouteUI::setup_invert_buttons ()
|
|||
for (uint32_t i = 0; i < to_add; ++i) {
|
||||
ArdourButton* b = manage (new ArdourButton);
|
||||
b->set_size_request(20,20);
|
||||
Gtkmm2ext::set_height_request_to_display_any_text (*b, _button_vpad);
|
||||
b->signal_button_press_event().connect (sigc::mem_fun (*this, &RouteUI::invert_press));
|
||||
b->signal_button_release_event().connect (sigc::bind (sigc::mem_fun (*this, &RouteUI::invert_release), i));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue