Skip to content
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

Merged
merged 1 commit into from
Jan 30, 2024
Merged

Conversation

erikjv
Copy link
Collaborator

@erikjv erikjv commented Jan 12, 2024

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

@erikjv erikjv requested a review from TheOneRing January 12, 2024 16:29
@erikjv erikjv self-assigned this Jan 12, 2024
Copy link
Contributor

@TheOneRing TheOneRing left a 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();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is show() called?

Copy link
Collaborator Author

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));
Copy link
Contributor

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 :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@TheOneRing TheOneRing added this to the Desktop 6.0 milestone Jan 19, 2024
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
@erikjv erikjv force-pushed the work/remove-label-styling branch from 3e54fb7 to d917872 Compare January 19, 2024 16:37
@TheOneRing TheOneRing merged commit 3c0b72f into master Jan 30, 2024
7 checks passed
@delete-merged-branch delete-merged-branch bot deleted the work/remove-label-styling branch January 30, 2024 13:13
@saw-jan
Copy link
Member

saw-jan commented Mar 28, 2024

Tested: #11412 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Another unreadable error message
3 participants