/*
 --------------------------------------------------------------------------
 TreeView Base Style
 --------------------------------------------------------------------------
*/

QTreeView
{
    background-color: @background_color;
    alternate-background-color: @background_in_color;
    show-decoration-selected: 1;
    font: 12*DPIpx;
	color: @primary_text_color;
    border: 0px;
    outline: none;
}

QTreeView::item
{
	/*height: 24*DPIpx;*/
	show-decoration-selected: 1; /* make the selection span the entire width of the view */
    /*padding:3*DPIpx;*/
}

QTreeView::item:focus
{
	border: 0px;
	outline: none;
}

QTreeView::item:hover
{
    color: @text_color_inverse;
    background-color: @accent_color_5;
}

QTreeView::item:selected
{
    background-color: @accent_color;
}

QTreeView::branch
{
    background-color: @background_color;
}

QTreeView::branch:has-children:!has-siblings:closed,
QTreeView::branch:closed:has-children:has-siblings
{
    border-image: none;
    image: url(@branch_closed_icon);
}
QTreeView::branch:open:has-children:!has-siblings,
QTreeView::branch:open:has-children:has-siblings
{
    border-image: none;
    image: url(@branch_open_icon);
}

QTreeView::branch:has-siblings:!adjoins-item
{
    border-image: url(@vline_icon) 0;
}

QTreeView::branch:has-siblings:adjoins-item
{
    border-image: url(@branch_more_icon) 0;
}

QTreeView::branch:!has-children:!has-siblings:adjoins-item {
    border-image: url(@branch_end_icon) 0;
}

/*QTreeView::item:selected,*/
/*QTreeView::item:selected:active {*/
/*    !*color: ACCENT_FOREGROUND_COLOR;*!*/
/*    !*background-color: ACCENT_COLOR_DARKER;*!*/
/*    border-left:2px solid @accent_color;*/
/*    padding-left:2px;*/
/*}*/

/*QTreeView::item:selected:hover,*/
/*QTreeView::item:selected:active:hover*/
/*{*/
/*    !*color: ACCENT_FOREGROUND_COLOR;*!*/
/*    background-color: @accent_color;*/
/*    border-left:2px solid @accent_color;*/
/*    padding-left:2px;*/
/*}*/

/*QTreeView::item:!selected:hover {*/
/*    background-color: @accent_color;*/
/*    margin-left:-3px;*/
/*    border-left:0px;*/
/*}*/


ScriptOutlinerTree::branch:has-children:!has-siblings:closed,
ScriptOutlinerTree::branch:closed:has-children:has-siblings
{
    border-image: none;
    image: url(@python_closed_icon);
}
ScriptOutlinerTree::branch:open:has-children:!has-siblings,
ScriptOutlinerTree::branch:open:has-children:has-siblings
{
    border-image: none;
    image: url(@python_expand_icon);
}