1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-03-09 20:01:08 +00:00

Optimize text color for dark themes v2. Closes #3815.

This commit is contained in:
sledgehammer999 2015-10-08 20:52:09 +03:00
parent 8f8218c515
commit 357dfca3e0

View File

@ -354,14 +354,17 @@ QColor getColorByState(BitTorrent::TorrentState state)
case BitTorrent::TorrentState::Downloading:
case BitTorrent::TorrentState::ForcedDownloading:
case BitTorrent::TorrentState::DownloadingMetadata:
return QColor(34, 139, 34); // Forest Green
if (!dark)
return QColor(34, 139, 34); // Forest Green
else
return QColor(50, 205, 50); // Lime Green
case BitTorrent::TorrentState::Allocating:
case BitTorrent::TorrentState::StalledDownloading:
case BitTorrent::TorrentState::StalledUploading:
if (!dark)
return QColor(0, 0, 0); // Black
else
return QColor(255, 255, 255); // White
return QColor(204, 204, 204); // Gray 80
case BitTorrent::TorrentState::Uploading:
case BitTorrent::TorrentState::ForcedUploading:
if (!dark)