diff --git a/resources/themes/Blend of Gray/palette.txt b/resources/themes/Blend of Gray/palette.txt
index 990af3fd03cc..ec0553bb0417 100644
--- a/resources/themes/Blend of Gray/palette.txt
+++ b/resources/themes/Blend of Gray/palette.txt
@@ -1,6 +1,6 @@
0:#0e0e0e
2:#727272
-5:#373737
+5:#929292
6:#0e0e0e
9:#b2b2b2
10:#373737
diff --git a/src/ui/layout/qgslayout3dmapwidgetbase.ui b/src/ui/layout/qgslayout3dmapwidgetbase.ui
index 1ae55f27435f..27cd42114590 100644
--- a/src/ui/layout/qgslayout3dmapwidgetbase.ui
+++ b/src/ui/layout/qgslayout3dmapwidgetbase.ui
@@ -38,7 +38,7 @@
- padding: 2px; font-weight: bold; background-color: rgb(200, 200, 200);
+ padding: 2px; font-weight: bold; background-color: palette(mid);
3D Map
diff --git a/src/ui/layout/qgslayoutattributetablewidgetbase.ui b/src/ui/layout/qgslayoutattributetablewidgetbase.ui
index 1e50033305bc..53a65b8e67c4 100644
--- a/src/ui/layout/qgslayoutattributetablewidgetbase.ui
+++ b/src/ui/layout/qgslayoutattributetablewidgetbase.ui
@@ -38,7 +38,7 @@
- padding: 2px; font-weight: bold; background-color: rgb(200, 200, 200);
+ padding: 2px; font-weight: bold; background-color: palette(mid);
Attribute table
diff --git a/src/ui/layout/qgslayoutelevationprofilewidgetbase.ui b/src/ui/layout/qgslayoutelevationprofilewidgetbase.ui
index e0e097ad625b..792e2482b641 100644
--- a/src/ui/layout/qgslayoutelevationprofilewidgetbase.ui
+++ b/src/ui/layout/qgslayoutelevationprofilewidgetbase.ui
@@ -44,7 +44,7 @@
- padding: 2px; font-weight: bold; background-color: rgb(200, 200, 200);
+ padding: 2px; font-weight: bold; background-color: palette(mid);
Elevation Profile
diff --git a/src/ui/layout/qgslayouthtmlwidgetbase.ui b/src/ui/layout/qgslayouthtmlwidgetbase.ui
index c69e89806787..955cc0bdb6a7 100644
--- a/src/ui/layout/qgslayouthtmlwidgetbase.ui
+++ b/src/ui/layout/qgslayouthtmlwidgetbase.ui
@@ -38,7 +38,7 @@
- padding: 2px; font-weight: bold; background-color: rgb(200, 200, 200);
+ padding: 2px; font-weight: bold; background-color: palette(mid);
HTML frame
diff --git a/src/ui/layout/qgslayoutlabelwidgetbase.ui b/src/ui/layout/qgslayoutlabelwidgetbase.ui
index 4fc846bd309b..1804cbcbf2f9 100644
--- a/src/ui/layout/qgslayoutlabelwidgetbase.ui
+++ b/src/ui/layout/qgslayoutlabelwidgetbase.ui
@@ -44,7 +44,7 @@
- padding: 2px; font-weight: bold; background-color: rgb(200, 200, 200);
+ padding: 2px; font-weight: bold; background-color: palette(mid);
Label
diff --git a/src/ui/layout/qgslayoutlegendwidgetbase.ui b/src/ui/layout/qgslayoutlegendwidgetbase.ui
index 717e898d73ce..99a777a8459f 100644
--- a/src/ui/layout/qgslayoutlegendwidgetbase.ui
+++ b/src/ui/layout/qgslayoutlegendwidgetbase.ui
@@ -44,7 +44,7 @@
- padding: 2px; font-weight: bold; background-color: rgb(200, 200, 200);
+ padding: 2px; font-weight: bold; background-color: palette(mid);
Legend
diff --git a/src/ui/layout/qgslayoutmanualtablewidgetbase.ui b/src/ui/layout/qgslayoutmanualtablewidgetbase.ui
index 70dd58163e9a..9f4c9c4f620e 100644
--- a/src/ui/layout/qgslayoutmanualtablewidgetbase.ui
+++ b/src/ui/layout/qgslayoutmanualtablewidgetbase.ui
@@ -38,7 +38,7 @@
- padding: 2px; font-weight: bold; background-color: rgb(200, 200, 200);
+ padding: 2px; font-weight: bold; background-color: palette(mid);
Table
diff --git a/src/ui/layout/qgslayoutmapwidgetbase.ui b/src/ui/layout/qgslayoutmapwidgetbase.ui
index 5fcb92de6847..5a8598f45ece 100644
--- a/src/ui/layout/qgslayoutmapwidgetbase.ui
+++ b/src/ui/layout/qgslayoutmapwidgetbase.ui
@@ -44,7 +44,7 @@
- padding: 2px; font-weight: bold; background-color: rgb(200, 200, 200);
+ padding: 2px; font-weight: bold; background-color: palette(mid);
Map
diff --git a/src/ui/layout/qgslayoutmarkerwidgetbase.ui b/src/ui/layout/qgslayoutmarkerwidgetbase.ui
index f38ae9f1efe6..eaaf0f20d1dd 100644
--- a/src/ui/layout/qgslayoutmarkerwidgetbase.ui
+++ b/src/ui/layout/qgslayoutmarkerwidgetbase.ui
@@ -38,7 +38,7 @@
- padding: 2px; font-weight: bold; background-color: rgb(200, 200, 200);
+ padding: 2px; font-weight: bold; background-color: palette(mid);
Marker
diff --git a/src/ui/layout/qgslayoutpagepropertieswidget.ui b/src/ui/layout/qgslayoutpagepropertieswidget.ui
index a0eef384a580..3ff07d2aff80 100644
--- a/src/ui/layout/qgslayoutpagepropertieswidget.ui
+++ b/src/ui/layout/qgslayoutpagepropertieswidget.ui
@@ -38,7 +38,7 @@
- padding: 2px; font-weight: bold; background-color: rgb(200, 200, 200);
+ padding: 2px; font-weight: bold; background-color: palette(mid);
Page
diff --git a/src/ui/layout/qgslayoutpicturewidgetbase.ui b/src/ui/layout/qgslayoutpicturewidgetbase.ui
index 98b3e56b0ea5..31c4c49e90e9 100644
--- a/src/ui/layout/qgslayoutpicturewidgetbase.ui
+++ b/src/ui/layout/qgslayoutpicturewidgetbase.ui
@@ -44,7 +44,7 @@
- padding: 2px; font-weight: bold; background-color: rgb(200, 200, 200);
+ padding: 2px; font-weight: bold; background-color: palette(mid);
Picture
diff --git a/src/ui/layout/qgslayoutpolygonwidgetbase.ui b/src/ui/layout/qgslayoutpolygonwidgetbase.ui
index 0a9f1e15b119..e0c1df8028d2 100644
--- a/src/ui/layout/qgslayoutpolygonwidgetbase.ui
+++ b/src/ui/layout/qgslayoutpolygonwidgetbase.ui
@@ -38,7 +38,7 @@
- padding: 2px; font-weight: bold; background-color: rgb(200, 200, 200);
+ padding: 2px; font-weight: bold; background-color: palette(mid);
Polygon
diff --git a/src/ui/layout/qgslayoutpolylinewidgetbase.ui b/src/ui/layout/qgslayoutpolylinewidgetbase.ui
index 2d19c624eb26..87f2ef1bb3a6 100644
--- a/src/ui/layout/qgslayoutpolylinewidgetbase.ui
+++ b/src/ui/layout/qgslayoutpolylinewidgetbase.ui
@@ -38,7 +38,7 @@
- padding: 2px; font-weight: bold; background-color: rgb(200, 200, 200);
+ padding: 2px; font-weight: bold; background-color: palette(mid);
Polyline
diff --git a/src/ui/layout/qgslayoutscalebarwidgetbase.ui b/src/ui/layout/qgslayoutscalebarwidgetbase.ui
index 8f470c2ab5a5..b1d587acca21 100644
--- a/src/ui/layout/qgslayoutscalebarwidgetbase.ui
+++ b/src/ui/layout/qgslayoutscalebarwidgetbase.ui
@@ -44,7 +44,7 @@
- padding: 2px; font-weight: bold; background-color: rgb(200, 200, 200);
+ padding: 2px; font-weight: bold; sbackground-color: palette(mid);
Scalebar
diff --git a/src/ui/layout/qgslayoutshapewidgetbase.ui b/src/ui/layout/qgslayoutshapewidgetbase.ui
index e2ff3f2064cd..7dd55e8a37a0 100644
--- a/src/ui/layout/qgslayoutshapewidgetbase.ui
+++ b/src/ui/layout/qgslayoutshapewidgetbase.ui
@@ -38,7 +38,7 @@
- padding: 2px; font-weight: bold; background-color: rgb(200, 200, 200);
+ padding: 2px; font-weight: bold; background-color: palette(mid);
Shape