Changeset 74775 in vbox
- Timestamp:
- Oct 11, 2018 5:10:40 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGlobal.cpp
r74718 r74775 640 640 /* Prepare color: */ 641 641 const QPalette pal = palette(); 642 QColor strokeColor = pal.color(QPalette::Active, 643 model()->currentItems().contains(unconst(this)) ? 644 QPalette::Mid : QPalette::Highlight); 642 QColor strokeColor; 643 644 /* Selection frame: */ 645 if (model()->currentItems().contains(unconst(this))) 646 strokeColor = pal.color(QPalette::Active, QPalette::Highlight).lighter(m_iHighlightLightnessMin - 40); 647 /* Hovering frame: */ 648 else if (isHovered()) 649 strokeColor = pal.color(QPalette::Active, QPalette::Highlight).lighter(m_iHoverLightnessMin - 50); 650 /* Default frame: */ 651 else 652 strokeColor = pal.color(QPalette::Active, QPalette::Mid).lighter(m_iDefaultLightnessMin); 645 653 646 654 /* Create/assign pen: */
Note:
See TracChangeset
for help on using the changeset viewer.