VirtualBox

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


Ignore:
Timestamp:
Jan 15, 2024 2:42:35 PM (11 months ago)
Author:
vboxsync
Message:

FE/Qt: macOS: A bit of fixes for AlternateBase color required since we are using hardcoded native cocoa colors now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp

    r102752 r102877  
    10591059        ColorSlot_DarkActive,
    10601060        ColorSlot_DarkInactive,
     1061        ColorSlot_DarkAlternate,
    10611062        ColorSlot_LightActive,
    10621063        ColorSlot_LightInactive,
     1064        ColorSlot_LightAlternate,
    10631065    };
    10641066    QMap<ColorSlot, QColor> colors;
     
    10921094            break;
    10931095    }
     1096    /* Redefine colors common for various OS types: */
     1097    colors[ColorSlot_DarkAlternate] = QColor("#2F2A2F");
     1098    colors[ColorSlot_LightAlternate] = QColor("#F4F5F5");
    10941099
    10951100    /* Do we have redefined colors? */
     
    11011106            pal.setColor(QPalette::Active, QPalette::Window, colors.value(ColorSlot_DarkActive));
    11021107            pal.setColor(QPalette::Inactive, QPalette::Window, colors.value(ColorSlot_DarkInactive));
     1108            pal.setColor(QPalette::Active, QPalette::AlternateBase, colors.value(ColorSlot_DarkAlternate));
     1109            pal.setColor(QPalette::Inactive, QPalette::AlternateBase, colors.value(ColorSlot_DarkAlternate));
    11031110        }
    11041111        else
     
    11061113            pal.setColor(QPalette::Active, QPalette::Window, colors.value(ColorSlot_LightActive));
    11071114            pal.setColor(QPalette::Inactive, QPalette::Window, colors.value(ColorSlot_LightInactive));
     1115            pal.setColor(QPalette::Active, QPalette::AlternateBase, colors.value(ColorSlot_LightAlternate));
     1116            pal.setColor(QPalette::Inactive, QPalette::AlternateBase, colors.value(ColorSlot_LightAlternate));
    11081117        }
    11091118        qApp->setPalette(pal);
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