Skip to content

Commit

Permalink
Better highlight for current crates
Browse files Browse the repository at this point in the history
  • Loading branch information
xorik committed Sep 6, 2023
1 parent dfdadcc commit d7e9f8b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/library/sidebarmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,13 @@ QVariant SidebarModel::data(const QModelIndex& index, int role) const {
font.setBold(pTreeItem->isBold());
return font;
}
case Qt::ForegroundRole: {
if (pTreeItem->isBold()) {
return QBrush(Qt::red);
} else {
return QBrush(Qt::white);
}
}
case Qt::DecorationRole:
return pTreeItem->getIcon();
case SidebarModel::DataRole:
Expand Down

0 comments on commit d7e9f8b

Please sign in to comment.