mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix RTL text in bot attach webview main button.
This commit is contained in:
parent
f258b054e8
commit
d4cdd67128
1 changed files with 1 additions and 1 deletions
|
@ -303,7 +303,7 @@ void Panel::Button::paintEvent(QPaintEvent *e) {
|
||||||
const auto textTop = _st.padding.top() + _st.textTop;
|
const auto textTop = _st.padding.top() + _st.textTop;
|
||||||
const auto textLeft = padding + (space - textWidth) / 2;
|
const auto textLeft = padding + (space - textWidth) / 2;
|
||||||
p.setPen(_fg);
|
p.setPen(_fg);
|
||||||
_text.drawLeftElided(p, textLeft, textTop, space, width());
|
_text.drawLeftElided(p, textLeft, textTop, textWidth, width());
|
||||||
}
|
}
|
||||||
|
|
||||||
QImage Panel::Button::prepareRippleMask() const {
|
QImage Panel::Button::prepareRippleMask() const {
|
||||||
|
|
Loading…
Add table
Reference in a new issue