-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix badly styled warning/error messages #11470
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add before and after screenshots.
@@ -40,7 +40,8 @@ FolderWizardRemotePath::FolderWizardRemotePath(FolderWizardPrivate *parent) | |||
|
|||
{ | |||
_ui->setupUi(this); | |||
_ui->warnFrame->hide(); | |||
_ui->warningIcon->setPixmap(Resources::getCoreIcon(QStringLiteral("warning")).pixmap(_ui->warningIcon->size())); | |||
_ui->warningFrame->hide(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is show() called?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line 367, see your comment below
_ui->warnFrame->show(); | ||
_ui->warnLabel->setText(msg); | ||
_ui->warningFrame->show(); | ||
_ui->warningLabel->setText(QStringLiteral("<html><body><b>%1</b></body></html>").arg(msg)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Qt rhichtext might be a bit shorter than full html :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Some error messages were styled in a way that is not compatible with dark mode. These have now been replaced by unstyled labels, but the warning icon is shown to the left of the message. Fixes: #11412
3e54fb7
to
d917872
Compare
Tested: #11412 (comment) |
Some error messages were styled in a way that is not compatible with dark mode. These have now been replaced by unstyled labels, but the warning icon is shown to the left of the message.
Fixes: #11412