VirtualBox

Ignore:
Timestamp:
May 24, 2021 4:53:33 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144591
Message:

FE/Qt: bugref:10003: Reworking VirtualBox Manager colors to be native; It's about carcass only, unrelated to embedded panes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/graphics/UIGraphicsScrollBar.cpp

    r88862 r89248  
    158158
    159159    /* Draw background: */
    160     QColor backgroundColor = pal.color(QPalette::Active, QPalette::Mid);
    161     backgroundColor = backgroundColor.darker(140);
     160    QColor backgroundColor = pal.color(QPalette::Active, QPalette::Window).darker(190);
    162161    QRectF actualRectangle = pOptions->rect;
    163162    actualRectangle.setLeft(pOptions->rect.left() + .22 * pOptions->rect.width());
     
    175174
    176175    /* Draw background: */
    177     QColor backgroundColor = pal.color(QPalette::Active, QPalette::Mid);
     176    QColor backgroundColor = pal.color(QPalette::Active, QPalette::Window).darker(140);
    178177    pPainter->fillRect(pOptions->rect, backgroundColor);
    179178
     
    10161015    if (m_iHoveringValue < 100)
    10171016    {
    1018         QColor tokenColor = pal.color(QPalette::Active, QPalette::Mid);
     1017        QColor tokenColor = pal.color(QPalette::Active, QPalette::Window);
    10191018        tokenColor.setAlpha(255 * ((double)m_iRevealingValue / 100));
    1020         tokenColor = tokenColor.darker(140);
     1019        tokenColor = tokenColor.darker(190);
    10211020        QRectF tokenRectangle = QRect(actualTokenPosition(), QSize(m_iExtent, 2 * m_iExtent));
    10221021        QRectF actualRectangle = tokenRectangle;
     
    10441043
    10451044    /* Draw background: */
    1046     QColor backgroundColor = pal.color(QPalette::Active, QPalette::Midlight);
     1045    QColor backgroundColor = pal.color(QPalette::Active, QPalette::Window);
    10471046    backgroundColor.setAlpha(50 + (double)m_iHoveringValue / 100 * 150);
    10481047    QRect actualRectangle = rectangle;
     
    10531052    if (m_iHoveringValue < 100)
    10541053    {
    1055         QColor tokenColor = pal.color(QPalette::Active, QPalette::Dark);
     1054        QColor tokenColor = pal.color(QPalette::Active, QPalette::Window).darker(140);
    10561055        QRect tokenRectangle = QRect(actualTokenPosition(), QSize(m_iExtent, m_iExtent));
    10571056        tokenRectangle.setLeft(tokenRectangle.left() + .85 * tokenRectangle.width() * ((double)100 - m_iHoveringValue) / 100);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette