Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[themes] Fix missing default checkbox styling for table and tree views
  • Loading branch information
nirvn authored and nyalldawson committed Jun 28, 2020
1 parent ec36775 commit ccddfec
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 1 deletion.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions resources/themes/Blend of Gray/style.qss
Expand Up @@ -793,6 +793,22 @@ QTreeView::branch:open:has-children:has-siblings {
image: url(@theme_path/icons/caret-down.svg);
}

QTreeView::indicator
{
border: 1px solid transparent;
width:0.8em;
height:0.8em;
}
QTreeView::indicator:intermediary {
image: url(@theme_path/icons/qcheckbox-intermediary.svg);
}
QTreeView::indicator:checked {
image: url(@theme_path/icons/qcheckbox-checked.svg) !important;
}
QTreeView::indicator:unchecked {
image: url(@theme_path/icons/qcheckbox-unchecked.svg);
}

QgsLayerTreeView::item,
QTreeView#viewGraduated::item,
QTreeView#viewCategories::item,
Expand Down Expand Up @@ -831,6 +847,22 @@ QTableView:disabled {
color: @itemalternativebackground;
}

QTableView::indicator
{
border: 1px solid transparent;
width:0.8em;
height:0.8em;
}
QTableView::indicator:intermediary {
image: url(@theme_path/icons/qcheckbox-intermediary.svg);
}
QTableView::indicator:checked {
image: url(@theme_path/icons/qcheckbox-checked.svg) !important;
}
QTableView::indicator:unchecked {
image: url(@theme_path/icons/qcheckbox-unchecked.svg);
}

QTableView QTableCornerButton::section {
background-color: @background;
border: 1px solid @itembackground;
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 34 additions & 1 deletion resources/themes/Night Mapping/style.qss
Expand Up @@ -756,7 +756,6 @@ QAbstractItemView::selected, QListView::selected {
outline: none;
}


/* ==================================================================================== */
/* TREE VIEW */
/* ==================================================================================== */
Expand Down Expand Up @@ -797,6 +796,23 @@ QTreeView::branch:open:has-children:has-siblings {
image: url(@theme_path/icons/caret-down.svg);
}

QTreeView::indicator {
width:0.8em;
height:0.8em;
}
QTreeView::indicator:intermediary {
border: 1px solid @background;
image: url(@theme_path/icons/qcheckbox-intermediary.svg);
}
QTreeView::indicator:checked {
border: 1px solid @background;
image: url(@theme_path/icons/qcheckbox-checked.svg) !important;
}
QTreeView::indicator:unchecked {
border: 1px solid @background;
image: url(@theme_path/icons/qcheckbox-unchecked.svg);
}

QgsLayerTreeView::item,
QTreeView#viewGraduated::item,
QTreeView#viewCategories::item,
Expand Down Expand Up @@ -846,6 +862,23 @@ QTableView:disabled {
color: @itemdarkbackground;
}

QTableView::indicator {
width:0.8em;
height:0.8em;
}
QTableView::indicator:intermediary {
border: 1px solid @background;
image: url(@theme_path/icons/qcheckbox-intermediary.svg);
}
QTableView::indicator:checked {
border: 1px solid @background;
image: url(@theme_path/icons/qcheckbox-checked.svg) !important;
}
QTableView::indicator:unchecked {
border: 1px solid @background;
image: url(@theme_path/icons/qcheckbox-unchecked.svg);
}

QTableView QTableCornerButton::section {
background-color: @background;
border: 1px solid @itembackground;
Expand Down

0 comments on commit ccddfec

Please sign in to comment.