From ccf81dc9d22618d9d2dee418cba1d50441435e26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Thu, 16 Feb 2006 22:55:02 +0000 Subject: [PATCH] * made the button height proportional to the font size instead of having a fixed spacing... should be more asthetical. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16443 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Button.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kits/interface/Button.cpp b/src/kits/interface/Button.cpp index 4a723f1d4c..9e70d2b418 100644 --- a/src/kits/interface/Button.cpp +++ b/src/kits/interface/Button.cpp @@ -593,7 +593,8 @@ BButton::GetPreferredSize(float *_width, float *_height) font_height fontHeight; GetFontHeight(&fontHeight); - *_height = 12.0f + (float)ceil(fontHeight.ascent + fontHeight.descent) +// *_height = 12.0f + ceilf(fontHeight.ascent + fontHeight.descent) + *_height = ceilf((fontHeight.ascent + fontHeight.descent) * 1.8) + (fDrawAsDefault ? 6.0f : 0); }