mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[apps] Display the baterry icon view on the title bar
Change-Id: I3a1f2540151f7ecbfafaead346e673f694d8c0dd
This commit is contained in:
@@ -13,6 +13,11 @@ void AppsWindow::setTitle(const char * title) {
|
||||
m_titleBarView.setTitle(title);
|
||||
}
|
||||
|
||||
void AppsWindow::updateBatteryLevel() {
|
||||
// TODO: use Ion::Battery::level()
|
||||
m_titleBarView.setChargeState(Ion::Battery::Charge::EMPTY);
|
||||
}
|
||||
|
||||
int AppsWindow::numberOfSubviews() const {
|
||||
return (m_contentView == nullptr ? 1 : 2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user