From f9058a548028f7505022b56b260342bef75daaff Mon Sep 17 00:00:00 2001 From: fluxgen Date: Fri, 22 Aug 2003 15:20:32 +0000 Subject: fixed theme height --- src/FbWinFrame.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc index f23568b..ed28121 100644 --- a/src/FbWinFrame.cc +++ b/src/FbWinFrame.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbWinFrame.cc,v 1.37 2003/08/19 16:13:25 fluxgen Exp $ +// $Id: FbWinFrame.cc,v 1.38 2003/08/22 15:20:32 fluxgen Exp $ #include "FbWinFrame.hh" @@ -707,10 +707,13 @@ void FbWinFrame::reconfigureTitlebar() { return; // resize titlebar to window size with font height + int title_height = m_theme.font().height() == 0 ? 16 : + m_theme.font().height() + m_bevel*2 + 2; + if (m_theme.titleHeight() != 0) + title_height = m_theme.titleHeight(); + m_titlebar.moveResize(-m_titlebar.borderWidth(), -m_titlebar.borderWidth(), - m_window.width(), - m_theme.font().height() == 0 ? 16 : - m_theme.font().height() + m_bevel*2 + 2); + m_window.width(), title_height); // draw left buttons first unsigned int next_x = m_bevel; -- cgit v0.11.2