Files
o3de/Code/Framework/AzQtComponents/AzQtComponents/Components/Widgets/TableView.qss
T
Steve Pham 38261d0800 Shorten copyright headers by splitting into 2 lines (#2213)
* Updated all copyright headers to split the longer original copyright line into 2 shorter lines

Signed-off-by: Steve Pham <spham@amazon.com>
2021-07-16 15:25:48 -07:00

109 lines
2.2 KiB
Plaintext

/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
QTableView
{
qproperty-showGrid: false;
}
AzQtComponents--TableView,
QTableView,
QListView,
QTreeView
{
/* Use opaque colours because the ::branch subcontrol background is painted slightly differently
to the rest of the row */
alternate-background-color: rgb(77, 77, 77);
selection-background-color: rgb(101, 101, 101);
selection-color: #ffffff;
show-decoration-selected: 1;
border: none;
}
AzQtComponents--TableView::item,
QTableView::item,
QListView::item,
QTreeView::item
{
height: 24px;
padding-left: 4px; /* QStyle::PM_FocusFrameHMargin (2) + 1 + 4 = 7 */
border: none; /* A border, background or image is required to actually make use of the padding */
}
AzQtComponents--TableView::branch:selected,
AzQtComponents--TableView::item:selected,
QTableView::item:selected,
QListView::item:selected,
QTreeView::branch:selected,
QTreeView::item:selected
{
background: rgb(101, 101, 101);
}
AzQtComponents--TableView::branch:hover,
AzQtComponents--TableView::item:hover,
QTableView::item:hover,
QListView::item:hover,
QTreeView::branch:hover,
QTreeView::item:hover
{
background: rgb(90, 90, 90);
}
AzQtComponents--TableView QHeaderView::section,
QTableView QHeaderView::section,
QListView QHeaderView::section,
QTreeView QHeaderView::section
{
height: 24px;
background: #444444;
border: none;
font-size: 12px;
font-style: normal;
padding-left: 7px;
}
/* Undo QAbstractItemView::indicator rule in CheckBox.qss */
QTreeView::indicator
{
margin: 0px;
width: 16px;
height: 16px;
margin-left: -3px;
}
QTreeView::branch:open:has-children
{
image: url(:/TreeView/open.svg);
padding: 10px 4px;
}
QTreeView::branch:closed:has-children
{
image: url(:/TreeView/closed.svg);
padding: 8px 6px;
}
QTreeView::item:disabled
{
color: #777777;
}
AzQtComponents--TableView::branch:open:has-children,
AzQtComponents--TableView::branch:closed:has-children
{
image: none;
}