- Timestamp:
- Aug 31, 2018 11:11:12 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGroup.cpp
r74000 r74001 1645 1645 model()->currentItems().contains(this) ? 1646 1646 QPalette::Highlight : QPalette::Midlight); 1647 QColor bodyColor = pal.color(QPalette::Active, QPalette:: Base);1647 QColor bodyColor = pal.color(QPalette::Active, QPalette::Midlight).darker(blackoutDarkness()); 1648 1648 1649 1649 /* Root-item: */ … … 1661 1661 /* Prepare variables: */ 1662 1662 int iMargin = data(GroupItemData_VerticalMargin).toInt(); 1663 int iHeaderHeight = m_minimumHeaderSize.height(); 1664 int iFullHeaderHeight = 2 * iMargin + iHeaderHeight; 1665 QRect backgroundRect = QRect(0, 0, rect.width(), iFullHeaderHeight); 1663 int iFullHeaderHeight = 2 * iMargin + m_minimumHeaderSize.height(); 1664 int iFullBodyHeight = rect.height() - iFullHeaderHeight; 1665 QRect headerRect = QRect(0, 0, rect.width(), iFullHeaderHeight); 1666 QRect bodyRect = QRect(0, iFullHeaderHeight, rect.width(), iFullBodyHeight); 1666 1667 1667 1668 /* Fill background: */ 1668 QLinearGradient headerGradient( backgroundRect.bottomLeft(), backgroundRect.topLeft());1669 QLinearGradient headerGradient(headerRect.bottomLeft(), headerRect.topLeft()); 1669 1670 headerGradient.setColorAt(1, headerColor.darker(blackoutDarkness())); 1670 1671 headerGradient.setColorAt(0, headerColor.darker(animationDarkness())); 1671 pPainter->fillRect(backgroundRect, headerGradient); 1672 pPainter->fillRect(headerRect, headerGradient); 1673 pPainter->fillRect(bodyRect, bodyColor); 1672 1674 } 1673 1675 } … … 1677 1679 /* Prepare variables: */ 1678 1680 int iMargin = data(GroupItemData_VerticalMargin).toInt(); 1679 int iHeaderHeight = m_minimumHeaderSize.height(); 1680 int iFullHeaderHeight = 2 * iMargin + iHeaderHeight; 1681 int iFullHeaderHeight = 2 * iMargin + m_minimumHeaderSize.height(); 1681 1682 1682 1683 /* Calculate top rectangle: */
Note:
See TracChangeset
for help on using the changeset viewer.