2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Use more specific color keys for media overview parts.

File icons and radial animations should use derived keys instead of msgInBg.
Fixes #4246.
This commit is contained in:
John Preston
2017-12-31 01:28:25 +03:00
parent 8ef9ec0567
commit 9551cfaf9b
3 changed files with 13 additions and 13 deletions

View File

@@ -79,14 +79,14 @@ overviewFileExtTop: 24px;
overviewFileExtFg: windowFgActive;
overviewFileExtFont: font(18px semibold);
overviewSongPause: icon {{ "playlist_pause", msgInBg }};
overviewSongPauseSelected: icon {{ "playlist_pause", msgInBgSelected }};
overviewSongPlay: icon {{ "playlist_play", msgInBg }};
overviewSongPlaySelected: icon {{ "playlist_play", msgInBgSelected }};
overviewSongCancel: icon {{ "playlist_cancel", msgInBg }};
overviewSongCancelSelected: icon {{ "playlist_cancel", msgInBgSelected }};
overviewSongDownload: icon {{ "playlist_download", msgInBg }};
overviewSongDownloadSelected: icon {{ "playlist_download", msgInBgSelected }};
overviewSongPause: icon {{ "playlist_pause", historyFileInIconFg }};
overviewSongPauseSelected: icon {{ "playlist_pause", historyFileInIconFgSelected }};
overviewSongPlay: icon {{ "playlist_play", historyFileInIconFg }};
overviewSongPlaySelected: icon {{ "playlist_play", historyFileInIconFgSelected }};
overviewSongCancel: icon {{ "playlist_cancel", historyFileInIconFg }};
overviewSongCancelSelected: icon {{ "playlist_cancel", historyFileInIconFgSelected }};
overviewSongDownload: icon {{ "playlist_download", historyFileInIconFg }};
overviewSongDownloadSelected: icon {{ "playlist_download", historyFileInIconFgSelected }};
overviewFileLayout: OverviewFileLayout {
maxWidth: 520px;
songPadding: margins(17px, 7px, 10px, 6px);

View File

@@ -620,7 +620,7 @@ void Voice::paint(Painter &p, const QRect &clip, TextSelection selection, const
if (radial) {
QRect rinner(inner.marginsRemoved(QMargins(st::msgFileRadialLine, st::msgFileRadialLine, st::msgFileRadialLine, st::msgFileRadialLine)));
auto &bg = selected ? st::msgInBgSelected : st::msgInBg;
auto &bg = selected ? st::historyFileInRadialFgSelected : st::historyFileInRadialFg;
_radial->draw(p, rinner, st::msgFileRadialLine, bg);
}
@@ -879,7 +879,7 @@ void Document::paint(Painter &p, const QRect &clip, TextSelection selection, con
if (radial) {
auto rinner = inner.marginsRemoved(QMargins(st::msgFileRadialLine, st::msgFileRadialLine, st::msgFileRadialLine, st::msgFileRadialLine));
auto &bg = selected ? st::msgInBgSelected : st::msgInBg;
auto &bg = selected ? st::historyFileInRadialFgSelected : st::historyFileInRadialFg;
_radial->draw(p, rinner, st::msgFileRadialLine, bg);
}