mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 16:58:06 -06:00
Add option to make progress bar to follow torrent state color
PR #22967. --------- Co-authored-by: Vladimir Golovnev <glassez@yandex.ru>
This commit is contained in:
@@ -186,6 +186,19 @@ void Preferences::setAlternatingRowColors(const bool b)
|
||||
setValue(u"Preferences/General/AlternatingRowColors"_s, b);
|
||||
}
|
||||
|
||||
bool Preferences::getProgressBarFollowsTextColor() const
|
||||
{
|
||||
return value(u"GUI/TransferList/ProgressBarFollowsTextColor"_s, false);
|
||||
}
|
||||
|
||||
void Preferences::setProgressBarFollowsTextColor(const bool value)
|
||||
{
|
||||
if (value == getProgressBarFollowsTextColor())
|
||||
return;
|
||||
|
||||
setValue(u"GUI/TransferList/ProgressBarFollowsTextColor"_s, value);
|
||||
}
|
||||
|
||||
bool Preferences::getHideZeroValues() const
|
||||
{
|
||||
return value(u"Preferences/General/HideZeroValues"_s, false);
|
||||
|
||||
Reference in New Issue
Block a user