2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Replaced icon color for songs with bright one.

This commit is contained in:
23rd
2021-01-24 09:40:26 +03:00
parent d4bbbdb65c
commit 9b9531d279
7 changed files with 81 additions and 14 deletions

View File

@@ -734,13 +734,15 @@ void Voice::paint(Painter &p, const QRect &clip, TextSelection selection, const
const auto icon = [&] {
if (_data->loading() || _data->uploading()) {
return &(selected ? _st.songCancelSelected : _st.songCancel);
return &(selected ? _st.voiceCancelSelected : _st.voiceCancel);
} else if (showPause) {
return &(selected ? _st.songPauseSelected : _st.songPause);
return &(selected ? _st.voicePauseSelected : _st.voicePause);
} else if (_dataMedia->canBePlayed()) {
return &(selected ? _st.songPlaySelected : _st.songPlay);
return &(selected ? _st.voicePlaySelected : _st.voicePlay);
}
return &(selected ? _st.songDownloadSelected : _st.songDownload);
return &(selected
? _st.voiceDownloadSelected
: _st.voiceDownload);
}();
icon->paintInCenter(p, inner);
}