summary refs log tree commit diff
path: root/src/ui/TextField.cpp
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2020-05-14 20:53:01 -0400
committerJoseph Donofry <joedonofry@gmail.com>2020-05-14 20:53:01 -0400
commit6d2789f4d5ffcd4e3e6ad8dfaae6925b0bf7d6ae (patch)
tree2ce43f344f002d2747f5f68b9d87b81873ed87ce /src/ui/TextField.cpp
parentUpdate emoji picker and translations (diff)
parentMerge branch 'master' of ssh://github.com/Nheko-Reborn/nheko (diff)
downloadnheko-6d2789f4d5ffcd4e3e6ad8dfaae6925b0bf7d6ae.tar.xz
Merge master into reactions
Diffstat (limited to 'src/ui/TextField.cpp')
-rw-r--r--src/ui/TextField.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/TextField.cpp b/src/ui/TextField.cpp

index 4bb7596a..27584693 100644 --- a/src/ui/TextField.cpp +++ b/src/ui/TextField.cpp
@@ -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_;