mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 07:37:11 +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());
|
||||
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();
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue