Fix QTreeView indicators in Qt6.
Fix the QTreeView indicators (checkboxes) that were using the style defaults except if they had a hover/focus/selected psuedostate. This only affected Qt6. Setting `QTreeView::item`'s `background-color` weirdly fixes this stylesheet bug. Closes #51.main
parent
f5a6a9fb77
commit
babdabb092
9460
breeze_resources.py
9460
breeze_resources.py
File diff suppressed because it is too large
Load Diff
|
@ -1679,7 +1679,7 @@ QTreeView::branch:has-siblings
|
|||
}
|
||||
|
||||
/* These branch indicators don't scale */
|
||||
TreeView::branch:!has-siblings
|
||||
QTreeView::branch:!has-siblings
|
||||
{
|
||||
border-image: none;
|
||||
image: none;
|
||||
|
@ -1745,8 +1745,22 @@ QTreeView::item
|
|||
color: #eff0f1;
|
||||
}
|
||||
|
||||
QTreeView::item
|
||||
{
|
||||
/**
|
||||
* Need to set the background color in Qt6, or else
|
||||
* the QTreeView indicators use the style defaults,
|
||||
* along with the box model, which conflicts with our
|
||||
* theme (except with hover/focus/selected pseudostates).
|
||||
*
|
||||
* Affects issue #51.
|
||||
*/
|
||||
background-color: #1d2023;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
QTableView::item:!selected:hover,
|
||||
QListView::item:!selected:hover,
|
||||
QListView::item:!selected:hover
|
||||
QTreeView::item:!selected:hover
|
||||
{
|
||||
background-color: rgba(61, 173, 232, 0.1);
|
||||
|
|
|
@ -1679,7 +1679,7 @@ QTreeView::branch:has-siblings
|
|||
}
|
||||
|
||||
/* These branch indicators don't scale */
|
||||
TreeView::branch:!has-siblings
|
||||
QTreeView::branch:!has-siblings
|
||||
{
|
||||
border-image: none;
|
||||
image: none;
|
||||
|
@ -1745,8 +1745,22 @@ QTreeView::item
|
|||
color: #31363b;
|
||||
}
|
||||
|
||||
QTreeView::item
|
||||
{
|
||||
/**
|
||||
* Need to set the background color in Qt6, or else
|
||||
* the QTreeView indicators use the style defaults,
|
||||
* along with the box model, which conflicts with our
|
||||
* theme (except with hover/focus/selected pseudostates).
|
||||
*
|
||||
* Affects issue #51.
|
||||
*/
|
||||
background-color: #eff0f1;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
QTableView::item:!selected:hover,
|
||||
QListView::item:!selected:hover,
|
||||
QListView::item:!selected:hover
|
||||
QTreeView::item:!selected:hover
|
||||
{
|
||||
background-color: rgba(61, 173, 232, 0.2);
|
||||
|
|
|
@ -1679,7 +1679,7 @@ QTreeView::branch:has-siblings
|
|||
}
|
||||
|
||||
/* These branch indicators don't scale */
|
||||
TreeView::branch:!has-siblings
|
||||
QTreeView::branch:!has-siblings
|
||||
{
|
||||
border-image: none;
|
||||
image: none;
|
||||
|
@ -1745,8 +1745,22 @@ QTreeView::item
|
|||
color: #eff0f1;
|
||||
}
|
||||
|
||||
QTreeView::item
|
||||
{
|
||||
/**
|
||||
* Need to set the background color in Qt6, or else
|
||||
* the QTreeView indicators use the style defaults,
|
||||
* along with the box model, which conflicts with our
|
||||
* theme (except with hover/focus/selected pseudostates).
|
||||
*
|
||||
* Affects issue #51.
|
||||
*/
|
||||
background-color: #1d2023;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
QTableView::item:!selected:hover,
|
||||
QListView::item:!selected:hover,
|
||||
QListView::item:!selected:hover
|
||||
QTreeView::item:!selected:hover
|
||||
{
|
||||
background-color: rgba(61, 173, 232, 0.1);
|
||||
|
|
|
@ -1679,7 +1679,7 @@ QTreeView::branch:has-siblings
|
|||
}
|
||||
|
||||
/* These branch indicators don't scale */
|
||||
TreeView::branch:!has-siblings
|
||||
QTreeView::branch:!has-siblings
|
||||
{
|
||||
border-image: none;
|
||||
image: none;
|
||||
|
@ -1745,8 +1745,22 @@ QTreeView::item
|
|||
color: #31363b;
|
||||
}
|
||||
|
||||
QTreeView::item
|
||||
{
|
||||
/**
|
||||
* Need to set the background color in Qt6, or else
|
||||
* the QTreeView indicators use the style defaults,
|
||||
* along with the box model, which conflicts with our
|
||||
* theme (except with hover/focus/selected pseudostates).
|
||||
*
|
||||
* Affects issue #51.
|
||||
*/
|
||||
background-color: #eff0f1;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
QTableView::item:!selected:hover,
|
||||
QListView::item:!selected:hover,
|
||||
QListView::item:!selected:hover
|
||||
QTreeView::item:!selected:hover
|
||||
{
|
||||
background-color: rgba(61, 173, 232, 0.2);
|
||||
|
|
|
@ -1679,7 +1679,7 @@ QTreeView::branch:has-siblings
|
|||
}
|
||||
|
||||
/* These branch indicators don't scale */
|
||||
TreeView::branch:!has-siblings
|
||||
QTreeView::branch:!has-siblings
|
||||
{
|
||||
border-image: none;
|
||||
image: none;
|
||||
|
@ -1745,8 +1745,22 @@ QTreeView::item
|
|||
color: ^foreground^;
|
||||
}
|
||||
|
||||
QTreeView::item
|
||||
{
|
||||
/**
|
||||
* Need to set the background color in Qt6, or else
|
||||
* the QTreeView indicators use the style defaults,
|
||||
* along with the box model, which conflicts with our
|
||||
* theme (except with hover/focus/selected pseudostates).
|
||||
*
|
||||
* Affects issue #51.
|
||||
*/
|
||||
background-color: ^view:background^;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
QTableView::item:!selected:hover,
|
||||
QListView::item:!selected:hover,
|
||||
QListView::item:!selected:hover
|
||||
QTreeView::item:!selected:hover
|
||||
{
|
||||
background-color: ^view:hover^;
|
||||
|
|
Loading…
Reference in New Issue