french -> French
[kdepim.git] / knode / csshelper.cpp
blob78e08b594568814723c51b558348bc0a17b1f519
1 /*
2 KNode, the KDE newsreader
3 Copyright (c) 2005 Volker Krause <vkrause@kde.org>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 You should have received a copy of the GNU General Public License
10 along with this program; if not, write to the Free Software Foundation,
11 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US
14 #include "csshelper.h"
15 #include "knglobals.h"
16 #include "settings.h"
19 KNode::CSSHelper::CSSHelper( const QPaintDevice *pd ) :
20 MessageViewer::CSSHelperBase( pd )
22 mForegroundColor = knGlobals.settings()->textColor();
23 mLinkColor = knGlobals.settings()->linkColor();
24 mVisitedLinkColor = knGlobals.settings()->linkColor();
25 mBackgroundColor = knGlobals.settings()->backgroundColor();
26 for ( int i = 0; i < 3; ++i )
27 mQuoteColor[i] = knGlobals.settings()->quoteColor( i );
29 cHtmlWarning = knGlobals.settings()->htmlWarningColor();
30 cPgpOk1H = knGlobals.settings()->signOkKeyOkColor();
31 cPgpOk0H = knGlobals.settings()->signOkKeyBadColor();
32 cPgpWarnH = knGlobals.settings()->signWarnColor();
33 cPgpErrH = knGlobals.settings()->signErrColor();
35 mBodyFont = mPrintFont = knGlobals.settings()->articleFont();
36 mFixedFont = mFixedPrintFont = knGlobals.settings()->articleFixedFont();
38 recalculatePGPColors();