mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 19:40:18 -07:00
Optimize text color for dark themes v2. Closes #3815.
This commit is contained in:
parent
8f8218c515
commit
357dfca3e0
1 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue