VirtualBox

Changeset 89172 in vbox for trunk


Ignore:
Timestamp:
May 19, 2021 2:12:20 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10003: Reworking Chooser pane group item animation shade range.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItem.h

    r86768 r89172  
    9999      * @param  iHoveredValue  Brings hovered value for hovering animation. */
    100100    UIChooserItem(UIChooserItem *pParent, UIChooserNode *pNode,
    101                   int iDefaultValue = 100, int iHoveredValue = 90);
     101                  int iDefaultValue = 0, int iHoveredValue = 100);
    102102
    103103    /** @name Item stuff.
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGlobal.cpp

    r89137 r89172  
    3131
    3232UIChooserItemGlobal::UIChooserItemGlobal(UIChooserItem *pParent, UIChooserNodeGlobal *pNode)
    33     : UIChooserItem(pParent, pNode, 0, 100)
     33    : UIChooserItem(pParent, pNode)
    3434    , m_iDefaultLightnessMin(0)
    3535    , m_iDefaultLightnessMax(0)
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGroup.cpp

    r89170 r89172  
    16241624        /* Prepare top gradient: */
    16251625        QLinearGradient tGradient(tRect.bottomLeft(), tRect.topLeft());
    1626         tGradient.setColorAt(1, headerColor.darker(animatedValue()));
    1627         tGradient.setColorAt(0, headerColor.darker(headerDarkness()));
     1626        tGradient.setColorAt(1, headerColor.lighter(100 + (double)animatedValue() / 100 * 30));
     1627        tGradient.setColorAt(0, headerColor);
    16281628
    16291629        /* Fill top rectangle: */
     
    16371637
    16381638            /* Fill top rectangle: */
    1639             pPainter->fillRect(bRect, headerColor.darker(headerDarkness()));
     1639            pPainter->fillRect(bRect, headerColor);
    16401640        }
    16411641
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemMachine.cpp

    r89137 r89172  
    3636
    3737UIChooserItemMachine::UIChooserItemMachine(UIChooserItem *pParent, UIChooserNodeMachine *pNode)
    38     : UIChooserItem(pParent, pNode, 0, 100)
     38    : UIChooserItem(pParent, pNode)
    3939    , m_iDefaultLightnessMin(0)
    4040    , m_iDefaultLightnessMax(0)
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