Changeset 108034 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Feb 3, 2025 5:32:52 PM (3 months ago)
- svn:sync-xref-src-repo-rev:
- 167307
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsItem.cpp
r108033 r108034 821 821 const QPalette pal = QApplication::palette(); 822 822 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 { 829 827 /* Get background color: */ 830 828 const QColor highlight = pal.color(QPalette::Active, QPalette::Highlight); … … 840 838 else 841 839 { 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); 846 844 } 847 845
Note:
See TracChangeset
for help on using the changeset viewer.