From: <> Date: Sun, 11 Apr 2010 12:38:30 +0000 (+0200) Subject: Draw icon with a style color, not a fixed grey X-Git-Tag: 1.0~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=79f888501801e4db2fe0a9e2bf537484da7b6362;p=minitube Draw icon with a style color, not a fixed grey --- diff --git a/src/searchlineedit.cpp b/src/searchlineedit.cpp index 89edb34..42c2aee 100644 --- a/src/searchlineedit.cpp +++ b/src/searchlineedit.cpp @@ -138,7 +138,7 @@ void SearchButton::paintEvent(QPaintEvent *event) QPainter painter(this); painter.setRenderHint(QPainter::Antialiasing, true); - painter.setPen(QPen(Qt::darkGray, height() / 10)); + painter.setPen(QPen(palette().color(QPalette::Mid), height() / 10)); painter.drawPath(myPath); if (m_menu) { @@ -181,6 +181,7 @@ m_searchButton(new SearchButton(this)) // completion completion = new GSuggestCompletion(this, m_lineEdit); + } void SearchLineEdit::paintEvent(QPaintEvent *event)