by default, use the *real* active title font for the inactive font, not the

guess

svn path=/trunk/kdebase/kwin/; revision=73865
This commit is contained in:
bhughes 2000-12-08 00:54:19 +00:00
parent 7be5b88851
commit 52973e7e30

View file

@ -1,6 +1,6 @@
/*****************************************************************
kwin - the KDE window manager
Copyright (C) 1999, 2000 Matthias Ettrich <ettrich@kde.org>
******************************************************************/
#include "options.h"
@ -41,7 +41,7 @@ const QFont& Options::font(bool active, bool small)
{
if ( small )
return(active ? activeFontSmall : inactiveFontSmall);
else
else
return(active ? activeFont : inactiveFont);
}
@ -125,7 +125,7 @@ void Options::reload()
activeFontGuess.setPixelSize(12);
activeFont = config->readFontEntry("activeFont", &activeFontGuess);
inactiveFont = config->readFontEntry("inactiveFont", &activeFontGuess);
inactiveFont = config->readFontEntry("inactiveFont", &activeFont);
activeFontSmall = activeFont;
activeFontSmall.setPointSize(activeFont.pointSize() - 2);