2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 14:08:41 +00:00

Use regular good-green color in unmute.

This commit is contained in:
John Preston
2024-03-12 18:31:48 +04:00
parent cf6d13acc2
commit c6f49486ee

View File

@@ -111,6 +111,7 @@ MuteItem::MuteItem(
isMuted ? 1. : 0.,
st::defaultPopupMenu.showDuration);
}, lifetime());
_animation.stop();
setClickedCallback([=] {
descriptor.updateMutePeriod(_isMuted ? 0 : kMuteForeverValue);
@@ -123,7 +124,7 @@ void MuteItem::paintEvent(QPaintEvent *e) {
const auto progress = _animation.value(_isMuted ? 1. : 0.);
const auto color = anim::color(
st::menuIconAttentionColor,
st::settingsIconBg2,
st::boxTextFgGood,
progress);
p.setPen(color);