Updated colors for force muted state in Calls::TopBar.

This commit is contained in:
23rd 2020-12-16 13:06:37 +03:00
parent cae7e9c502
commit d799dfe564

View file

@ -78,18 +78,22 @@ auto LinearBlobs() {
auto Colors() { auto Colors() {
using Vector = std::vector<QColor>; using Vector = std::vector<QColor>;
return base::flat_map<MuteState, Vector>{ using Colors = anim::gradient_colors;
return base::flat_map<MuteState, Colors>{
{ {
MuteState::ForceMuted, MuteState::ForceMuted,
Vector{ st::groupCallForceMuted1->c, st::groupCallForceMuted2->c } Colors(QGradientStops{
{ 0.0, st::groupCallForceMutedBar1->c },
{ .35, st::groupCallForceMutedBar2->c },
{ 1.0, st::groupCallForceMutedBar3->c } })
}, },
{ {
MuteState::Active, MuteState::Active,
Vector{ st::groupCallLive1->c, st::groupCallLive2->c } Colors(Vector{ st::groupCallLive1->c, st::groupCallLive2->c })
}, },
{ {
MuteState::Muted, MuteState::Muted,
Vector{ st::groupCallMuted1->c, st::groupCallMuted2->c } Colors(Vector{ st::groupCallMuted1->c, st::groupCallMuted2->c })
}, },
}; };
} }