Changeset 74081 in vbox
- Timestamp:
- Sep 5, 2018 11:51:11 AM (6 years ago)
- 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 48 48 , m_enmType(enmType) 49 49 , m_iCornerRadius(QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize) / 2) 50 , m_iHeaderDarkness(110) 50 51 , m_fHovered(false) 51 52 , m_fNameHovered(false) … … 741 742 /* Prepare top gradient: */ 742 743 QLinearGradient tGradient(tRect.bottomLeft(), tRect.topLeft()); 743 tGradient.setColorAt(0, headerColor.darker( 110));744 tGradient.setColorAt(0, headerColor.darker(headerDarkness())); 744 745 tGradient.setColorAt(1, headerColor.darker(animatedValue())); 745 746 -
trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsElement.h
r74080 r74081 248 248 void updateIcon(); 249 249 250 /** Returns header darkness. */ 251 int headerDarkness() const { return m_iHeaderDarkness; } 252 250 253 /** Defines animated @a iValue. */ 251 254 void setAnimatedValue(int iValue) { m_iAnimatedValue = iValue; update(); } … … 296 299 /** Holds the corner radius. */ 297 300 int m_iCornerRadius; 301 /** Holds the header darkness. */ 302 int m_iHeaderDarkness; 298 303 299 304 /** Holds the name font. */
Note:
See TracChangeset
for help on using the changeset viewer.