From 8602173bd41de88d7b756a7263132d949c2a98b6 Mon Sep 17 00:00:00 2001 From: Sandro Giessl Date: Tue, 25 May 2004 13:28:04 +0000 Subject: [PATCH] someone wanted to be able to set a custom titlebar height as it was possible in the kde-look version. Can be done via MinTitleHeight and MinTitleHeightTool config file keys... svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=314472 --- clients/plastik/plastik.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/plastik/plastik.cpp b/clients/plastik/plastik.cpp index 11aa43a57f..d9e4c3a998 100644 --- a/clients/plastik/plastik.cpp +++ b/clients/plastik/plastik.cpp @@ -126,12 +126,12 @@ void PlastikHandler::readConfig() m_titleShadow = config.readBoolEntry("TitleShadow", true); QFontMetrics fm(m_titleFont); // active font = inactive font - int titleHeightMin = 16; + int titleHeightMin = config.readNumEntry("MinTitleHeight", 16); // The title should strech with bigger font sizes! m_titleHeight = QMAX(titleHeightMin, fm.height() + 4); // 4 px for the shadow etc. fm = QFontMetrics(m_titleFontTool); // active font = inactive font - int titleHeightToolMin = 13; + int titleHeightToolMin = config.readNumEntry("MinTitleHeightTool", 13); // The title should strech with bigger font sizes! m_titleHeightTool = QMAX(titleHeightToolMin, fm.height() ); // don't care about the shadow etc.