2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Fix text color for crash report window.

This commit is contained in:
John Preston
2021-05-04 21:40:20 +04:00
parent 383acf0ffc
commit 2d8f43bd8c

View File

@@ -80,6 +80,7 @@ PreLaunchLabel::PreLaunchLabel(QWidget *parent) : QLabel(parent) {
QPalette p(palette());
p.setColor(QPalette::WindowText, QColor(0, 0, 0));
p.setColor(QPalette::Text, QColor(0, 0, 0));
setPalette(p);
show();
};
@@ -98,6 +99,7 @@ PreLaunchInput::PreLaunchInput(QWidget *parent, bool password) : QLineEdit(paren
QPalette p(palette());
p.setColor(QPalette::WindowText, QColor(0, 0, 0));
p.setColor(QPalette::Text, QColor(0, 0, 0));
setPalette(p);
QLineEdit::setTextMargins(0, 0, 0, 0);
@@ -116,6 +118,7 @@ PreLaunchLog::PreLaunchLog(QWidget *parent) : QTextEdit(parent) {
QPalette p(palette());
p.setColor(QPalette::WindowText, QColor(96, 96, 96));
p.setColor(QPalette::Text, QColor(96, 96, 96));
setPalette(p);
setReadOnly(true);
@@ -155,6 +158,11 @@ PreLaunchCheckbox::PreLaunchCheckbox(QWidget *parent) : QCheckBox(parent) {
closeFont.setPixelSize(static_cast<PreLaunchWindow*>(parent)->basicSize());
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);
show();
};