2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-10-19 14:26:55 +00:00

Don't force LTR direction on texts.

This commit is contained in:
John Preston
2024-08-22 10:41:47 +02:00
parent 24b0b33f1d
commit c131d6637d
10 changed files with 47 additions and 28 deletions

View File

@@ -438,12 +438,15 @@ void MessageBar::paint(Painter &p) {
if (_title.isEmpty()) {
// "Loading..." state.
p.setPen(st::historyComposeAreaFgService);
_text.drawLeftElided(
p,
body.x(),
body.y() + (body.height() - st::normalFont->height) / 2,
body.width(),
width);
_text.draw(p, {
.position = {
body.x(),
body.y() + (body.height() - st::normalFont->height) / 2,
},
.outerWidth = width,
.availableWidth = body.width(),
.elisionLines = 1,
});
} else {
p.setPen(_st.textFg);
_text.draw(p, {