Simplified foreground color of badges in profile top bar.

This commit is contained in:
23rd
2025-10-30 20:28:22 +03:00
parent ace42226b6
commit eb295cb19c
@@ -503,15 +503,8 @@ void TopBar::updateCollectibleStatus() {
const auto copySt = [&](const style::InfoPeerBadge &st) {
auto result = std::make_unique<style::InfoPeerBadge>(
base::duplicate(st));
auto fg = std::make_shared<style::owned_color>(
Ui::BlendColors(
colorProfile->palette.back(),
colorProfile->palette.size() == 1 ? Qt::white : Qt::black,
0.2));
result->premiumFg = fg->color();
return std::shared_ptr<style::InfoPeerBadge>(
result.release(),
[fg](style::InfoPeerBadge *ptr) { delete ptr; });
result->premiumFg = st::groupCallVideoSubTextFg;
return std::shared_ptr<style::InfoPeerBadge>(result.release());
};
_botVerifySt = copySt(st::infoColoredBotVerifyBadge);
_badgeSt = copySt(st::infoColoredPeerBadge);