From 572c0c8aad60da7c2f91669850edc94c16c9c326 Mon Sep 17 00:00:00 2001 From: tsic404 Date: Thu, 25 Jan 2024 15:47:23 +0800 Subject: [PATCH] fix: dock theme not follow system reset dock dapplication palettetype to 0 log: as title issue: https://github.com/linuxdeepin/developer-center/issues/7090 --- frame/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frame/main.cpp b/frame/main.cpp index 7ade34955..e4135618c 100644 --- a/frame/main.cpp +++ b/frame/main.cpp @@ -159,6 +159,10 @@ int main(int argc, char *argv[]) DockApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true); DockApplication app(argc, argv); + // NOTE: dde-shell load dde-dock plugins and mark loader program DS_APP_ID as dde-dock + // so need reset DGuiApplication pallette to follow system + DGuiApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::ColorType::UnknownType); + //崩溃信号 signal(SIGSEGV, sig_crash); signal(SIGILL, sig_crash);