2
0
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:
Dragoon Aethis
2022-11-08 11:19:17 +01:00
committed by GitHub
parent e675dc1ef1
commit 9d59e42b52
9 changed files with 105 additions and 19 deletions

View File

@@ -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();