VirtualBox

Changeset 74001 in vbox for trunk/src


Ignore:
Timestamp:
Aug 31, 2018 11:11:12 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: VirtualBox Manager UI: Chooser pane re-styling: Group item: New background tone.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGroup.cpp

    r74000 r74001  
    16451645                                   model()->currentItems().contains(this) ?
    16461646                                   QPalette::Highlight : QPalette::Midlight);
    1647     QColor bodyColor = pal.color(QPalette::Active, QPalette::Base);
     1647    QColor bodyColor = pal.color(QPalette::Active, QPalette::Midlight).darker(blackoutDarkness());
    16481648
    16491649    /* Root-item: */
     
    16611661            /* Prepare variables: */
    16621662            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);
    16661667
    16671668            /* Fill background: */
    1668             QLinearGradient headerGradient(backgroundRect.bottomLeft(), backgroundRect.topLeft());
     1669            QLinearGradient headerGradient(headerRect.bottomLeft(), headerRect.topLeft());
    16691670            headerGradient.setColorAt(1, headerColor.darker(blackoutDarkness()));
    16701671            headerGradient.setColorAt(0, headerColor.darker(animationDarkness()));
    1671             pPainter->fillRect(backgroundRect, headerGradient);
     1672            pPainter->fillRect(headerRect, headerGradient);
     1673            pPainter->fillRect(bodyRect, bodyColor);
    16721674        }
    16731675    }
     
    16771679        /* Prepare variables: */
    16781680        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();
    16811682
    16821683        /* Calculate top rectangle: */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette