mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix music player with RTL song names.
This commit is contained in:
parent
d756ecc609
commit
73e2cc96d1
1 changed files with 2 additions and 2 deletions
|
@ -859,7 +859,7 @@ void Widget::updateLabelsGeometry() {
|
||||||
const auto widthForName = width()
|
const auto widthForName = width()
|
||||||
- left
|
- left
|
||||||
- getNameRight();
|
- getNameRight();
|
||||||
_nameLabel->resizeToWidth(widthForName);
|
_nameLabel->resizeToNaturalWidth(widthForName);
|
||||||
_nameLabel->moveToLeft(left, st::mediaPlayerNameTop - st::mediaPlayerName.style.font->ascent);
|
_nameLabel->moveToLeft(left, st::mediaPlayerNameTop - st::mediaPlayerName.style.font->ascent);
|
||||||
|
|
||||||
const auto right = getTimeRight();
|
const auto right = getTimeRight();
|
||||||
|
@ -1056,8 +1056,8 @@ void Widget::handleSongChange() {
|
||||||
.textWithEntities(true);
|
.textWithEntities(true);
|
||||||
}
|
}
|
||||||
_nameLabel->setMarkedText(textWithEntities);
|
_nameLabel->setMarkedText(textWithEntities);
|
||||||
|
|
||||||
handlePlaylistUpdate();
|
handlePlaylistUpdate();
|
||||||
|
updateLabelsGeometry();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Widget::handlePlaylistUpdate() {
|
void Widget::handlePlaylistUpdate() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue