#include "ViewController.h"
#include <libui/AppDelegate.h>

class AppDelegate : public UI::AppDelegate {
public:
    AppDelegate() = default;
    virtual ~AppDelegate() = default;

    LG::Size preferred_desktop_window_size() const override { return LG::Size(220, 210); }
    const char* icon_path() const override { return "/res/icons/apps/activity_monitor.icon"; }

    virtual bool application() override
    {
        auto style = StatusBarStyle(LG::Color(222, 232, 227)).set_hide_text();
        auto& window = std::xos::construct<UI::Window>("Monitor", window_size(), icon_path(), style);
        auto& superview = window.create_superview<UI::View, ViewController>();
        return true;
    }

private:
};

SET_APP_DELEGATE(AppDelegate);
