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
icc-effect-5.14.5
Sandro Giessl 2004-05-25 13:28:04 +00:00
parent fe3c035f35
commit 8602173bd4
1 changed files with 2 additions and 2 deletions

View File

@ -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.