mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 21:18:48 +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
|
TextField::underlineColor() const
|
||||||
{
|
{
|
||||||
if (!underline_color_.isValid()) {
|
if (!underline_color_.isValid()) {
|
||||||
if (TextField::isValid() || !isModified())
|
if ((hasAcceptableInput() && isValid()) || !isModified())
|
||||||
return QPalette().color(QPalette::Highlight);
|
return QPalette().color(QPalette::Highlight);
|
||||||
else
|
else
|
||||||
return Qt::red;
|
return Qt::red;
|
||||||
|
|
Loading…
Reference in a new issue