VirtualBox

Changeset 74744 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 10, 2018 1:10:23 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9241: VirtualBox Manager: Make sure menu-bar is using own solid background.

File:
1 edited

Legend:

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

    r74719 r74744  
    11971197    /* Create menu-bar: */
    11981198    setMenuBar(new UIMenuBar);
     1199
     1200    /* Make sure menu-bar fills own solid background: */
     1201    menuBar()->setAutoFillBackground(true);
     1202    QPalette pal = menuBar()->palette();
     1203    const QColor color = pal.color(QPalette::Active, QPalette::Mid).lighter(160);
     1204    pal.setColor(QPalette::Active, QPalette::Button, color);
     1205    menuBar()->setPalette(pal);
    11991206#endif
    12001207
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