1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +01:00

Render the bar darker, if set to "Top" or "Bottom", as the small bar could be too hard to recognize.

Also set m_progressVisible only to false (in hideProgress), if m_loadProgress==100. If the user clicks
a link during the 700ms-timeout, the bar shows for a short time and hideProgress sets m_progressVisible to false, though
the page still is loading, which hides the bar in mid-run.
This also fixes the weird behaviour of the progressbar on session-restore.
This commit is contained in:
Franz Fellner 2012-09-20 10:04:18 +02:00
parent 4bb87822cf
commit 620e2a5ea2

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));