Skip to content
Permalink
Browse files

[themes] Improve hover styling for tree widget and option lists

  • Loading branch information
nirvn committed Jun 11, 2020
1 parent 0cd636e commit 11f6ed772a963f17bbea241761d35d46fe4002da
@@ -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;
}
@@ -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
@@ -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;
}
@@ -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,
@@ -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;
@@ -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.
You can’t perform that action at this time.