Files
MuditaOS/module-apps/TopBarManager.cpp
Piotr Tański 4c61595a27 [EGD-4801] Add application-wide top bar manager
Applications configure the top bar once for all their windows.
Sometimes, windows need to configure top bars with its configuration.
2021-01-21 10:46:57 +01:00

18 lines
492 B
C++

// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include "TopBarManager.hpp"
namespace app
{
void TopBarManager::enableIndicators(const gui::top_bar::Indicators &indicators)
{
topBarConfiguration.enable(indicators);
}
auto TopBarManager::getConfiguration() const noexcept -> const gui::top_bar::Configuration &
{
return topBarConfiguration;
}
} // namespace app