From 19f2ed05d743dab0c3ecca151ac29f147160b35b Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Tue, 8 Dec 2020 15:16:28 +0100 Subject: [PATCH] Dark Themes: Set the color for PaletteMid explicitly Apparently, on macOS, the value of QPalette::Mid is set in a different way than on the other OSes. Let's set it explicitly to ensure the same painting of wigdets with dark themes. The value PaletteMid=ffa0a0a0 was determined by manual trial and error, to ensure that it does not change anything on non-macOS. Fixes: QDS-3281 Change-Id: I7c044d3b41116e50b2c8a676f30a3b26019ad627 Reviewed-by: Thomas Hartmann --- share/qtcreator/themes/dark.creatortheme | 1 + share/qtcreator/themes/flat-dark.creatortheme | 1 + 2 files changed, 2 insertions(+) diff --git a/share/qtcreator/themes/dark.creatortheme b/share/qtcreator/themes/dark.creatortheme index 944256eeeaa..cbc51b2ef69 100644 --- a/share/qtcreator/themes/dark.creatortheme +++ b/share/qtcreator/themes/dark.creatortheme @@ -257,6 +257,7 @@ PaletteWindowDisabled=backgroundColorDisabled PaletteWindowTextDisabled=textDisabled PaletteBaseDisabled=backgroundColorDisabled PaletteTextDisabled=textDisabled +PaletteMid=ffa0a0a0 QmlDesigner_BackgroundColor=qmlDesignerButtonColor QmlDesigner_HighlightColor=ff46a2da diff --git a/share/qtcreator/themes/flat-dark.creatortheme b/share/qtcreator/themes/flat-dark.creatortheme index 89150801ff4..0d750afcf0d 100644 --- a/share/qtcreator/themes/flat-dark.creatortheme +++ b/share/qtcreator/themes/flat-dark.creatortheme @@ -275,6 +275,7 @@ PaletteWindowDisabled=backgroundColorDisabled PaletteWindowTextDisabled=textDisabled PaletteBaseDisabled=backgroundColorDisabled PaletteTextDisabled=textDisabled +PaletteMid=ffa0a0a0 [Flags] ComboBoxDrawTextShadow=false