changeset 107:49c8d1976869

themes/dark: make QMenuBar and QMenu look better this is what Sublime Text does, and I prefer it to having that ugly blue color
author Paper <mrpapersonic@gmail.com>
date Sun, 05 Nov 2023 17:44:49 -0500
parents c8c72278f6fd
children 2004b41d4a59
files rc/dark.qss
diffstat 1 files changed, 29 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/rc/dark.qss	Sun Nov 05 04:01:58 2023 -0500
+++ b/rc/dark.qss	Sun Nov 05 17:44:49 2023 -0500
@@ -32,9 +32,8 @@
 	??? == gray == #808080;
 	base == black == #191919;
 	highlighted == blue = #2A82DA;
-
-   It's a shame Qt stylesheets don't properly support variables :')
-   Maybe we could configure it with cmake?
+   We could include a preprocessor like sass to make these constants,
+   but that's really lame :(
 */
 
 AnimeListPage::pane {
@@ -88,8 +87,8 @@
 	min-width: 50px;
 	padding-top: 0.23em;
 	padding-bottom: 0.23em;
-	padding-left: 0.46em;
-	padding-right: 0.46em;
+	padding-left: 0.78em;
+	padding-right: 0.78em;
 	border-radius: 0.09em;
 	border-bottom-left-radius: 0em;
 	border-bottom-right-radius: 0em;
@@ -126,9 +125,6 @@
 
 QTabBar::tab:top:!selected:first:hover {
 	background-color: rgba(42, 130, 218, 0.1);
-	border-radius: 0.09em;
-	border-bottom-left-radius: 0em;
-	border-bottom-right-radius: 0em;
 }
 
 QGroupBox::title {
@@ -143,10 +139,31 @@
 	color: white;
 }
 
+QComboBox,
+QDateEdit,
+QSpinBox {
+	border: 0.04em solid #808080;
+}
+
+QComboBox:disabled,
+QPushButton:disabled,
+QDateEdit:disabled,
+QSpinBox:disabled {
+	color: #808080;
+}
+
+QPushButton:hover {
+	background-color: rgba(57, 66, 75, 1.0);
+}
+
 /*
  * QLineEdit
  */
 
+QLineEdit {
+	background: transparent;
+}
+
 QLineEdit:!read-only {
 	background-color: #191919;
 	padding: 0.23em;
@@ -155,10 +172,6 @@
 	border-radius: 0.09em;
 }
 
-Line {
-	background: transparent;
-}
-
 /* QMenuBar */
 
 QMenuBar {
@@ -166,13 +179,8 @@
 	color: white;
 }
 
-QMenuBar::item {
-	background: transparent;
-}
-
 QMenuBar::item:selected {
-	background: transparent;
-	border: 0.04em solid #2A82DA;
+	background-color: #414141;
 }
 
 QMenuBar::item:disabled {
@@ -180,8 +188,7 @@
 }
 
 QMenuBar::item:pressed {
-	background-color: #2A82DA;
-	color: white;
+	background-color: #414141;
 	margin-bottom: -0.09em;
 	padding-bottom: 0.09em;
 }
@@ -191,7 +198,7 @@
 QMenu {
 	color: white;
 	background-color: #353535;
-	margin: 0.09em;
+	margin: 0.18em;
 }
 
 QMenu::icon {
@@ -207,7 +214,7 @@
 
 QMenu::item:selected {
 	color: white;
-	background-color: #2A82DA;
+	background-color: #414141;
 }
 
 QMenu::item:selected:disabled {