mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-21 16:07:23 -06:00
Enlarge "speed limits" icons
And make use of QStyle pixelMetric(). PR #16630.
This commit is contained in:
@@ -57,9 +57,9 @@ SpeedLimitDialog::SpeedLimitDialog(QWidget *parent)
|
||||
m_ui->setupUi(this);
|
||||
|
||||
m_ui->labelGlobalSpeedIcon->setPixmap(Utils::Gui::scaledPixmapSvg(UIThemeManager::instance()->getIconPath(QLatin1String("slow_off"))
|
||||
, this, style()->pixelMetric(QStyle::PM_SmallIconSize, nullptr, this)));
|
||||
, this, Utils::Gui::mediumIconSize(this).height()));
|
||||
m_ui->labelAltGlobalSpeedIcon->setPixmap(Utils::Gui::scaledPixmapSvg(UIThemeManager::instance()->getIconPath(QLatin1String("slow"))
|
||||
, this, style()->pixelMetric(QStyle::PM_SmallIconSize, nullptr, this)));
|
||||
, this, Utils::Gui::mediumIconSize(this).height()));
|
||||
|
||||
const auto initSlider = [](QSlider *slider, const int value, const int maximum)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user