VirtualBox

Changeset 74081 in vbox


Ignore:
Timestamp:
Sep 5, 2018 11:51:11 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: VirtualBox Manager UI: Details pane re-styling: Element item: Header hovering animation cleanup as well (s.a. r124842).

Location:
trunk/src/VBox/Frontends/VirtualBox/src/manager/details
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsElement.cpp

    r74080 r74081  
    4848    , m_enmType(enmType)
    4949    , m_iCornerRadius(QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize) / 2)
     50    , m_iHeaderDarkness(110)
    5051    , m_fHovered(false)
    5152    , m_fNameHovered(false)
     
    741742    /* Prepare top gradient: */
    742743    QLinearGradient tGradient(tRect.bottomLeft(), tRect.topLeft());
    743     tGradient.setColorAt(0, headerColor.darker(110));
     744    tGradient.setColorAt(0, headerColor.darker(headerDarkness()));
    744745    tGradient.setColorAt(1, headerColor.darker(animatedValue()));
    745746
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsElement.h

    r74080 r74081  
    248248        void updateIcon();
    249249
     250        /** Returns header darkness. */
     251        int headerDarkness() const { return m_iHeaderDarkness; }
     252
    250253        /** Defines animated @a iValue. */
    251254        void setAnimatedValue(int iValue) { m_iAnimatedValue = iValue; update(); }
     
    296299        /** Holds the corner radius. */
    297300        int  m_iCornerRadius;
     301        /** Holds the header darkness. */
     302        int  m_iHeaderDarkness;
    298303
    299304        /** Holds the name font. */
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