Navigation Menu

Skip to content

Commit

Permalink
[themes] Avoid styling tree view item's hover state by default as doe…
Browse files Browse the repository at this point in the history
…sn't plat well with tree view item delegates
  • Loading branch information
nirvn committed Jun 4, 2020
1 parent 4a6f423 commit f631a88
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resources/themes/Blend of Gray/style.qss
Expand Up @@ -772,7 +772,7 @@ QTreeView::item:disabled {
}

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

Expand Down
13 changes: 11 additions & 2 deletions resources/themes/Night Mapping/style.qss
Expand Up @@ -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 {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit f631a88

Please sign in to comment.