VirtualBox

Changeset 108034 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Feb 3, 2025 5:32:52 PM (3 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167307
Message:

FE/Qt: bugref:10814: VBox Manager / Tools pane: Fixes for tool item painter pen selected for widget mode.

File:
1 edited

Legend:

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

    r108033 r108034  
    821821    const QPalette pal = QApplication::palette();
    822822
    823     /* Selected or hovered item foreground: */
    824     if (model()->currentItem() == this || isHovered())
    825     {
    826         /* Prepare palette: */
    827         const QPalette pal = QApplication::palette();
    828 
     823    /* Selected or hovered item foreground for popup mode: */
     824    if (   model()->tools()->isPopup()
     825        && (model()->currentItem() == this || isHovered()))
     826    {
    829827        /* Get background color: */
    830828        const QColor highlight = pal.color(QPalette::Active, QPalette::Highlight);
     
    840838    else
    841839    {
    842         const QColor textColor = isEnabled()
    843                                ? pal.color(QPalette::Active, QPalette::Text)
    844                                : pal.color(QPalette::Disabled, QPalette::Text);
    845         pPainter->setPen(textColor);
     840        const QColor foreground = isEnabled()
     841                                ? pal.color(QPalette::Active, QPalette::Text)
     842                                : pal.color(QPalette::Disabled, QPalette::Text);
     843        pPainter->setPen(foreground);
    846844    }
    847845
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