mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Simplified foreground color of badges in profile top bar.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user