diff --git a/CHANGELOG.md b/CHANGELOG.md index 972eb3443..8bfff23aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unversioned +- Bugfix: Fixed low contrast of text in settings tooltips. (#4188) - Bugfix: Fixed being unable to see the usercard of VIPs who have Asian language display names. (#4174) - Bugfix: Fixed the wrong right-click menu showing in the chat input box. (#4177) - Bugfix: Fixed popup windows not appearing/minimizing correctly on the Windows taskbar. (#4181) diff --git a/resources/qss/settings.qss b/resources/qss/settings.qss index ba63133ce..6d5114423 100644 --- a/resources/qss/settings.qss +++ b/resources/qss/settings.qss @@ -34,6 +34,13 @@ chatterino--SettingsPage #generalSettingsScrollContent { background: #222; } +chatterino--SettingsPage QToolTip { + padding: 2px; + background-color: #333333; + border: 1px solid #545454; + color: white; +} + chatterino--PageHeader { margin-bottom: 12px; } diff --git a/src/widgets/settingspages/GeneralPageView.cpp b/src/widgets/settingspages/GeneralPageView.cpp index 60c66b4bb..ff2b58623 100644 --- a/src/widgets/settingspages/GeneralPageView.cpp +++ b/src/widgets/settingspages/GeneralPageView.cpp @@ -18,14 +18,6 @@ const auto MAX_TOOLTIP_LINE_LENGTH_PATTERN = QStringLiteral(R"(.{%1}\S*\K(\s+))").arg(MAX_TOOLTIP_LINE_LENGTH); const QRegularExpression MAX_TOOLTIP_LINE_LENGTH_REGEX( MAX_TOOLTIP_LINE_LENGTH_PATTERN); - -const auto TOOLTIP_STYLE_SHEET = QStringLiteral(R"(QToolTip { -padding: 2px; -background-color: #333333; -border: 1px solid #545454; -} -)"); - } // namespace namespace chatterino { @@ -409,7 +401,6 @@ void GeneralPageView::addToolTip(QWidget &widget, QString text) const } widget.setToolTip(text); - widget.setStyleSheet(TOOLTIP_STYLE_SHEET); } } // namespace chatterino