From dc7431273d948d298976fc54dfba04dc9607917b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 2 May 2013 01:00:19 +0300 Subject: add new theme option for adjusting titlebar height. New theme option: titlebarHeightRelative Default value: 0 Because titlebar height can be calculated from font height. It can be changed by this option. --- src/gui/widgets/window.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gui/widgets/window.cpp') diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp index ad8014ee8..1b9b955f0 100644 --- a/src/gui/widgets/window.cpp +++ b/src/gui/widgets/window.cpp @@ -134,6 +134,7 @@ Window::Window(const std::string &caption, const bool modal, if (!mTitleBarHeight) mTitleBarHeight = mCaptionFont->getHeight(); + mTitleBarHeight += getOption("titlebarHeightRelative"); setPalette(getOption("palette")); childPalette = getOption("childPalette"); } -- cgit v1.2.3-60-g2f50