mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps] Display app title in the title bar
Change-Id: I8cd8d09359e627a0915c99c13dc445027ec361e3
This commit is contained in:
@@ -3,20 +3,16 @@ extern "C" {
|
||||
#include <assert.h>
|
||||
}
|
||||
|
||||
/* Title Bar View */
|
||||
|
||||
void AppsWindow::TitleBarView::drawRect(KDContext * ctx, KDRect rect) const {
|
||||
ctx->fillRect(bounds(), KDColorBlack);
|
||||
}
|
||||
|
||||
/* Window */
|
||||
|
||||
AppsWindow::AppsWindow() :
|
||||
Window(),
|
||||
m_titleBarView(TitleBarView())
|
||||
{
|
||||
}
|
||||
|
||||
void AppsWindow::setTitle(const char * title) {
|
||||
m_titleBarView.setTitle(title);
|
||||
}
|
||||
|
||||
int AppsWindow::numberOfSubviews() const {
|
||||
return (m_contentView == nullptr ? 1 : 2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user