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.
This commit is contained in:
Adasauce 2020-02-21 15:16:53 -04:00
parent fa829bebd0
commit 6e6fe0cad2
No known key found for this signature in database
GPG key ID: B4FD3151235211CB
8 changed files with 28 additions and 28 deletions

View file

@ -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)
{