Skip to content
Permalink
Browse files

[themes] Avoid styling tree view item's hover state by default as doe…

…sn't plat well with tree view item delegates
  • Loading branch information
nirvn authored and nyalldawson committed Jun 28, 2020
1 parent 7d78628 commit ec36775f10f679030bd9532f69004e1c28e6c158
Showing with 12 additions and 3 deletions.
  1. +1 −1 resources/themes/Blend of Gray/style.qss
  2. +11 −2 resources/themes/Night Mapping/style.qss
@@ -772,7 +772,7 @@ QTreeView::item:disabled {
}

QTreeView::item:hover, QTreeView::branch:hover {
background-color: @c7c7c7;
background-color: transparent;
color: @text;
}

@@ -776,8 +776,8 @@ QTreeView::item:disabled {
}

QTreeView::item:hover, QTreeView::branch:hover {
background-color: @toggleoff;
color: @itembackground;
background-color: transparent;
color: @textlight;
}

QTreeView::item:selected, QTreeView::branch:selected {
@@ -807,6 +807,15 @@ QTreeView#viewRules::item
padding: 0.1em 0em 0.1em 0em;
}

QgsLayerTreeView::item:hover, QgsLayerTreeView::branch:hover,
QTreeView#viewGraduated::item:hover, QTreeView#viewGraduated::branch:hover,
QTreeView#viewCategories::item:hover, QTreeView#viewCategories::branch:hover,
QTreeView#viewRules::item:hover, QTreeView#viewRules::branch:hover
{
background-color: @toggleoff;
color: @itembackground;
}

QgsLayerTreeView::indicator:unchecked,
QTreeView#viewGraduated::indicator:unchecked,
QTreeView#viewCategories::indicator:unchecked,

0 comments on commit ec36775

Please sign in to comment.
You can’t perform that action at this time.