mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-03 14:12:30 -06:00
Use toned green color for downloading pieces in Pieces bar
This commit is contained in:
@@ -32,9 +32,18 @@
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
namespace
|
||||
{
|
||||
QColor dlPieceColor(const QColor &pieceColor)
|
||||
{
|
||||
const QColor green {Qt::green};
|
||||
return QColor::fromHsl(green.hslHue(), pieceColor.hslSaturation(), pieceColor.lightness());
|
||||
}
|
||||
}
|
||||
|
||||
DownloadedPiecesBar::DownloadedPiecesBar(QWidget *parent)
|
||||
: base {parent}
|
||||
, m_dlPieceColor {0, 0xd0, 0}
|
||||
, m_dlPieceColor {dlPieceColor(pieceColor())}
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user