Add option to disable torrent state colors

PR #22976.
This commit is contained in:
Vladimir Golovnev
2025-07-14 11:40:53 +03:00
committed by GitHub
parent 66f3cf7e67
commit e1ebf8374e
9 changed files with 65 additions and 22 deletions

View File

@@ -186,6 +186,19 @@ void Preferences::setAlternatingRowColors(const bool b)
setValue(u"Preferences/General/AlternatingRowColors"_s, b);
}
bool Preferences::useTorrentStatesColors() const
{
return value(u"GUI/TransferList/UseTorrentStatesColors"_s, true);
}
void Preferences::setUseTorrentStatesColors(const bool value)
{
if (value == useTorrentStatesColors())
return;
setValue(u"GUI/TransferList/UseTorrentStatesColors"_s, value);
}
bool Preferences::getProgressBarFollowsTextColor() const
{
return value(u"GUI/TransferList/ProgressBarFollowsTextColor"_s, false);