From 86ffa35f84836a974a16922cded2764e84e808b7 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 4 Sep 2014 19:44:01 +0200 Subject: [PATCH] separate button text-height -> button-height factor, bump to 1.3[em] --- gtk2_ardour/ardour_button.cc | 6 +++--- 1 file 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); }