diff --git a/src/kernel/dguiapplicationhelper.cpp b/src/kernel/dguiapplicationhelper.cpp index b727b789..a7a4224b 100644 --- a/src/kernel/dguiapplicationhelper.cpp +++ b/src/kernel/dguiapplicationhelper.cpp @@ -491,6 +491,13 @@ DPalette DGuiApplicationHelper::standardPalette(DGuiApplicationHelper::ColorType QPalette::ColorRole role = static_cast(i); QColor color = qcolor_list[i]; +#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0) + if (role == QPalette::PlaceholderText) { + // 5.15新添加此颜色 这里使用5.11的颜色保证效果与5.11对齐 + color = dcolor_list[DPalette::PlaceholderText]; + continue; + } +#endif // 处理半透明色 if (DGuiApplicationHelperPrivate::compositingColor) { switch (role) {