forked from qt-creator/qt-creator
Use always black as the foreground color in HelpViewer
Our css styling assumes black as the background color. Task-number: QTCREATORBUG-13660 Change-Id: Ia8d76c39c970b436a0ae038191d8d0f8f8728ded Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Thomas Hartmann
parent
3c85058694
commit
a6d4d50172
@@ -404,6 +404,7 @@ QtWebKitHelpViewer::QtWebKitHelpViewer(qreal zoom, QWidget *parent)
|
||||
|
||||
QPalette p = palette();
|
||||
p.setColor(QPalette::Base, Qt::white);
|
||||
p.setColor(QPalette::Text, Qt::black);
|
||||
setPalette(p);
|
||||
|
||||
connect(m_webView, SIGNAL(urlChanged(QUrl)), this, SIGNAL(sourceChanged(QUrl)));
|
||||
|
||||
@@ -64,6 +64,7 @@ TextBrowserHelpViewer::TextBrowserHelpViewer(qreal zoom, QWidget *parent)
|
||||
p.setColor(QPalette::Inactive, QPalette::HighlightedText,
|
||||
p.color(QPalette::Active, QPalette::HighlightedText));
|
||||
p.setColor(QPalette::Base, Qt::white);
|
||||
p.setColor(QPalette::Text, Qt::black);
|
||||
setPalette(p);
|
||||
|
||||
connect(m_textBrowser, SIGNAL(sourceChanged(QUrl)), this, SIGNAL(titleChanged()));
|
||||
|
||||
Reference in New Issue
Block a user