mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-12 05:58:01 -04:00
Merge pull request #1162 from kiwix/Issue#1145-library-spinner
Aligned Library Download Spinner
This commit is contained in:
commit
f53d7adb1d
@ -94,9 +94,9 @@ void createDownloadStats(QPainter *painter, QRect box, QString downloadSpeed, QS
|
|||||||
painter->setPen(pen);
|
painter->setPen(pen);
|
||||||
auto oldFont = painter->font();
|
auto oldFont = painter->font();
|
||||||
painter->setFont(QFont("Selawik", 8));
|
painter->setFont(QFont("Selawik", 8));
|
||||||
QRect nRect(x - 10, y - 10, w, h);
|
QRect nRect(x - 20, y - 10, w, h);
|
||||||
painter->drawText(nRect,Qt::AlignCenter | Qt::AlignJustify, downloadSpeed);
|
painter->drawText(nRect,Qt::AlignCenter | Qt::AlignJustify, downloadSpeed);
|
||||||
QRect fRect(x - 10, y + 10, w, h);
|
QRect fRect(x - 20, y + 10, w, h);
|
||||||
painter->drawText(fRect,Qt::AlignCenter | Qt::AlignJustify, completedLength);
|
painter->drawText(fRect,Qt::AlignCenter | Qt::AlignJustify, completedLength);
|
||||||
painter->setFont(oldFont);
|
painter->setFont(oldFont);
|
||||||
}
|
}
|
||||||
@ -118,8 +118,8 @@ DownloadControlLayout getDownloadControlLayout(QRect box)
|
|||||||
const int buttonH = h - 40;
|
const int buttonH = h - 40;
|
||||||
|
|
||||||
DownloadControlLayout dcl;
|
DownloadControlLayout dcl;
|
||||||
dcl.pauseResumeButtonRect = QRect(x + w/2 + 20, y + 20, buttonW, buttonH);
|
dcl.pauseResumeButtonRect = QRect(x + w/2 + 10, y + 20, buttonW, buttonH);
|
||||||
dcl.cancelButtonRect = QRect(x + w/2 - 20, y + 20, buttonW, buttonH);
|
dcl.cancelButtonRect = QRect(x + w/2 - 40, y + 20, buttonW, buttonH);
|
||||||
return dcl;
|
return dcl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user