mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix text color for crash report window.
This commit is contained in:
parent
383acf0ffc
commit
2d8f43bd8c
1 changed files with 8 additions and 0 deletions
|
@ -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();
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue