Changeset 102877 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jan 15, 2024 2:42:35 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp
r102752 r102877 1059 1059 ColorSlot_DarkActive, 1060 1060 ColorSlot_DarkInactive, 1061 ColorSlot_DarkAlternate, 1061 1062 ColorSlot_LightActive, 1062 1063 ColorSlot_LightInactive, 1064 ColorSlot_LightAlternate, 1063 1065 }; 1064 1066 QMap<ColorSlot, QColor> colors; … … 1092 1094 break; 1093 1095 } 1096 /* Redefine colors common for various OS types: */ 1097 colors[ColorSlot_DarkAlternate] = QColor("#2F2A2F"); 1098 colors[ColorSlot_LightAlternate] = QColor("#F4F5F5"); 1094 1099 1095 1100 /* Do we have redefined colors? */ … … 1101 1106 pal.setColor(QPalette::Active, QPalette::Window, colors.value(ColorSlot_DarkActive)); 1102 1107 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)); 1103 1110 } 1104 1111 else … … 1106 1113 pal.setColor(QPalette::Active, QPalette::Window, colors.value(ColorSlot_LightActive)); 1107 1114 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)); 1108 1117 } 1109 1118 qApp->setPalette(pal);
Note:
See TracChangeset
for help on using the changeset viewer.