2020-09-09 15:44:15 +02:00
|
|
|
Index: VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/tools/UITools.cpp
|
2019-04-05 16:49:14 +02:00
|
|
|
===================================================================
|
2020-09-09 15:44:15 +02:00
|
|
|
--- VirtualBox-6.1.14.orig/src/VBox/Frontends/VirtualBox/src/manager/tools/UITools.cpp
|
|
|
|
+++ VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/tools/UITools.cpp
|
2020-08-29 21:52:49 +02:00
|
|
|
@@ -124,10 +124,6 @@ void UITools::preparePalette()
|
2019-04-05 16:49:14 +02:00
|
|
|
{
|
|
|
|
/* Setup palette: */
|
|
|
|
setAutoFillBackground(true);
|
|
|
|
- QPalette pal = palette();
|
|
|
|
- QColor bodyColor = pal.color(QPalette::Active, QPalette::Midlight).darker(110);
|
|
|
|
- pal.setColor(QPalette::Window, bodyColor);
|
|
|
|
- setPalette(pal);
|
|
|
|
}
|
|
|
|
|
|
|
|
void UITools::prepareLayout()
|
2020-09-09 15:44:15 +02:00
|
|
|
Index: VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
|
2019-04-05 16:49:14 +02:00
|
|
|
===================================================================
|
2020-09-09 15:44:15 +02:00
|
|
|
--- VirtualBox-6.1.14.orig/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
|
|
|
|
+++ VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
|
|
|
|
@@ -1323,7 +1323,7 @@ void UIVirtualBoxManager::prepareMenuBar
|
2019-04-05 16:49:14 +02:00
|
|
|
/* Make sure menu-bar fills own solid background: */
|
|
|
|
menuBar()->setAutoFillBackground(true);
|
|
|
|
QPalette pal = menuBar()->palette();
|
|
|
|
- const QColor color = pal.color(QPalette::Active, QPalette::Mid).lighter(160);
|
|
|
|
+ const QColor color = pal.color(QPalette::Active, QPalette::Window);
|
|
|
|
pal.setColor(QPalette::Active, QPalette::Button, color);
|
|
|
|
menuBar()->setPalette(pal);
|
|
|
|
}
|
2020-09-09 15:44:15 +02:00
|
|
|
Index: VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooser.cpp
|
2019-04-05 16:49:14 +02:00
|
|
|
===================================================================
|
2020-09-09 15:44:15 +02:00
|
|
|
--- VirtualBox-6.1.14.orig/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooser.cpp
|
|
|
|
+++ VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooser.cpp
|
|
|
|
@@ -121,10 +121,6 @@ void UIChooser::preparePalette()
|
2019-04-05 16:49:14 +02:00
|
|
|
{
|
2020-09-09 15:44:15 +02:00
|
|
|
/* Setup palette: */
|
2019-04-05 16:49:14 +02:00
|
|
|
setAutoFillBackground(true);
|
|
|
|
- QPalette pal = palette();
|
|
|
|
- QColor bodyColor = pal.color(QPalette::Active, QPalette::Midlight).darker(110);
|
|
|
|
- pal.setColor(QPalette::Window, bodyColor);
|
|
|
|
- setPalette(pal);
|
|
|
|
}
|
|
|
|
|
2020-09-09 15:44:15 +02:00
|
|
|
void UIChooser::prepareLayout()
|
|
|
|
Index: VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemMachine.cpp
|
2019-04-05 16:49:14 +02:00
|
|
|
===================================================================
|
2020-09-09 15:44:15 +02:00
|
|
|
--- VirtualBox-6.1.14.orig/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemMachine.cpp
|
|
|
|
+++ VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemMachine.cpp
|
|
|
|
@@ -909,7 +909,7 @@ void UIChooserItemMachine::paintBackgrou
|
2019-04-05 16:49:14 +02:00
|
|
|
else
|
|
|
|
{
|
|
|
|
/* Prepare color: */
|
|
|
|
- QColor backgroundColor = pal.color(QPalette::Active, QPalette::Mid);
|
|
|
|
+ QColor backgroundColor = pal.color(QPalette::Active, QPalette::Button);
|
|
|
|
/* Draw gradient: */
|
|
|
|
QLinearGradient bgGrad(rectangle.topLeft(), rectangle.bottomLeft());
|
|
|
|
bgGrad.setColorAt(0, backgroundColor.lighter(m_iDefaultLightnessMax));
|
2020-09-09 15:44:15 +02:00
|
|
|
@@ -938,7 +938,7 @@ void UIChooserItemMachine::paintBackgrou
|
2019-04-05 16:49:14 +02:00
|
|
|
/* Default background: */
|
|
|
|
else
|
|
|
|
{
|
|
|
|
- QColor backgroundColor = pal.color(QPalette::Active, QPalette::Mid);
|
|
|
|
+ QColor backgroundColor = pal.color(QPalette::Active, QPalette::Button);
|
|
|
|
color1 = backgroundColor.lighter(m_iDefaultLightnessMax);
|
|
|
|
color2 = backgroundColor.lighter(m_iDefaultLightnessMax - 70);
|
|
|
|
}
|
2020-09-09 15:44:15 +02:00
|
|
|
@@ -959,7 +959,7 @@ void UIChooserItemMachine::paintBackgrou
|
2019-04-05 16:49:14 +02:00
|
|
|
/* Default background: */
|
|
|
|
else
|
|
|
|
{
|
|
|
|
- QColor backgroundColor = pal.color(QPalette::Active, QPalette::Mid);
|
|
|
|
+ QColor backgroundColor = pal.color(QPalette::Active, QPalette::Button);
|
|
|
|
color1 = backgroundColor.lighter(m_iDefaultLightnessMin);
|
|
|
|
color2 = backgroundColor.lighter(m_iDefaultLightnessMin - 40);
|
|
|
|
}
|
2020-09-09 15:44:15 +02:00
|
|
|
@@ -994,7 +994,7 @@ void UIChooserItemMachine::paintFrame(QP
|
2019-04-05 16:49:14 +02:00
|
|
|
strokeColor = pal.color(QPalette::Active, QPalette::Highlight).lighter(m_iHoverLightnessMin - 50);
|
|
|
|
/* Default frame: */
|
|
|
|
else
|
|
|
|
- strokeColor = pal.color(QPalette::Active, QPalette::Mid).lighter(m_iDefaultLightnessMin);
|
|
|
|
+ strokeColor = pal.color(QPalette::Active, QPalette::Button).lighter(m_iDefaultLightnessMin);
|
|
|
|
|
|
|
|
/* Create/assign pen: */
|
|
|
|
QPen pen(strokeColor);
|
2020-09-09 15:44:15 +02:00
|
|
|
Index: VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsItem.cpp
|
2019-04-05 16:49:14 +02:00
|
|
|
===================================================================
|
2020-09-09 15:44:15 +02:00
|
|
|
--- VirtualBox-6.1.14.orig/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsItem.cpp
|
|
|
|
+++ VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsItem.cpp
|
2020-08-29 21:52:49 +02:00
|
|
|
@@ -716,7 +716,7 @@ void UIToolsItem::paintBackground(QPaint
|
2019-04-05 16:49:14 +02:00
|
|
|
/* Prepare color: */
|
|
|
|
const QColor backgroundColor = isEnabled()
|
|
|
|
? pal.color(QPalette::Active, QPalette::Highlight)
|
|
|
|
- : pal.color(QPalette::Disabled, QPalette::Midlight);
|
|
|
|
+ : pal.color(QPalette::Disabled, QPalette::Highlight);
|
|
|
|
/* Draw gradient: */
|
|
|
|
QLinearGradient bgGrad(rectangle.topLeft(), rectangle.bottomLeft());
|
|
|
|
bgGrad.setColorAt(0, backgroundColor.lighter(m_iHighlightLightnessMax));
|
2020-08-29 21:52:49 +02:00
|
|
|
@@ -755,7 +755,7 @@ void UIToolsItem::paintBackground(QPaint
|
2019-04-05 16:49:14 +02:00
|
|
|
/* Prepare color: */
|
|
|
|
const QColor backgroundColor = isEnabled()
|
|
|
|
? pal.color(QPalette::Active, QPalette::Highlight)
|
|
|
|
- : pal.color(QPalette::Disabled, QPalette::Midlight);
|
|
|
|
+ : pal.color(QPalette::Disabled, QPalette::Highlight);
|
|
|
|
/* Draw gradient: */
|
|
|
|
QLinearGradient bgGrad(rectangle.topLeft(), rectangle.bottomLeft());
|
|
|
|
bgGrad.setColorAt(0, backgroundColor.lighter(m_iHoverLightnessMax));
|
2020-08-29 21:52:49 +02:00
|
|
|
@@ -793,8 +793,8 @@ void UIToolsItem::paintBackground(QPaint
|
2019-04-05 16:49:14 +02:00
|
|
|
{
|
|
|
|
/* Prepare color: */
|
|
|
|
const QColor backgroundColor = isEnabled()
|
|
|
|
- ? pal.color(QPalette::Active, QPalette::Mid)
|
|
|
|
- : pal.color(QPalette::Disabled, QPalette::Midlight);
|
|
|
|
+ ? pal.color(QPalette::Active, QPalette::Window)
|
|
|
|
+ : pal.color(QPalette::Disabled, QPalette::Window);
|
|
|
|
/* Draw gradient: */
|
|
|
|
QLinearGradient bgGrad(rectangle.topLeft(), rectangle.bottomLeft());
|
|
|
|
bgGrad.setColorAt(0, backgroundColor.lighter(m_iDefaultLightnessMax));
|
2020-08-29 21:52:49 +02:00
|
|
|
@@ -827,7 +827,7 @@ void UIToolsItem::paintFrame(QPainter *p
|
2019-04-05 16:49:14 +02:00
|
|
|
strokeColor = pal.color(QPalette::Active, QPalette::Highlight).lighter(m_iHoverLightnessMin - 50);
|
|
|
|
/* Default frame: */
|
|
|
|
else
|
|
|
|
- strokeColor = pal.color(QPalette::Active, QPalette::Mid).lighter(m_iDefaultLightnessMin);
|
|
|
|
+ strokeColor = pal.color(QPalette::Active, QPalette::Button).lighter(m_iDefaultLightnessMin);
|
|
|
|
|
|
|
|
/* Create/assign pen: */
|
|
|
|
QPen pen(strokeColor);
|
2020-09-09 15:44:15 +02:00
|
|
|
Index: VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
|
2019-04-05 16:49:14 +02:00
|
|
|
===================================================================
|
2020-09-09 15:44:15 +02:00
|
|
|
--- VirtualBox-6.1.14.orig/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
|
|
|
|
+++ VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
|
|
|
|
@@ -352,14 +352,6 @@ void UIVirtualBoxManagerWidget::prepare(
|
2019-04-05 16:49:14 +02:00
|
|
|
{
|
2020-09-09 15:44:15 +02:00
|
|
|
/* Configure palette: */
|
2019-04-05 16:49:14 +02:00
|
|
|
setAutoFillBackground(true);
|
|
|
|
- QPalette pal = palette();
|
|
|
|
-#ifdef VBOX_WS_MAC
|
|
|
|
- const QColor color = pal.color(QPalette::Active, QPalette::Mid).lighter(145);
|
|
|
|
-#else
|
|
|
|
- const QColor color = pal.color(QPalette::Active, QPalette::Mid).lighter(160);
|
|
|
|
-#endif
|
|
|
|
- pal.setColor(QPalette::Window, color);
|
|
|
|
- setPalette(pal);
|
|
|
|
|
2020-09-09 15:44:15 +02:00
|
|
|
/* Prepare: */
|
|
|
|
prepareWidgets();
|
|
|
|
@@ -490,7 +482,7 @@ void UIVirtualBoxManagerWidget::prepareW
|
2019-04-05 16:49:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Adjust splitter colors according to main widgets it splits: */
|
|
|
|
- m_pSplitter->configureColor(palette().color(QPalette::Active, QPalette::Midlight).darker(110));
|
|
|
|
+ m_pSplitter->configureColor(palette().color(QPalette::Active, QPalette::Button).darker(110));
|
|
|
|
/* Set the initial distribution. The right site is bigger. */
|
|
|
|
m_pSplitter->setStretchFactor(0, 2);
|
|
|
|
m_pSplitter->setStretchFactor(1, 3);
|
2020-09-09 15:44:15 +02:00
|
|
|
Index: VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItem.cpp
|
2019-04-05 16:49:14 +02:00
|
|
|
===================================================================
|
2020-09-09 15:44:15 +02:00
|
|
|
--- VirtualBox-6.1.14.orig/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItem.cpp
|
|
|
|
+++ VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItem.cpp
|
|
|
|
@@ -646,7 +646,7 @@ void UIChooserItem::paintFlatButton(QPai
|
2019-04-05 16:49:14 +02:00
|
|
|
|
|
|
|
/* Prepare colors: */
|
|
|
|
const QPalette pal = QApplication::palette();
|
|
|
|
- const QColor color = pal.color(QPalette::Active, QPalette::Mid);
|
|
|
|
+ const QColor color = pal.color(QPalette::Active, QPalette::Button);
|
|
|
|
|
|
|
|
/* Prepare pen: */
|
|
|
|
QPen pen;
|
2020-09-09 15:44:15 +02:00
|
|
|
Index: VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserView.cpp
|
2019-04-05 16:49:14 +02:00
|
|
|
===================================================================
|
2020-09-09 15:44:15 +02:00
|
|
|
--- VirtualBox-6.1.14.orig/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserView.cpp
|
|
|
|
+++ VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserView.cpp
|
|
|
|
@@ -245,10 +245,6 @@ void UIChooserView::prepare()
|
|
|
|
void UIChooserView::preparePalette()
|
2019-04-05 16:49:14 +02:00
|
|
|
{
|
2020-09-09 15:44:15 +02:00
|
|
|
/* Setup palette: */
|
2019-04-05 16:49:14 +02:00
|
|
|
- QPalette pal = qApp->palette();
|
|
|
|
- const QColor bodyColor = pal.color(QPalette::Active, QPalette::Midlight).darker(110);
|
|
|
|
- pal.setColor(QPalette::Base, bodyColor);
|
|
|
|
- setPalette(pal);
|
2020-09-09 15:44:15 +02:00
|
|
|
}
|
2019-04-05 16:49:14 +02:00
|
|
|
|
2020-09-09 15:44:15 +02:00
|
|
|
void UIChooserView::resizeEvent(QResizeEvent *pEvent)
|
|
|
|
Index: VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsView.cpp
|
2019-04-05 16:49:14 +02:00
|
|
|
===================================================================
|
2020-09-09 15:44:15 +02:00
|
|
|
--- VirtualBox-6.1.14.orig/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsView.cpp
|
|
|
|
+++ VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsView.cpp
|
2019-04-05 16:49:14 +02:00
|
|
|
@@ -182,10 +182,6 @@ void UIToolsView::prepare()
|
|
|
|
void UIToolsView::preparePalette()
|
|
|
|
{
|
|
|
|
/* Setup palette: */
|
|
|
|
- QPalette pal = qApp->palette();
|
|
|
|
- const QColor bodyColor = pal.color(QPalette::Active, QPalette::Midlight).darker(110);
|
|
|
|
- pal.setColor(QPalette::Base, bodyColor);
|
|
|
|
- setPalette(pal);
|
|
|
|
}
|
|
|
|
|
|
|
|
void UIToolsView::resizeEvent(QResizeEvent *pEvent)
|
2020-09-09 15:44:15 +02:00
|
|
|
Index: VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsElement.cpp
|
2019-04-05 16:49:14 +02:00
|
|
|
===================================================================
|
2020-09-09 15:44:15 +02:00
|
|
|
--- VirtualBox-6.1.14.orig/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsElement.cpp
|
|
|
|
+++ VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsElement.cpp
|
|
|
|
@@ -1185,7 +1185,7 @@ void UIDetailsElement::paintBackground(Q
|
2019-04-05 16:49:14 +02:00
|
|
|
const QPalette pal = palette();
|
|
|
|
|
|
|
|
/* Paint default background: */
|
|
|
|
- const QColor defaultColor = pal.color(QPalette::Active, QPalette::Mid);
|
|
|
|
+ const QColor defaultColor = pal.color(QPalette::Active, QPalette::Window);
|
|
|
|
const QColor dcTone1 = defaultColor.lighter(m_iDefaultToneFinal);
|
|
|
|
const QColor dcTone2 = defaultColor.lighter(m_iDefaultToneStart);
|
|
|
|
QLinearGradient gradientDefault(fullRect.topLeft(), fullRect.bottomLeft());
|
2020-09-09 15:44:15 +02:00
|
|
|
@@ -1226,7 +1226,7 @@ void UIDetailsElement::paintFrame(QPaint
|
2019-04-05 16:49:14 +02:00
|
|
|
: optionRect;
|
|
|
|
|
|
|
|
/* Paint frame: */
|
|
|
|
- const QColor strokeColor = palette().color(QPalette::Active, QPalette::Mid).lighter(m_iDefaultToneStart);
|
|
|
|
+ const QColor strokeColor = palette().color(QPalette::Active, QPalette::Window).lighter(m_iDefaultToneStart);
|
|
|
|
QPen pen(strokeColor);
|
|
|
|
pen.setWidth(0);
|
|
|
|
pPainter->setPen(pen);
|
2020-09-09 15:44:15 +02:00
|
|
|
Index: VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/widgets/UIToolBar.cpp
|
2019-04-05 16:49:14 +02:00
|
|
|
===================================================================
|
2020-09-09 15:44:15 +02:00
|
|
|
--- VirtualBox-6.1.14.orig/src/VBox/Frontends/VirtualBox/src/widgets/UIToolBar.cpp
|
|
|
|
+++ VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/widgets/UIToolBar.cpp
|
2019-04-05 16:49:14 +02:00
|
|
|
@@ -110,7 +110,7 @@ void UIToolBar::paintEvent(QPaintEvent *
|
|
|
|
const QRect rectangle = pEvent->rect();
|
|
|
|
|
|
|
|
/* Prepare gradient: */
|
|
|
|
- const QColor backgroundColor = palette().color(QPalette::Active, QPalette::Mid);
|
|
|
|
+ const QColor backgroundColor = palette().color(QPalette::Active, QPalette::Window);
|
|
|
|
QLinearGradient gradient(rectangle.topLeft(), rectangle.bottomLeft());
|
|
|
|
gradient.setColorAt(0, backgroundColor.lighter(130));
|
|
|
|
gradient.setColorAt(1, backgroundColor.lighter(125));
|
2020-09-09 15:44:15 +02:00
|
|
|
Index: VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsSet.cpp
|
2019-04-05 16:49:14 +02:00
|
|
|
===================================================================
|
2020-09-09 15:44:15 +02:00
|
|
|
--- VirtualBox-6.1.14.orig/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsSet.cpp
|
|
|
|
+++ VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsSet.cpp
|
|
|
|
@@ -700,7 +700,7 @@ void UIDetailsSet::paintBackground(QPain
|
2019-04-05 16:49:14 +02:00
|
|
|
const QRect optionRect = pOptions->rect;
|
|
|
|
|
|
|
|
/* Paint default background: */
|
|
|
|
- const QColor defaultColor = palette().color(QPalette::Active, QPalette::Midlight).darker(110);
|
|
|
|
+ const QColor defaultColor = palette().color(QPalette::Active, QPalette::Window).darker(110);
|
|
|
|
pPainter->fillRect(optionRect, defaultColor);
|
|
|
|
|
|
|
|
/* Restore painter: */
|
2020-09-09 15:44:15 +02:00
|
|
|
Index: VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGlobal.cpp
|
2019-04-05 16:49:14 +02:00
|
|
|
===================================================================
|
2020-09-09 15:44:15 +02:00
|
|
|
--- VirtualBox-6.1.14.orig/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGlobal.cpp
|
|
|
|
+++ VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGlobal.cpp
|
|
|
|
@@ -639,7 +639,7 @@ void UIChooserItemGlobal::paintBackgroun
|
2019-04-05 16:49:14 +02:00
|
|
|
pPainter->fillRect(rectangle, bgGrad);
|
|
|
|
#else
|
|
|
|
/* Prepare color: */
|
|
|
|
- QColor backgroundColor = pal.color(QPalette::Active, QPalette::Mid).lighter(160);
|
|
|
|
+ QColor backgroundColor = pal.color(QPalette::Active, QPalette::Window).lighter(160);
|
|
|
|
/* Draw gradient: */
|
|
|
|
pPainter->fillRect(rectangle, backgroundColor);
|
|
|
|
#endif
|
2020-09-09 15:44:15 +02:00
|
|
|
@@ -670,7 +670,7 @@ void UIChooserItemGlobal::paintFrame(QPa
|
2019-04-05 16:49:14 +02:00
|
|
|
strokeColor = pal.color(QPalette::Active, QPalette::Highlight).lighter(m_iHoverLightnessMin - 50);
|
|
|
|
/* Default frame: */
|
|
|
|
else
|
|
|
|
- strokeColor = pal.color(QPalette::Active, QPalette::Mid).lighter(m_iDefaultLightnessMin);
|
|
|
|
+ strokeColor = pal.color(QPalette::Active, QPalette::Window).lighter(m_iDefaultLightnessMin);
|
|
|
|
|
|
|
|
/* Create/assign pen: */
|
|
|
|
QPen pen(strokeColor);
|
2020-09-09 15:44:15 +02:00
|
|
|
Index: VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsGroup.cpp
|
2019-04-05 16:49:14 +02:00
|
|
|
===================================================================
|
2020-09-09 15:44:15 +02:00
|
|
|
--- VirtualBox-6.1.14.orig/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsGroup.cpp
|
|
|
|
+++ VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsGroup.cpp
|
|
|
|
@@ -283,7 +283,7 @@ void UIDetailsGroup::paintBackground(QPa
|
2019-04-05 16:49:14 +02:00
|
|
|
#ifdef VBOX_WS_MAC
|
|
|
|
const QColor defaultColor = palette().color(QPalette::Active, QPalette::Mid).lighter(145);
|
|
|
|
#else
|
|
|
|
- const QColor defaultColor = palette().color(QPalette::Active, QPalette::Mid).lighter(160);
|
|
|
|
+ const QColor defaultColor = palette().color(QPalette::Active, QPalette::Window).lighter(160);
|
|
|
|
#endif
|
|
|
|
pPainter->fillRect(optionRect, defaultColor);
|
|
|
|
|
2020-09-09 15:44:15 +02:00
|
|
|
Index: VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGroup.cpp
|
2019-04-05 16:49:14 +02:00
|
|
|
===================================================================
|
2020-09-09 15:44:15 +02:00
|
|
|
--- VirtualBox-6.1.14.orig/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGroup.cpp
|
|
|
|
+++ VirtualBox-6.1.14/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemGroup.cpp
|
|
|
|
@@ -1500,7 +1500,7 @@ void UIChooserItemGroup::paintBackground
|
2019-04-05 16:49:14 +02:00
|
|
|
const QPalette pal = palette();
|
|
|
|
const QColor headerColor = pal.color(QPalette::Active,
|
2020-01-20 21:15:41 +01:00
|
|
|
model()->selectedItems().contains(this) ?
|
2019-04-05 16:49:14 +02:00
|
|
|
- QPalette::Highlight : QPalette::Midlight);
|
|
|
|
+ QPalette::Highlight : QPalette::Button);
|
|
|
|
|
|
|
|
/* Root-item: */
|
|
|
|
if (isRoot())
|
2020-09-09 15:44:15 +02:00
|
|
|
@@ -1597,7 +1597,7 @@ void UIChooserItemGroup::paintFrame(QPai
|
2019-04-05 16:49:14 +02:00
|
|
|
const QPalette pal = palette();
|
|
|
|
const QColor strokeColor = pal.color(QPalette::Active,
|
2020-01-20 21:15:41 +01:00
|
|
|
model()->selectedItems().contains(this) ?
|
2019-04-05 16:49:14 +02:00
|
|
|
- QPalette::Highlight : QPalette::Midlight).darker(headerDarkness() + 10);
|
|
|
|
+ QPalette::Highlight : QPalette::Button).darker(headerDarkness() + 10);
|
|
|
|
|
|
|
|
/* Create/assign pen: */
|
|
|
|
QPen pen(strokeColor);
|