mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Add an experimental "small message radius" toggle (#25305)
Add an experimental "small message radius" toggle. This toggle allows switching to the pre-4.3.0, smaller message bubble radius after an app restart. The message bubble radius styles now have to be referenced via the Ui::BubbleRadius* and Ui::MsgFileThumbRadius* wrappers to use the appropriate value.
This commit is contained in:
@@ -786,8 +786,8 @@ void Generator::paintBubble(const Bubble &bubble) {
|
||||
auto bubbleTop = y;
|
||||
auto bubbleHeight = height;
|
||||
if (isPhoto) {
|
||||
bubbleTop -= st::bubbleRadiusLarge + 1;
|
||||
bubbleHeight += st::bubbleRadiusLarge + 1;
|
||||
bubbleTop -= Ui::BubbleRadiusLarge() + 1;
|
||||
bubbleHeight += Ui::BubbleRadiusLarge() + 1;
|
||||
}
|
||||
|
||||
auto left = bubble.outbg ? st::msgMargin.right() : st::msgMargin.left();
|
||||
|
Reference in New Issue
Block a user