From e06b18657fe563563faf691f8fa590ac867f0a8a Mon Sep 17 00:00:00 2001 From: Alexhuszagh Date: Mon, 17 Oct 2016 18:03:19 -0500 Subject: [PATCH] QAbstractItemView padding --- dark.qss | 19 +++++++++++++++---- light.qss | 17 ++++++++++++++--- 2 files changed, 29 insertions(+), 7 deletions(-) diff --git a/dark.qss b/dark.qss index 0043ea9..01ec6e3 100644 --- a/dark.qss +++ b/dark.qss @@ -1095,11 +1095,11 @@ QDockWidget::close-button:pressed { image: url(:/dark/close-pressed.svg); } -QTreeView, QListView +QTreeView, +QListView { border: 1px solid #76797c; background-color: #232629; - padding: 3px; } @@ -1167,10 +1167,21 @@ QTreeView::branch:open:has-children:has-siblings:hover { } */ -QTableView::item:!selected:hover, QListView::item:!selected:hover, QTreeView::item:!selected:hover { +QTableView::item, +QListView::item, +QTreeView::item +{ + padding: 3px; +} + +QTableView::item:!selected:hover, +QListView::item:!selected:hover, +QTreeView::item:!selected:hover +{ background-color: rgba(61, 173, 232, 0.2); outline: 0; - color: #eff0f1 + color: #eff0f1; + padding: 3px; } QSlider::groove:horizontal { diff --git a/light.qss b/light.qss index 3d94602..7ebbd67 100644 --- a/light.qss +++ b/light.qss @@ -1086,7 +1086,6 @@ QTreeView, QListView { border: 1px solid #BAB9B8; background-color: #FCFCFC; - padding: 3px; } @@ -1154,10 +1153,22 @@ QTreeView::branch:open:has-children:has-siblings:hover { } */ -QTableView::item:!selected:hover, QListView::item:!selected:hover, QTreeView::item:!selected:hover { +QTableView::item, +QListView::item, +QTreeView::item +{ + padding: 3px; +} + + +QTableView::item:!selected:hover, +QListView::item:!selected:hover, +QTreeView::item:!selected:hover +{ background-color: rgba(61, 173, 232, 0.1); outline: 0; - color: #31363B + color: #31363B; + padding: 3px; } QSlider::groove:horizontal {