summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-02 01:00:19 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-02 01:00:19 +0300
commitdc7431273d948d298976fc54dfba04dc9607917b (patch)
treef2ebef6567cc2ce07ae567de6602a3e6ffc3e53d /src/gui/widgets
parent209fdbeaf69176fdab23604e820a73103e66776d (diff)
downloadplus-dc7431273d948d298976fc54dfba04dc9607917b.tar.gz
plus-dc7431273d948d298976fc54dfba04dc9607917b.tar.bz2
plus-dc7431273d948d298976fc54dfba04dc9607917b.tar.xz
plus-dc7431273d948d298976fc54dfba04dc9607917b.zip
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.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/window.cpp1
1 files changed, 1 insertions, 0 deletions
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");
}