Fix voice chat lottie animation on Retina screens.

This commit is contained in:
John Preston 2021-03-13 20:05:17 +04:00
parent f25b2a2094
commit d9771d0f88
3 changed files with 7 additions and 4 deletions

View File

@ -688,7 +688,7 @@ groupCallMemberRaisedHand: icon {{ "calls/group_calls_raised_hand", groupCallMem
groupCallSettings: CallButton(callMicrophoneMute) { groupCallSettings: CallButton(callMicrophoneMute) {
button: IconButton(callButton) { button: IconButton(callButton) {
iconPosition: point(-1px, 22px); iconPosition: point(-1px, 22px);
icon: icon {{ "calls/call_settings", callIconFg }}; icon: icon {{ "calls/call_settings", groupCallIconFg }};
ripple: RippleAnimation(defaultRippleAnimation) { ripple: RippleAnimation(defaultRippleAnimation) {
color: callMuteRipple; color: callMuteRipple;
} }
@ -696,7 +696,7 @@ groupCallSettings: CallButton(callMicrophoneMute) {
} }
groupCallHangup: CallButton(callHangup) { groupCallHangup: CallButton(callHangup) {
button: IconButton(callButton) { button: IconButton(callButton) {
icon: icon {{ "calls/call_discard", callIconFg }}; icon: icon {{ "calls/call_discard", groupCallIconFg }};
ripple: RippleAnimation(defaultRippleAnimation) { ripple: RippleAnimation(defaultRippleAnimation) {
color: groupCallLeaveBgRipple; color: groupCallLeaveBgRipple;
} }

View File

@ -22,6 +22,7 @@ constexpr auto kEnoughLightnessForContrast = 64;
const auto kColorizeIgnoredKeys = base::flat_set<QLatin1String>{ { const auto kColorizeIgnoredKeys = base::flat_set<QLatin1String>{ {
qstr("boxTextFgGood"), qstr("boxTextFgGood"),
qstr("boxTextFgError"), qstr("boxTextFgError"),
qstr("callIconFg"),
qstr("historyPeer1NameFg"), qstr("historyPeer1NameFg"),
qstr("historyPeer1NameFgSelected"), qstr("historyPeer1NameFgSelected"),
qstr("historyPeer1UserpicBg"), qstr("historyPeer1UserpicBg"),
@ -143,7 +144,9 @@ Colorizer ColorizerFrom(const EmbeddedScheme &scheme, const QColor &color) {
{ qstr("activeButtonFg"), Pair{ cColor("2da192"), cColor("282e33") } }, // activeButtonBg, windowBg { qstr("activeButtonFg"), Pair{ cColor("2da192"), cColor("282e33") } }, // activeButtonBg, windowBg
{ qstr("profileVerifiedCheckFg"), Pair{ cColor("3fc1b0"), cColor("282e33") } }, // profileVerifiedCheckBg, windowBg { qstr("profileVerifiedCheckFg"), Pair{ cColor("3fc1b0"), cColor("282e33") } }, // profileVerifiedCheckBg, windowBg
{ qstr("overviewCheckFgActive"), Pair{ cColor("3fc1b0"), cColor("282e33") } }, // overviewCheckBgActive { qstr("overviewCheckFgActive"), Pair{ cColor("3fc1b0"), cColor("282e33") } }, // overviewCheckBgActive
{ qstr("callIconFg"), Pair{ cColor("5ad1c1"), cColor("1b1f23") } }, // callAnswerBg, callBgOpaque // callIconFg is used not only over callAnswerBg,
// so this contrast-forcing breaks other buttons.
//{ qstr("callIconFg"), Pair{ cColor("5ad1c1"), cColor("1b1f23") } }, // callAnswerBg, callBgOpaque
} }; } };
result.lightnessMin = 64; result.lightnessMin = 64;
break; break;

@ -1 +1 @@
Subproject commit d1b9d1dc9fa3c8f6ef0c93dfb8406f242fdc4950 Subproject commit 475d43337a3b397e2c9f6e975929ae15695aa346