summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-12-11 19:49:50 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-12-12 03:26:39 +0100
commitc5c44e3a829d25227f623bd0e6211a4ff5d91b69 (patch)
tree811344b2aa21c163f7e655347ab7596f8be20ba0 /qt-ui/mainwindow.ui
parentb87cfa96660b09de359a70e5601039e67791c9c3 (diff)
downloadsubsurface-c5c44e3a829d25227f623bd0e6211a4ff5d91b69.tar.gz
Kill the use of CSS - Fixes a Lot of issues on dark color schemes.
The css was done by me in the first days of subsurface for Qt, and it was a code that I was never proud of. Mostly because I tougth at the time that it was better to write it into CSS than to create a new class just to take care of the size of the default cell height on a tree view. Now I see that it was a biased approach since it created issues on dark color schemes and it also didn't make a 'native' experience on Gnome or OSX, only on KDE. This fixes that. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.ui')
-rw-r--r--qt-ui/mainwindow.ui31
1 files changed, 0 insertions, 31 deletions
diff --git a/qt-ui/mainwindow.ui b/qt-ui/mainwindow.ui
index 2261b4d04..60aa787e4 100644
--- a/qt-ui/mainwindow.ui
+++ b/qt-ui/mainwindow.ui
@@ -95,37 +95,6 @@
<enum>Qt::Horizontal</enum>
</property>
<widget class="DiveListView" name="ListWidget">
- <property name="styleSheet">
- <string notr="true"> QTreeView {
- show-decoration-selected: 1;
- }
-
- QTreeView::item {
- border: 1px solid #d9d9d9;
- border-top-color: transparent;
- border-bottom-color: transparent;
- padding: 2px;
- }
-
- QTreeView::item:hover {
- background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #e7effd, stop: 1 #cbdaf1);
- border: 1px solid #bfcde4;
- }
-
- QTreeView::item:selected {
- border: 1px solid #567dbc;
- }
-
- QTreeView::item:selected:active{
- background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #6ea1f1, stop: 1 #567dbc);
- }
-
- QTreeView::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>