Squash commits for public release
This commit is contained in:
24
userland/system/applist/AppDelegate.cpp
Normal file
24
userland/system/applist/AppDelegate.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#include "AppListView.h"
|
||||
#include "AppListViewController.h"
|
||||
#include "AppListWindow.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(320, 400); }
|
||||
|
||||
bool application() override
|
||||
{
|
||||
auto& window = std::xos::construct<AppListWindow>(window_size());
|
||||
window.set_bitmap_format(LG::PixelBitmapFormat::RGBA);
|
||||
auto& dock_view = window.create_superview<AppListView, AppListViewController>();
|
||||
return true;
|
||||
}
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
SET_APP_DELEGATE(AppDelegate);
|
||||
Reference in New Issue
Block a user