Browse Source

Merge pull request #18094 from Chocobo1/color

Revise text color for completed status
adaptive-webui-19844
Chocobo1 2 years ago committed by GitHub
parent
commit
4741aab7a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/gui/color.h
  2. 2
      src/gui/transferlistmodel.cpp

6
src/gui/color.h

@ -43,13 +43,13 @@ namespace Color
inline const QColor accentEmphasis = 0x1f6feb; inline const QColor accentEmphasis = 0x1f6feb;
inline const QColor accentFg = 0x58a6ff; inline const QColor accentFg = 0x58a6ff;
inline const QColor dangerFg = 0xf85149; inline const QColor dangerFg = 0xf85149;
inline const QColor doneFg = 0xa371f7;
inline const QColor fgMuted = 0x8b949e; inline const QColor fgMuted = 0x8b949e;
inline const QColor fgSubtle = 0x6e7681; inline const QColor fgSubtle = 0x6e7681;
inline const QColor severeFg = 0xdb6d28; inline const QColor severeFg = 0xdb6d28;
inline const QColor successEmphasis = 0x238636; inline const QColor successEmphasis = 0x238636;
inline const QColor successFg = 0x1a7f37; inline const QColor successFg = 0x3fb950;
// Scale variables // Scale variables
inline const QColor scaleBlue4 = 0x388bfd;
inline const QColor scaleYellow6 = 0x845306; inline const QColor scaleYellow6 = 0x845306;
} }
@ -59,13 +59,13 @@ namespace Color
inline const QColor accentEmphasis = 0x0969da; inline const QColor accentEmphasis = 0x0969da;
inline const QColor accentFg = 0x0969da; inline const QColor accentFg = 0x0969da;
inline const QColor dangerFg = 0xcf222e; inline const QColor dangerFg = 0xcf222e;
inline const QColor doneFg = 0x8250df;
inline const QColor fgMuted = 0x57606a; inline const QColor fgMuted = 0x57606a;
inline const QColor fgSubtle = 0x6e7781; inline const QColor fgSubtle = 0x6e7781;
inline const QColor severeFg = 0xbc4c00; inline const QColor severeFg = 0xbc4c00;
inline const QColor successEmphasis = 0x2da44e; inline const QColor successEmphasis = 0x2da44e;
inline const QColor successFg = 0x1a7f37; inline const QColor successFg = 0x1a7f37;
// Scale variables // Scale variables
inline const QColor scaleBlue4 = 0x218bff;
inline const QColor scaleYellow6 = 0x7d4e00; inline const QColor scaleYellow6 = 0x7d4e00;
} }
} }

2
src/gui/transferlistmodel.cpp

@ -70,7 +70,7 @@ namespace
case BitTorrent::TorrentState::PausedDownloading: case BitTorrent::TorrentState::PausedDownloading:
return (isDarkTheme ? Color::Primer::Dark::fgMuted : Color::Primer::Light::fgMuted); return (isDarkTheme ? Color::Primer::Dark::fgMuted : Color::Primer::Light::fgMuted);
case BitTorrent::TorrentState::PausedUploading: case BitTorrent::TorrentState::PausedUploading:
return (isDarkTheme ? Color::Primer::Dark::scaleBlue4 : Color::Primer::Light::scaleBlue4); return (isDarkTheme ? Color::Primer::Dark::doneFg : Color::Primer::Light::doneFg);
case BitTorrent::TorrentState::QueuedDownloading: case BitTorrent::TorrentState::QueuedDownloading:
case BitTorrent::TorrentState::QueuedUploading: case BitTorrent::TorrentState::QueuedUploading:
return (isDarkTheme ? Color::Primer::Dark::scaleYellow6 : Color::Primer::Light::scaleYellow6); return (isDarkTheme ? Color::Primer::Dark::scaleYellow6 : Color::Primer::Light::scaleYellow6);

Loading…
Cancel
Save