10#include <KColorScheme>
11#include <QApplication>
13using namespace MessageCore;
15static bool isLightTheme()
32void ColorUtil::updateColors()
37void ColorUtil::initializeColors()
43 mQuoteLevel1DefaultTextColor = base.
darker(120);
44 mQuoteLevel2DefaultTextColor = base.
darker(150);
45 mQuoteLevel3DefaultTextColor = base.
darker(200);
47 mQuoteLevel1DefaultTextColor = base.
lighter(200);
48 mQuoteLevel2DefaultTextColor = base.
lighter(170);
49 mQuoteLevel3DefaultTextColor = base.
lighter(140);
53 mPgpEncryptedMessageColor =
QColor(0x00, 0x80, 0xFF).
lighter(180);
54 mPgpEncryptedTextColor =
QColor(0x00, 0x80, 0xFF).
darker(200);
56 mPgpEncryptedMessageColor =
QColor(0x00, 0x80, 0xFF).
darker(300);
57 mPgpEncryptedTextColor =
QColor(0x00, 0x80, 0xFF).
lighter(170);
68QColor ColorUtil::misspelledDefaultTextColor()
const
70 return mMisspelledDefaultTextColor;
73QColor ColorUtil::quoteLevel1DefaultTextColor()
const
75 return mQuoteLevel1DefaultTextColor;
78QColor ColorUtil::quoteLevel2DefaultTextColor()
const
80 return mQuoteLevel2DefaultTextColor;
83QColor ColorUtil::quoteLevel3DefaultTextColor()
const
85 return mQuoteLevel3DefaultTextColor;
88QColor ColorUtil::pgpSignedTrustedMessageColor()
const
90 return mPgpSignedTrustedMessageColor;
93QColor ColorUtil::pgpSignedTrustedTextColor()
const
95 return mPgpSignedTrustedTextColor;
98QColor ColorUtil::pgpSignedUntrustedMessageColor()
const
100 return mPgpSignedUntrustedMessageColor;
103QColor ColorUtil::pgpSignedUntrustedTextColor()
const
105 return mPgpSignedUntrustedTextColor;
108QColor ColorUtil::pgpSignedBadMessageColor()
const
110 return mPgpSignedBadMessageColor;
113QColor ColorUtil::pgpSignedBadTextColor()
const
115 return mPgpSignedBadTextColor;
118QColor ColorUtil::pgpEncryptedMessageColor()
const
120 return mPgpEncryptedMessageColor;
123QColor ColorUtil::pgpEncryptedTextColor()
const
125 return mPgpEncryptedTextColor;
128QColor ColorUtil::linkColor()
const
QColor darker(int factor) const const
QColor lighter(int factor) const const