diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-02 01:00:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-02 01:00:19 +0300 |
commit | dc7431273d948d298976fc54dfba04dc9607917b (patch) | |
tree | f2ebef6567cc2ce07ae567de6602a3e6ffc3e53d /src/gui/widgets | |
parent | 209fdbeaf69176fdab23604e820a73103e66776d (diff) | |
download | mv-dc7431273d948d298976fc54dfba04dc9607917b.tar.gz mv-dc7431273d948d298976fc54dfba04dc9607917b.tar.bz2 mv-dc7431273d948d298976fc54dfba04dc9607917b.tar.xz mv-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.cpp | 1 |
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"); } |