VirtualBox

Changeset 74775 in vbox


Ignore:
Timestamp:
Oct 11, 2018 5:10:40 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9241: VirtualBox Manager: Chooser pane: Sync Global item frame with machine item.

File:
1 edited

Legend:

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

    r74718 r74775  
    640640    /* Prepare color: */
    641641    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);
    645653
    646654    /* Create/assign pen: */
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