Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[themes] Improve hover styling for tree widget and option lists
  • Loading branch information
nirvn committed Jun 11, 2020
1 parent 0cd636e commit 11f6ed7
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
2 changes: 1 addition & 1 deletion resources/themes/Blend of Gray/style.qss
Expand Up @@ -776,7 +776,7 @@ QTreeView::item:hover, QTreeView::branch:hover {
color: @text;
}

QTreeView::item:selected, QTreeView::branch:selected {
QTreeView::item:selected, QTreeView::item:selected:hover, QTreeView::branch:selected, QTreeView::branch:selected:hover {
background-color: @selection;
color: @text;
}
Expand Down
27 changes: 23 additions & 4 deletions resources/themes/Night Mapping/style.qss
Expand Up @@ -12,8 +12,8 @@ QWindow, QMainWindow, QMdiSubWindow, QDialog, QAbstractScrollArea, QFocusFrame,

QWidget:item:hover
{
background-color: @selection;
color: @text;
background-color: @hover;
color: @itembackground;
}

QWidget:item:selected
Expand Down Expand Up @@ -779,7 +779,7 @@ QTreeView::item:hover, QTreeView::branch:hover {
color: @textlight;
}

QTreeView::item:selected, QTreeView::branch:selected {
QTreeView::item:selected, QTreeView::item:selected:hover, QTreeView::branch:selected, QTreeView::branch:selected:hover {
background-color: @selection;
color: @textlight;
}
Expand Down Expand Up @@ -828,10 +828,19 @@ 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;
background-color: @hover;
color: @itembackground;
}

QgsLayerTreeView::item:selected:hover, QgsLayerTreeView::branch:selected:hover,
QTreeView#viewGraduated::item:selected:hover, QTreeView#viewGraduated::branch:selected:hover,
QTreeView#viewCategories::item:selected:hover, QTreeView#viewCategories::branch:selected:hover,
QTreeView#viewRules::item:selected:hover, QTreeView#viewRules::branch:selected:hover
{
background-color: @selection;
color: @textlight;
}

QgsLayerTreeView::indicator:unchecked,
QTreeView#viewGraduated::indicator:unchecked,
QTreeView#viewCategories::indicator:unchecked,
Expand Down Expand Up @@ -1027,6 +1036,16 @@ QListWidget#mOptionsListWidget::item {
padding: 0.1em;
}

QListWidget#mOptionsListWidget::item:hover
{
background-color: @hover;
color: @itembackground;
}

QListWidget#mOptionsListWidget::item:selected:hover {
background-color: @selection;
}

QWidget#QgsTextFormatWidgetBase QTabWidget#mOptionsTab QTabBar::tab,
QWidget#QgsRendererMeshPropsWidgetBase QTabWidget#mStyleOptionsTab QTabBar::tab {
width: 1.2em;
Expand Down
1 change: 1 addition & 0 deletions resources/themes/Night Mapping/variables.qss
Expand Up @@ -10,5 +10,6 @@
@toggleoff: #535353
@toggleon: #0f6e00
@selection: #0f6e00
@hover: #535353
@focusdark: rgba(215,128,26,100)
@focus: #d7801a

0 comments on commit 11f6ed7

Please sign in to comment.