Skip to content

Commit

Permalink
Github Issue #119: The naviagation QTreeview is now styled using the …
Browse files Browse the repository at this point in the history
…::branch subcontrol in QSS. Shows a image of straight line for list of items in the folder along with an angled line image at the last item.
  • Loading branch information
AngryFender committed Jan 12, 2024
1 parent b6be43d commit ab9d9ac
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
Binary file added resources/angle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions resources/icons.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
<qresource prefix="/icons">
<file>application.png</file>
<file>settings.png</file>
<file alias="line">line.png</file>
<file alias="angle">angle.png</file>
</qresource>
</RCC>
Binary file added resources/line.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions theme.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,14 @@ const QString darkTheme = QStringLiteral( "QMessageBox { background-color: #3535
" image: none;"
" padding-left:10; padding-right:10; padding-top:5;"
"}"
"QTreeView::branch:!has-children:item {"
"border-image: url(:/icons/line) 0;"
"selection-background-color: transparent;"
"}"
"QTreeView::branch:!has-siblings:item {"
"border-image: url(:/icons/angle) 0;"
"selection-background-color: transparent;"
"}"
"QTreeView::item:selected {"
" background-color:#707070;"
" color: white;"
Expand Down

0 comments on commit ab9d9ac

Please sign in to comment.