1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

Merge pull request #586 from ff2000/location_bar_options

Render the bar darker, if set to "Top" or "Bottom", as the small bar cou...
This commit is contained in:
David Rosca 2012-09-20 08:00:52 -07:00
commit f3f1c46521

View File

@ -578,7 +578,7 @@ void LocationBar::onMessage(Qz::AppMessageType msg, bool state)
void LocationBar::hideProgress() void LocationBar::hideProgress()
{ {
if (qzSettings->showLoadingProgress) { if (qzSettings->showLoadingProgress && m_loadProgress == 100) {
m_progressVisible = false; m_progressVisible = false;
update(); update();
} }
@ -618,7 +618,7 @@ void LocationBar::paintEvent(QPaintEvent* event)
if (!bg.isValid() || bg.alpha() == 0) { if (!bg.isValid() || bg.alpha() == 0) {
bg = Colors::mid(palette().color(QPalette::Base), bg = Colors::mid(palette().color(QPalette::Base),
palette().color(QPalette::Text), palette().color(QPalette::Text),
10, 1); m_progressStyle > 0 ? 4 : 8, 1);
} }
p.setBrush(QBrush(bg)); p.setBrush(QBrush(bg));