mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-25 04:38:23 +00:00
Fix scaling in crash reporter
This commit is contained in:
parent
4e210e40a2
commit
17de6c1ff3
@ -42,7 +42,9 @@ PreLaunchWindow::PreLaunchWindow(QString title) {
|
|||||||
p.setColor(QPalette::Background, QColor(255, 255, 255));
|
p.setColor(QPalette::Background, QColor(255, 255, 255));
|
||||||
setPalette(p);
|
setPalette(p);
|
||||||
|
|
||||||
_size = QFontInfo(QApplication::font()).pixelSize();
|
QLabel tmp(this);
|
||||||
|
tmp.setText(qsl("Tmp"));
|
||||||
|
_size = tmp.sizeHint().height();
|
||||||
|
|
||||||
int paddingVertical = (_size / 2);
|
int paddingVertical = (_size / 2);
|
||||||
int paddingHorizontal = _size;
|
int paddingHorizontal = _size;
|
||||||
|
Loading…
Reference in New Issue
Block a user