handle Unknown state

This commit is contained in:
Mark 2025-07-06 14:13:58 +04:00
commit 8b13df21bc
2 changed files with 2 additions and 0 deletions

View file

@ -54,6 +54,7 @@ namespace
const TorrentStateColorDescriptor colorDescriptors[] =
{
{BitTorrent::TorrentState::Unknown, u"TransferList.Unknown"_s},
{BitTorrent::TorrentState::Downloading, u"TransferList.Downloading"_s},
{BitTorrent::TorrentState::StalledDownloading, u"TransferList.StalledDownloading"_s},
{BitTorrent::TorrentState::DownloadingMetadata, u"TransferList.DownloadingMetadata"_s},

View file

@ -63,6 +63,7 @@ inline QHash<QString, UIThemeColor> defaultUIThemeColors()
{u"RSS.ReadArticle"_s, {{}, {}}},
{u"RSS.UnreadArticle"_s, {{}, {}}},
{u"TransferList.Unknown"_s, {Color::Primer::Light::accentEmphasis, Color::Primer::Dark::accentEmphasis}},
{u"TransferList.Downloading"_s, {Color::Primer::Light::successFg, Color::Primer::Dark::successFg}},
{u"TransferList.StalledDownloading"_s, {Color::Primer::Light::successEmphasis, Color::Primer::Dark::successEmphasis}},
{u"TransferList.DownloadingMetadata"_s, {Color::Primer::Light::successFg, Color::Primer::Dark::successFg}},