mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 15:05:56 +00:00
Fix text color for crash report window.
This commit is contained in:
@@ -80,6 +80,7 @@ PreLaunchLabel::PreLaunchLabel(QWidget *parent) : QLabel(parent) {
|
|||||||
|
|
||||||
QPalette p(palette());
|
QPalette p(palette());
|
||||||
p.setColor(QPalette::WindowText, QColor(0, 0, 0));
|
p.setColor(QPalette::WindowText, QColor(0, 0, 0));
|
||||||
|
p.setColor(QPalette::Text, QColor(0, 0, 0));
|
||||||
setPalette(p);
|
setPalette(p);
|
||||||
show();
|
show();
|
||||||
};
|
};
|
||||||
@@ -98,6 +99,7 @@ PreLaunchInput::PreLaunchInput(QWidget *parent, bool password) : QLineEdit(paren
|
|||||||
|
|
||||||
QPalette p(palette());
|
QPalette p(palette());
|
||||||
p.setColor(QPalette::WindowText, QColor(0, 0, 0));
|
p.setColor(QPalette::WindowText, QColor(0, 0, 0));
|
||||||
|
p.setColor(QPalette::Text, QColor(0, 0, 0));
|
||||||
setPalette(p);
|
setPalette(p);
|
||||||
|
|
||||||
QLineEdit::setTextMargins(0, 0, 0, 0);
|
QLineEdit::setTextMargins(0, 0, 0, 0);
|
||||||
@@ -116,6 +118,7 @@ PreLaunchLog::PreLaunchLog(QWidget *parent) : QTextEdit(parent) {
|
|||||||
|
|
||||||
QPalette p(palette());
|
QPalette p(palette());
|
||||||
p.setColor(QPalette::WindowText, QColor(96, 96, 96));
|
p.setColor(QPalette::WindowText, QColor(96, 96, 96));
|
||||||
|
p.setColor(QPalette::Text, QColor(96, 96, 96));
|
||||||
setPalette(p);
|
setPalette(p);
|
||||||
|
|
||||||
setReadOnly(true);
|
setReadOnly(true);
|
||||||
@@ -155,6 +158,11 @@ PreLaunchCheckbox::PreLaunchCheckbox(QWidget *parent) : QCheckBox(parent) {
|
|||||||
closeFont.setPixelSize(static_cast<PreLaunchWindow*>(parent)->basicSize());
|
closeFont.setPixelSize(static_cast<PreLaunchWindow*>(parent)->basicSize());
|
||||||
setFont(closeFont);
|
setFont(closeFont);
|
||||||
|
|
||||||
|
QPalette p(palette());
|
||||||
|
p.setColor(QPalette::WindowText, QColor(96, 96, 96));
|
||||||
|
p.setColor(QPalette::Text, QColor(96, 96, 96));
|
||||||
|
setPalette(p);
|
||||||
|
|
||||||
setCursor(Qt::PointingHandCursor);
|
setCursor(Qt::PointingHandCursor);
|
||||||
show();
|
show();
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user