fix: dock theme not follow system

reset dock dapplication palettetype to 0

log: as title
issue: https://github.com/linuxdeepin/developer-center/issues/7090
This commit is contained in:
tsic404 2024-01-25 15:47:23 +08:00 committed by deepin-bot[bot]
parent c0c909f9e8
commit 572c0c8aad

View File

@ -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);