VirtualBox

Changeset 88792 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 30, 2021 12:08:42 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10003: Reworking QISplitter handle to have native colors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QISplitter.cpp

    r82968 r88792  
    132132    : QSplitterHandle(enmOrientation, pParent)
    133133{
    134     QPalette pal = qApp->palette();
    135     QColor windowColor = pal.color(QPalette::Active, QPalette::Window);
    136     QColor darkColor = pal.color(QPalette::Active, QPalette::Dark);
     134    QColor windowColor = QApplication::palette().color(QPalette::Active, QPalette::Window);
     135    QColor frameColor = QApplication::palette().color(QPalette::Active, QPalette::Text);
     136    frameColor.setAlpha(100);
    137137    m_color1 = windowColor;
    138138    m_color2 = windowColor;
    139     m_color = darkColor;
     139    m_color = frameColor;
    140140}
    141141
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