aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-26 10:05:41 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-26 10:05:41 -0700
commit2896dbdaf1a7e430a3614d451cbaf8e7d9a1c101 (patch)
treebd8d2cd6692b78c612b374622cb5632f5e9385ae /qt-ui/maintab.ui
parenta8cdc30dbf393c3ab4c9da36f897cd275e67c1de (diff)
downloadsubsurface-2896dbdaf1a7e430a3614d451cbaf8e7d9a1c101.tar.gz
Apply some CSS goodness to the Cylinders widget
Alternating color and some hover highlighting to make things prettier. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.ui')
-rw-r--r--qt-ui/maintab.ui37
1 files changed, 36 insertions, 1 deletions
diff --git a/qt-ui/maintab.ui b/qt-ui/maintab.ui
index 24ca69946..eed6b1c2e 100644
--- a/qt-ui/maintab.ui
+++ b/qt-ui/maintab.ui
@@ -157,7 +157,42 @@
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
- <widget class="QTableView" name="cylinders"/>
+ <widget class="QTableView" name="cylinders">
+ <property name="styleSheet">
+ <string notr="true"> QTableView {
+ show-decoration-selected: 1;
+ }
+
+ QTableView::item {
+ border: 1px solid #d9d9d9;
+ border-top-color: transparent;
+ border-bottom-color: transparent;
+ padding: 2px;
+ }
+
+ QTableView::item:hover {
+ background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #e7effd, stop: 1 #cbdaf1);
+ border: 1px solid #bfcde4;
+ }
+
+ QTableView::item:selected {
+ border: 1px solid #567dbc;
+ }
+
+ QTableView::item:selected:active{
+ background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #6ea1f1, stop: 1 #567dbc);
+ }
+
+ QTableView::item:selected:!active {
+ background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #6b9be8, stop: 1 #577fbf);
+ }
+
+</string>
+ </property>
+ <property name="alternatingRowColors">
+ <bool>true</bool>
+ </property>
+</widget>
</item>
</layout>
</widget>