Add a display server and graphical user interface #38

Merged
apio merged 103 commits from display-server into main 2023-09-20 18:49:21 +00:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit 4d068beaaf - Show all commits

View File

@ -42,7 +42,7 @@ Result<int> luna_main(int argc, char** argv)
ColorWidget blue(ui::BLUE);
layout.add_widget(blue);
ui::HorizontalLayout sublayout;
ui::HorizontalLayout sublayout(ui::AdjustHeight::No, ui::AdjustWidth::Yes);
layout.add_widget(sublayout);
ColorWidget red(ui::RED);

View File

@ -94,6 +94,7 @@ namespace ui
Result<void> Window::draw()
{
m_canvas.fill(m_background);
if (m_main_widget) return m_main_widget->draw(m_canvas);
update();
return {};