Bug #124
Notices use the Color of Qt Error messages
Start date:
Due date:
% Done:
0%
Estimated time:
Version:
0.13.1
OS:
Any
Description
Setting the color for Notices has no effect on them (maybe on something different? ;)). But instead Notices are displayed in the color of Error Messages.
Associated revisions
History
#1 Updated by phon almost 17 years ago
The color is saved to QtUiStyle as FormatType NoticeMsg - so probably there is an error with the rendering/displaying.
saveColor(UiStyle::NoticeMsg, ui.noticeMessageFG->color());
void ColorSettingsPage::saveColor(UiStyle::FormatType formatType, const QColor &color) {
QTextCharFormat format = QtUi::style()->format(formatType);
format.setForeground(QBrush(color));
QtUi::style()->setFormat(formatType, format, Settings::Custom);
}
Display notices correctly. Fixes BR #124.