Use QPalette::BrightText for global search results for better contrast on Mac.
(cherry picked from commit e4070bbb3b7d57870874be4145420c12ee299e4c)
This commit is contained in:
parent
6fae660ed9
commit
0af197f6a1
@ -90,7 +90,7 @@ QString TooltipResultWidget::TitleText() const {
|
|||||||
void TooltipResultWidget::paintEvent(QPaintEvent*) {
|
void TooltipResultWidget::paintEvent(QPaintEvent*) {
|
||||||
QPainter p(this);
|
QPainter p(this);
|
||||||
|
|
||||||
const QColor text_color = palette().color(QPalette::Text);
|
const QColor text_color = palette().color(QPalette::BrightText);
|
||||||
|
|
||||||
const qreal line_opacity = 0.1 + (isChecked() ? 0.2 : 0.0);
|
const qreal line_opacity = 0.1 + (isChecked() ? 0.2 : 0.0);
|
||||||
const qreal track_opacity = 0.1 + (isChecked() ? 0.5 : 0.0);
|
const qreal track_opacity = 0.1 + (isChecked() ? 0.5 : 0.0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user