Skip to content

Commit bef61ab

Browse files
committed
FIX(theme): Fix theme regression in Qt6
With the switch to Qt6 the TreeView rows now have a different padding/margin which lead to an ugly theme artifact on the left side of any TreeView. This commit adjusts padding/margin and the background color of the ::branch element to the new Qt6 reality.
1 parent 0131ff0 commit bef61ab

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

themes/Default/Dark.qss

+2-2
Original file line numberDiff line numberDiff line change
@@ -387,11 +387,11 @@ QTreeView::item:selected:active:only-one {
387387
}
388388

389389
QTreeView::branch {
390+
background-color: #191919;
390391
border-image: none;
391392
image: none;
392-
margin-left: 3px;
393-
margin-top: 1px;
394393
padding-left: 3px;
394+
padding-top: 1px;
395395
}
396396

397397
QTreeView::branch:has-children:closed {

themes/Default/Lite.qss

+2-2
Original file line numberDiff line numberDiff line change
@@ -387,11 +387,11 @@ QTreeView::item:selected:active:only-one {
387387
}
388388

389389
QTreeView::branch {
390+
background-color: #FFF;
390391
border-image: none;
391392
image: none;
392-
margin-left: 3px;
393-
margin-top: 1px;
394393
padding-left: 3px;
394+
padding-top: 1px;
395395
}
396396

397397
QTreeView::branch:has-children:closed {

themes/Default/source/Imports/Base Theme.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -438,11 +438,11 @@ QTreeView::item:selected:active:only-one
438438

439439
QTreeView::branch
440440
{
441+
background-color:$sub-bg;
441442
border-image:none;
442443
image:none;
443-
margin-left:3px;
444-
margin-top:1px;
445444
padding-left:3px;
445+
padding-top:1px;
446446
}
447447

448448
QTreeView::branch:has-children:closed

0 commit comments

Comments
 (0)