mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Updated colors for force muted state in Calls::TopBar.
This commit is contained in:
parent
cae7e9c502
commit
d799dfe564
1 changed files with 8 additions and 4 deletions
|
@ -78,18 +78,22 @@ auto LinearBlobs() {
|
|||
|
||||
auto Colors() {
|
||||
using Vector = std::vector<QColor>;
|
||||
return base::flat_map<MuteState, Vector>{
|
||||
using Colors = anim::gradient_colors;
|
||||
return base::flat_map<MuteState, Colors>{
|
||||
{
|
||||
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,
|
||||
Vector{ st::groupCallLive1->c, st::groupCallLive2->c }
|
||||
Colors(Vector{ st::groupCallLive1->c, st::groupCallLive2->c })
|
||||
},
|
||||
{
|
||||
MuteState::Muted,
|
||||
Vector{ st::groupCallMuted1->c, st::groupCallMuted2->c }
|
||||
Colors(Vector{ st::groupCallMuted1->c, st::groupCallMuted2->c })
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue