mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
Update src/ui/TextField.cpp
This commit is contained in:
parent
4e8a2d8c9e
commit
ebe0cd79d7
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ QColor
|
|||
TextField::underlineColor() const
|
||||
{
|
||||
if (!underline_color_.isValid()) {
|
||||
if (TextField::isValid() || !isModified())
|
||||
if ((hasAcceptableInput() && isValid()) || !isModified())
|
||||
return QPalette().color(QPalette::Highlight);
|
||||
else
|
||||
return Qt::red;
|
||||
|
|
Loading…
Reference in a new issue