summary refs log tree commit diff
path: root/src/ui
diff options
context:
space:
mode:
authorAdasauce <adasauce@with.parts>2020-02-21 15:16:53 -0400
committerAdasauce <adasauce@with.parts>2020-02-21 15:38:19 -0400
commit6e6fe0cad2f5f927db26febd4b5c8e07e1106c7e (patch)
treed5b2c81496df8b1a4beb1dc3d37037980af8dba4 /src/ui
parentMerge pull request #127 from adasauce/cleanup-dark-qss (diff)
downloadnheko-6e6fe0cad2f5f927db26febd4b5c8e07e1106c7e.tar.xz
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.
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/TextField.cpp17
-rw-r--r--src/ui/TextField.h4
2 files changed, 0 insertions, 21 deletions
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
@@ -103,23 +103,6 @@ TextField::label() const } 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) { label_color_ = color; diff --git a/src/ui/TextField.h b/src/ui/TextField.h
index 100fed31..85d5036d 100644 --- a/src/ui/TextField.h +++ b/src/ui/TextField.h
@@ -15,7 +15,6 @@ class TextField : public QLineEdit { Q_OBJECT - Q_PROPERTY(QColor textColor WRITE setTextColor READ textColor) Q_PROPERTY(QColor inkColor WRITE setInkColor READ inkColor) Q_PROPERTY(QColor labelColor WRITE setLabelColor READ labelColor) Q_PROPERTY(QColor underlineColor WRITE setUnderlineColor READ underlineColor) @@ -30,12 +29,10 @@ public: void setLabelColor(const QColor &color); void setLabelFontSize(qreal size); void setShowLabel(bool value); - void setTextColor(const QColor &color); void setUnderlineColor(const QColor &color); QColor inkColor() const; QColor labelColor() const; - QColor textColor() const; QColor underlineColor() const; QColor backgroundColor() const; QString label() const; @@ -52,7 +49,6 @@ private: QColor ink_color_; QColor background_color_; QColor label_color_; - QColor text_color_; QColor underline_color_; QString label_text_; TextFieldLabel *label_;