mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Use regular good-green color in unmute.
This commit is contained in:
parent
cf6d13acc2
commit
c6f49486ee
1 changed files with 2 additions and 1 deletions
|
@ -111,6 +111,7 @@ MuteItem::MuteItem(
|
||||||
isMuted ? 1. : 0.,
|
isMuted ? 1. : 0.,
|
||||||
st::defaultPopupMenu.showDuration);
|
st::defaultPopupMenu.showDuration);
|
||||||
}, lifetime());
|
}, lifetime());
|
||||||
|
_animation.stop();
|
||||||
|
|
||||||
setClickedCallback([=] {
|
setClickedCallback([=] {
|
||||||
descriptor.updateMutePeriod(_isMuted ? 0 : kMuteForeverValue);
|
descriptor.updateMutePeriod(_isMuted ? 0 : kMuteForeverValue);
|
||||||
|
@ -123,7 +124,7 @@ void MuteItem::paintEvent(QPaintEvent *e) {
|
||||||
const auto progress = _animation.value(_isMuted ? 1. : 0.);
|
const auto progress = _animation.value(_isMuted ? 1. : 0.);
|
||||||
const auto color = anim::color(
|
const auto color = anim::color(
|
||||||
st::menuIconAttentionColor,
|
st::menuIconAttentionColor,
|
||||||
st::settingsIconBg2,
|
st::boxTextFgGood,
|
||||||
progress);
|
progress);
|
||||||
p.setPen(color);
|
p.setPen(color);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue