VirtualBox

Changeset 42873 in vbox for trunk/src


Ignore:
Timestamp:
Aug 18, 2012 2:37:25 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: 6234: Support for VM groups: Another color palette fix.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItem.cpp

    r42872 r42873  
    5050    , m_iStrokeDarkness(130)
    5151    , m_iAnimationDarkness(m_iDefaultDarkness)
     52    , m_iDragTokenDarkness(150)
    5253{
    5354    /* Basic item setup: */
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemGroup.cpp

    r42872 r42873  
    10831083    QColor windowColor = pal.color(QPalette::Active, model()->selectionList().contains(this) ?
    10841084                                   QPalette::Highlight : QPalette::Window);
    1085     QColor base(Qt::white);
    10861085
    10871086    /* Root item: */
     
    10921091        {
    10931092            /* Simple and clear: */
    1094             pPainter->fillRect(rect, base.darker(106));
     1093            pPainter->fillRect(rect, QColor(240, 240, 240));
    10951094        }
    10961095        else
     
    11611160            QRect midRect = QRect(tRect.bottomLeft(), rect.bottomRight());
    11621161            /* Paint all the stuff: */
    1163             pPainter->fillRect(midRect, base.darker(defaultDarkness()));
     1162            pPainter->fillRect(midRect, QColor(245, 245, 245));
    11641163        }
    11651164
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserView.cpp

    r42872 r42873  
    3030    /* Fix palette: */
    3131    QPalette pal = palette();
    32     pal.setColor(QPalette::Base, QColor(Qt::white).darker(106));
     32    pal.setColor(QPalette::Base, QColor(240, 240, 240));
    3333    setPalette(pal);
    3434
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsElement.cpp

    r42872 r42873  
    691691    QPalette pal = QApplication::palette();
    692692    QColor windowColor = pal.color(QPalette::Active, QPalette::Window);
    693     QColor base(Qt::white);
    694     base = base.darker(m_iDefaultDarkness);
    695693
    696694    /* Add clipping: */
     
    721719    /* Paint all the stuff: */
    722720    pPainter->fillRect(tRect, tGradient);
    723     pPainter->fillRect(bRect, base);
     721    pPainter->fillRect(bRect, QColor(245, 245, 245));
    724722
    725723    /* Stroke path: */
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsView.cpp

    r42872 r42873  
    3030    /* Fix palette: */
    3131    QPalette pal = palette();
    32     pal.setColor(QPalette::Base, QColor(Qt::white).darker(106));
     32    pal.setColor(QPalette::Base, QColor(240, 240, 240));
    3333    setPalette(pal);
    3434
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