MCPcopy Create free account
hub / github.com/audacity/audacity / OnThemeChange

Method OnThemeChange

src/ProjectWindow.cpp:650–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

648}
649
650void ProjectWindow::OnThemeChange(ThemeChangeMessage message)
651{
652 auto pProject = FindProject();
653 if (!pProject)
654 return;
655 auto &project = *pProject;
656
657 if (message.appearance)
658 return;
659 this->ApplyUpdatedTheme();
660 auto &toolManager = ToolManager::Get( project );
661 toolManager.ForEach([](auto pToolBar){
662 if( pToolBar )
663 pToolBar->ReCreateButtons();
664 });
665}
666
667void ProjectWindow::UpdatePrefs()
668{

Callers

nothing calls this directly

Calls 4

ApplyUpdatedThemeMethod · 0.95
GetFunction · 0.85
ForEachMethod · 0.80
ReCreateButtonsMethod · 0.45

Tested by

no test coverage detected