2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Change InputField::font to InputField::style in styles.

This commit is contained in:
John Preston
2024-06-06 20:57:09 +04:00
parent 8ad5117495
commit 501cae2200
18 changed files with 32 additions and 46 deletions

View File

@@ -604,7 +604,7 @@ void Generator::paintComposeArea() {
_p->setClipRect(field);
_p->save();
_p->setFont(st::historyComposeField.font);
_p->setFont(st::historyComposeField.style.font);
_p->setPen(st::historyComposeField.placeholderFg[_palette]);
auto placeholderRect = QRect(
@@ -658,7 +658,7 @@ void Generator::paintDialogs() {
_p->save();
_p->setClipRect(filter);
auto phRect = QRect(filter.x() + st::dialogsFilter.textMargins.left() + st::dialogsFilter.placeholderMargins.left(), filter.y() + st::dialogsFilter.textMargins.top() + st::dialogsFilter.placeholderMargins.top(), filter.width() - st::dialogsFilter.textMargins.left() - st::dialogsFilter.textMargins.right(), filter.height() - st::dialogsFilter.textMargins.top() - st::dialogsFilter.textMargins.bottom());
_p->setFont(st::dialogsFilter.font);
_p->setFont(st::dialogsFilter.style.font);
_p->setPen(st::dialogsFilter.placeholderFg[_palette]);
_p->drawText(phRect, tr::lng_dlg_filter(tr::now), QTextOption(st::dialogsFilter.placeholderAlign));
_p->restore();