2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Adjust main menu accounts to the mockup.

This commit is contained in:
John Preston
2022-02-10 12:56:57 +03:00
parent 7c5d27d7ce
commit bce19c7151
14 changed files with 263 additions and 237 deletions

View File

@@ -57,7 +57,10 @@ Icon::Icon(IconDescriptor descriptor) : _icon(descriptor.icon) {
return descriptor.background;
}();
if (background) {
_background.emplace(st::settingsIconRadius, *background);
const auto radius = (descriptor.type == IconType::Rounded)
? st::settingsIconRadius
: (std::min(_icon->width(), _icon->height()) / 2);
_background.emplace(radius, *background);
}
}