VirtualBox

Changeset 108102 in vbox


Ignore:
Timestamp:
Feb 6, 2025 3:51:04 PM (2 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167400
Message:

FE/Qt: bugref:10814: VBox Manager / Tools pane: Adjusting widget mode colors for item frame and extra button.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsItem.cpp

    r108100 r108102  
    760760            painterPath.addRoundedRect(subRect, iPadding, iPadding);
    761761            const QColor backgroundColor1 = uiCommon().isInDarkMode()
    762                                           ? backgroundColor.lighter(110)
    763                                           : backgroundColor.darker(105);
     762                                          ? backgroundColor.lighter(220)
     763                                          : backgroundColor.darker(140);
    764764            pPainter->setPen(QPen(backgroundColor1, 2, Qt::SolidLine, Qt::RoundCap));
    765765            pPainter->drawPath(QPainterPathStroker().createStroke(painterPath));
     
    768768            pPainter->setClipPath(painterPath);
    769769            const QColor backgroundColor2 = uiCommon().isInDarkMode()
    770                                           ? backgroundColor.lighter(180)
    771                                           : backgroundColor.darker(140);
     770                                          ? backgroundColor.lighter(160)
     771                                          : backgroundColor.darker(120);
    772772            pPainter->fillRect(subRect, backgroundColor2);
    773773        }
     
    908908    painterPath.addRoundedRect(m_extraButtonRect, iPadding, iPadding);
    909909    QColor backgroundColor1 = uiCommon().isInDarkMode()
    910                             ? backgroundColor.lighter(110)
    911                             : backgroundColor.darker(105);
     910                            ? backgroundColor.lighter(220)
     911                            : backgroundColor.darker(140);
    912912    pPainter->setPen(QPen(backgroundColor1, 2, Qt::SolidLine, Qt::RoundCap));
    913913    pPainter->drawPath(QPainterPathStroker().createStroke(painterPath));
     
    916916    pPainter->setClipPath(painterPath);
    917917    QColor backgroundColor2 = uiCommon().isInDarkMode()
    918                             ? backgroundColor.lighter(180)
    919                             : backgroundColor.darker(140);
     918                            ? backgroundColor.lighter(160)
     919                            : backgroundColor.darker(120);
    920920    pPainter->fillRect(m_extraButtonRect, backgroundColor2);
    921921
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