mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-04-20 15:07:17 -04:00
Added phone mode widget to top bar. The widget is mutually exclusive with NAT widget. Phone mode is determined using phone mode observer.
24 lines
639 B
C++
24 lines
639 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"
|
|
#include "TopBar.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;
|
|
}
|
|
|
|
void TopBarManager::set(gui::top_bar::TimeMode timeMode)
|
|
{
|
|
topBarConfiguration.setTimeMode(timeMode);
|
|
}
|
|
} // namespace app
|