Skip to content

Commit

Permalink
fix: dock theme not follow system
Browse files Browse the repository at this point in the history
reset dock dapplication palettetype to 0

log: as title
issue: linuxdeepin/developer-center#7090
  • Loading branch information
tsic404 authored and deepin-bot[bot] committed Jan 25, 2024
1 parent c0c909f commit 572c0c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frame/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 572c0c8

Please sign in to comment.