summary refs log tree commit diff
path: root/resources
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 /resources
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 'resources')
-rw-r--r--resources/styles/nheko-dark.qss11
-rw-r--r--resources/styles/nheko.qss8
-rw-r--r--resources/styles/system.qss10
3 files changed, 28 insertions, 1 deletions
diff --git a/resources/styles/nheko-dark.qss b/resources/styles/nheko-dark.qss
index 8597eccb..33e8e150 100644
--- a/resources/styles/nheko-dark.qss
+++ b/resources/styles/nheko-dark.qss
@@ -52,11 +52,18 @@ dialogs--JoinRoom > QLineEdit {
     color: #caccd1;
 }
 
+emoji--Panel QWidget { border: none; }
+emoji--Panel QScrollBar:vertical { width: 0px; margin: 0px; }
+emoji--Panel QScrollBar::handle:vertical { min-height: 30px; }
+
 emoji--Category,
 emoji--Category > * {
     background-color: #2d3139;
-    color: #caccd1;
+    color: #727274;
+}
 
+emoji--Category QLabel {
+    margin: 20px 0 20px 8px;
 }
 
 TimelineItem {
@@ -237,3 +244,5 @@ SnackBar {
     qproperty-textColor: #caccd1;
     qproperty-bgColor: #202228;
 }
+
+QSplitter::handle { image: none; }
diff --git a/resources/styles/nheko.qss b/resources/styles/nheko.qss
index ffaba4e1..eeb90323 100644
--- a/resources/styles/nheko.qss
+++ b/resources/styles/nheko.qss
@@ -187,6 +187,10 @@ emoji--Panel > * {
     color: #333;
 }
 
+emoji--Panel QWidget { border: none; }
+emoji--Panel QScrollBar:vertical { width: 0px; margin: 0px; }
+emoji--Panel QScrollBar::handle:vertical { min-height: 30px; }
+
 emoji--Category {
     qproperty-hoverBackgroundColor: rgba(200, 200, 200, 70);
 }
@@ -197,6 +201,8 @@ emoji--Category > * {
     color: #ccc;
 }
 
+emoji--Category QLabel { margin: 20px 0 20px 8px; }
+
 FloatingButton {
     qproperty-backgroundColor: #efefef;
     qproperty-foregroundColor: black;
@@ -239,3 +245,5 @@ SnackBar {
     qproperty-textColor: white;
     qproperty-bgColor: #495057;
 }
+
+QSplitter::handle { image: none; }
diff --git a/resources/styles/system.qss b/resources/styles/system.qss
index 2d4b2d8c..db8f4b4e 100644
--- a/resources/styles/system.qss
+++ b/resources/styles/system.qss
@@ -138,6 +138,10 @@ emoji--Panel > * {
     color: palette(text);
 }
 
+emoji--Panel QWidget { border: none; }
+emoji--Panel QScrollBar:vertical { width: 0px; margin: 0px; }
+emoji--Panel QScrollBar::handle:vertical { min-height: 30px; }
+
 emoji--Category {
     qproperty-hoverBackgroundColor: palette(highlight);
 }
@@ -148,6 +152,10 @@ emoji--Category > * {
     color: palette(text);
 }
 
+emoji--Category QLabel {
+    margin: 20px 0 20px 8px;
+}
+
 FloatingButton {
     qproperty-backgroundColor: palette(base);
     qproperty-foregroundColor: palette(text);
@@ -164,3 +172,5 @@ Toggle {
     qproperty-inactiveColor: palette(mid);
     qproperty-trackColor: palette(base);
 }
+
+QSplitter::handle { image: none; }