diff options
author | Robin Gareus <robin@gareus.org> | 2014-09-04 19:44:01 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-09-04 20:11:45 +0200 |
commit | 86ffa35f84836a974a16922cded2764e84e808b7 (patch) | |
tree | b20470162a2ee92d7af595d47ed571e5bdb7fe59 /gtk2_ardour/ardour_button.cc | |
parent | dc02625b563875d5c7facfa010bfab1156920ef0 (diff) |
separate button text-height -> button-height factor, bump to 1.3[em]
Diffstat (limited to 'gtk2_ardour/ardour_button.cc')
-rw-r--r-- | gtk2_ardour/ardour_button.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/ardour_button.cc b/gtk2_ardour/ardour_button.cc index 3d5ab4c994..d8d01bc8e4 100644 --- a/gtk2_ardour/ardour_button.cc +++ b/gtk2_ardour/ardour_button.cc @@ -41,7 +41,7 @@ #include "i18n.h" -#define REFLECTION_HEIGHT 2 +#define BASELINESTRETCH (1.3) using namespace Gdk; using namespace Gtk; @@ -556,7 +556,7 @@ ArdourButton::on_size_request (Gtk::Requisition* req) _text_height = char_pixel_height (); req->width += char_pixel_width(); req->width += _text_width; - req->height = std::max(req->height, (int) ceil(_text_height * 1.25)); + req->height = std::max(req->height, (int) ceil(_text_height * BASELINESTRETCH)); } else { _text_width = 0; _text_height = 0; @@ -578,7 +578,7 @@ ArdourButton::on_size_request (Gtk::Requisition* req) if (_elements & (RecButton | CloseCross)) { assert(!(_elements & Text)); - const int wh = std::max(char_pixel_width(), char_pixel_height()) * 1.25; + const int wh = std::max(char_pixel_width(), char_pixel_height()) * BASELINESTRETCH; req->width += wh; req->height = std::max(req->height, (int) wh); } |