Improve Login and Register page hinting

This commit is contained in:
Nicolas Werner 2020-05-09 13:06:47 +02:00
parent 197f702dd0
commit 813790e603
3 changed files with 28 additions and 2 deletions

View file

@ -147,7 +147,10 @@ QColor
TextField::underlineColor() const
{
if (!underline_color_.isValid()) {
return QPalette().color(QPalette::Highlight);
if (hasAcceptableInput() || !isModified())
return QPalette().color(QPalette::Highlight);
else
return Qt::red;
}
return underline_color_;