Commit 23115fed authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Store linkcolor

parent f1978e83
......@@ -18,7 +18,7 @@ include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(ECMQtDeclareLoggingCategory)
include(ECMAddTests)
set(PIM_VERSION "5.3.70")
set(PIM_VERSION "5.3.71")
set(MESSAGELIB_LIB_VERSION ${PIM_VERSION})
set(AKONADIMIME_LIB_VERSION "5.3.40")
......
......@@ -70,6 +70,7 @@ void ColorUtil::initializeColors()
mPgpSignedUntrustedTextColor = scheme.foreground(KColorScheme::NeutralText).color();
mPgpSignedBadMessageColor = scheme.background(KColorScheme::NegativeBackground).color();
mPgpSignedBadTextColor = scheme.foreground(KColorScheme::NegativeText).color();
mLinkColor = scheme.foreground(KColorScheme::LinkText).color();
}
QColor ColorUtil::misspelledDefaultTextColor() const
......@@ -131,3 +132,8 @@ QColor ColorUtil::pgpEncryptedTextColor() const
{
return mPgpEncryptedTextColor;
}
QColor ColorUtil::linkColor() const
{
return mLinkColor;
}
......@@ -47,6 +47,7 @@ public:
QColor pgpSignedBadTextColor() const;
QColor pgpEncryptedMessageColor() const;
QColor pgpEncryptedTextColor() const;
QColor linkColor() const;
private:
void initializeColors();
......@@ -63,6 +64,7 @@ private:
QColor mPgpSignedBadTextColor;
QColor mPgpEncryptedMessageColor;
QColor mPgpEncryptedTextColor;
QColor mLinkColor;
};
}
......
......@@ -52,7 +52,7 @@ CSSHelper::CSSHelper(const QPaintDevice *pd)
// initialize with defaults - should match the corresponding application defaults
mForegroundColor = QApplication::palette().color(QPalette::Text);
mLinkColor = scheme.foreground(KColorScheme::LinkText).color();
mLinkColor = MessageCore::ColorUtil::self()->linkColor();
mBackgroundColor = QApplication::palette().color(QPalette::Base);
cHtmlWarning = QColor(0xFF, 0x40, 0x40); // warning frame color: light red
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment