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

Show correct incoming quiz votes in green.

This commit is contained in:
John Preston
2020-01-24 10:27:08 +03:00
parent b74adc5311
commit 3c022b893a

View File

@@ -961,6 +961,8 @@ void Poll::paintFilling(
if (chosen && !correct) {
p.setBrush(st::boxTextFgError);
} else if (chosen && correct && _poll->quiz() && !outbg) {
p.setBrush(st::boxTextFgGood);
} else {
const auto bar = outbg ? (selected ? st::msgWaveformOutActiveSelected : st::msgWaveformOutActive) : (selected ? st::msgWaveformInActiveSelected : st::msgWaveformInActive);
p.setBrush(bar);