Improve Login and Register page hinting
This commit is contained in:
parent
197f702dd0
commit
813790e603
3 changed files with 28 additions and 2 deletions
|
|
@ -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_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue