From 6e6fe0cad2f5f927db26febd4b5c8e07e1106c7e Mon Sep 17 00:00:00 2001 From: Adasauce Date: Fri, 21 Feb 2020 15:16:53 -0400 Subject: remove setStyleSheet calls directly from widget code removed from: - emoji panel scrollbars - emoji category labels - splitter image handles - textfield setTextColor impl small change to the category separator label for better contrast / readability in dark mode. removed setTextColor completely from TextField. Doesn't appear to be in use anywhere, and focus going more toward qss themeing from qproperty setting. --- src/ui/TextField.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/ui/TextField.cpp') diff --git a/src/ui/TextField.cpp b/src/ui/TextField.cpp index 6c1552a8..4bb7596a 100644 --- a/src/ui/TextField.cpp +++ b/src/ui/TextField.cpp @@ -102,23 +102,6 @@ TextField::label() const return label_text_; } -void -TextField::setTextColor(const QColor &color) -{ - text_color_ = color; - setStyleSheet(QString("QLineEdit { color: %1; }").arg(color.name())); -} - -QColor -TextField::textColor() const -{ - if (!text_color_.isValid()) { - return QPalette().color(QPalette::Text); - } - - return text_color_; -} - void TextField::setLabelColor(const QColor &color) { -- cgit 1.5.1