mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Use regular good-green color in unmute.
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user