From 300917b81ef54222d2a9e8270f2a465d5a0c0c3c Mon Sep 17 00:00:00 2001 From: davidlatwe Date: Mon, 17 Feb 2020 15:34:09 +0800 Subject: [PATCH 1/4] Remove duplicated definition --- avalon/style/style.qss | 8 -------- 1 file changed, 8 deletions(-) diff --git a/avalon/style/style.qss b/avalon/style/style.qss index 4c1a851d9..3eb4ba8b3 100644 --- a/avalon/style/style.qss +++ b/avalon/style/style.qss @@ -505,14 +505,6 @@ QPlainTextEdit border: 1px solid #3A3939; } -QHeaderView::section -{ - background-color: #3A3939; - color: silver; - padding-left: 4px; - border: 1px solid #6c6c6c; -} - QSizeGrip { image: url(:/qss_icons/rc/sizegrip.png); width: 12px; From 55c6a7ea6fc4b4c069a7146f2b619d5ed19b18be Mon Sep 17 00:00:00 2001 From: davidlatwe Date: Mon, 17 Feb 2020 15:35:28 +0800 Subject: [PATCH 2/4] Enable customizing QHeaderView::section color in Apps --- avalon/style/style.qss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avalon/style/style.qss b/avalon/style/style.qss index 3eb4ba8b3..003ab6327 100644 --- a/avalon/style/style.qss +++ b/avalon/style/style.qss @@ -1103,7 +1103,7 @@ QHeaderView QHeaderView::section { background-color: #3A3939; - color: silver; + /*color: silver;*/ padding: 4px; border: 1px solid #6c6c6c; border-radius: 0px; From 2afe7ae1a8bc6111262c2b87b3ca89e773aa25a4 Mon Sep 17 00:00:00 2001 From: davidlatwe Date: Mon, 17 Feb 2020 15:35:54 +0800 Subject: [PATCH 3/4] Change selection highlight color --- avalon/style/style.qss | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/avalon/style/style.qss b/avalon/style/style.qss index 003ab6327..61f8a393a 100644 --- a/avalon/style/style.qss +++ b/avalon/style/style.qss @@ -4,6 +4,11 @@ font-family: "Open Sans"; } +/* +@ Selection highlight: #40576D +*/ + + QProgressBar:horizontal { border: 1px solid #3A3939; text-align: center; @@ -27,7 +32,7 @@ QWidget { color: silver; background-color: #302F2F; - selection-background-color:#3d8ec9; + selection-background-color: #40576D; selection-color: black; background-clip: border; border-image: none; @@ -43,7 +48,7 @@ QWidget:item:hover QWidget:item:selected { - background-color: #3d8ec9; + background-color: #40576D; } QCheckBox @@ -218,7 +223,7 @@ QMenuBar::item:selected QMenuBar::item:pressed { border: 1px solid #3A3939; - background-color: #3d8ec9; + background-color: #40576D; color: black; margin-bottom:-1px; padding-bottom:1px; @@ -609,13 +614,13 @@ QPushButton:disabled } QPushButton:focus { - background-color: #3d8ec9; + background-color: #40576D; color: white; } QComboBox { - selection-background-color: #3d8ec9; + selection-background-color: #40576D; background-color: #201F1F; border-style: solid; border: 1px solid #3A3939; @@ -648,7 +653,7 @@ QComboBox QAbstractItemView background-color: #201F1F; border-radius: 2px; border: 1px solid #444; - selection-background-color: #3d8ec9; + selection-background-color: #40576D; } QComboBox::drop-down @@ -958,7 +963,7 @@ QListView::item:!selected:hover, QListView::item:!selected:hover, QTreeView::ite } QListView::item:selected:hover, QListView::item:selected:hover, QTreeView::item:selected:hover { - background: #3d8ec9; + background: #40576D; color: #FFFFFF; } @@ -1088,7 +1093,7 @@ QTableView::item:pressed, QListView::item:pressed, QTreeView::item:pressed { } QTableView::item:selected:active, QTreeView::item:selected:active, QListView::item:selected:active { - background: #3d8ec9; + background: #40576D; color: #FFFFFF; } @@ -1170,7 +1175,7 @@ QToolBox::tab { QToolBox::tab:selected { /* italicize selected tabs */ font: italic; background-color: #302F2F; - border-color: #3d8ec9; + border-color: #40576D; } QStatusBar::item { From 395321881c320eea2919503b8f8e12eb97335d99 Mon Sep 17 00:00:00 2001 From: davidlatwe Date: Fri, 21 Feb 2020 11:21:18 +0800 Subject: [PATCH 4/4] Dimming alternative row color --- avalon/style/style.qss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/avalon/style/style.qss b/avalon/style/style.qss index 61f8a393a..40b5e5f97 100644 --- a/avalon/style/style.qss +++ b/avalon/style/style.qss @@ -314,9 +314,9 @@ QWidget:disabled QAbstractItemView { - alternate-background-color: #3A3939; + alternate-background-color: #2D2C2C; color: silver; - border: 1px solid 3A3939; + border: 1px solid #2D2C2C; border-radius: 2px; padding: 1px; }