From bfab477aead2b4376e9caa193dca2c62c2ff26f9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 8 May 2012 01:03:20 +0300 Subject: Add titlepadding option to theme file. Now used only in shortcuts window without title bar. --- src/gui/shortcutwindow.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/gui/shortcutwindow.cpp') diff --git a/src/gui/shortcutwindow.cpp b/src/gui/shortcutwindow.cpp index 0e968efef..4d7443037 100644 --- a/src/gui/shortcutwindow.cpp +++ b/src/gui/shortcutwindow.cpp @@ -26,6 +26,7 @@ #include "logger.h" #include "gui/setup.h" +#include "gui/theme.h" #include "gui/widgets/layout.h" #include "gui/widgets/scrollarea.h" @@ -59,7 +60,15 @@ ShortcutWindow::ShortcutWindow(const std::string &title, { setWindowName(title); // no title presented, title bar is padding so window can be moved. - gcn::Window::setTitleBarHeight(gcn::Window::getPadding() + 1); + if (mSkin) + { + gcn::Window::setTitleBarHeight(gcn::Window::getPadding() + + mSkin->getTitlePadding()); + } + else + { + gcn::Window::setTitleBarHeight(gcn::Window::getPadding()); + } setShowTitle(false); setResizable(true); setDefaultVisible(false); -- cgit v1.2.3-70-g09d2