Skip to content

Comments

Fix badly styled warning/error messages#11470

Merged
TheOneRing merged 1 commit intomasterfrom
work/remove-label-styling
Jan 30, 2024
Merged

Fix badly styled warning/error messages#11470
TheOneRing merged 1 commit intomasterfrom
work/remove-label-styling

Conversation

@erikjv
Copy link
Contributor

@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.

_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
Contributor 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
Contributor 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
@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