Skip to content

Commit 572c0c8

Browse files
tsic404deepin-bot[bot]
authored andcommitted
fix: dock theme not follow system
reset dock dapplication palettetype to 0 log: as title issue: linuxdeepin/developer-center#7090
1 parent c0c909f commit 572c0c8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

frame/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ int main(int argc, char *argv[])
159159
DockApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
160160
DockApplication app(argc, argv);
161161

162+
// NOTE: dde-shell load dde-dock plugins and mark loader program DS_APP_ID as dde-dock
163+
// so need reset DGuiApplication pallette to follow system
164+
DGuiApplicationHelper::instance()->setPaletteType(DGuiApplicationHelper::ColorType::UnknownType);
165+
162166
//崩溃信号
163167
signal(SIGSEGV, sig_crash);
164168
signal(SIGILL, sig_crash);

0 commit comments

Comments
 (0)