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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user