Squash commits for public release

This commit is contained in:
2025-02-12 09:54:05 -05:00
commit 7118adc514
1108 changed files with 80873 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#include "ControlBar.h"
#include "../../Devices/Screen.h"
#include "../../Managers/Compositor.h"
#include <libg/ImageLoaders/PNGLoader.h>
namespace WinServer {
ControlBar* s_WinServer_ControlBar_the = nullptr;
ControlBar::ControlBar()
: m_bounds(0, Screen::the().bounds().height() - height(), Screen::the().bounds().width(), height())
{
s_WinServer_ControlBar_the = this;
LG::PNG::PNGLoader loader;
m_menu_icon = loader.load_from_file("/res/system/mobile/control.png");
int x = width() / 2 - m_menu_icon.width() / 2;
int y = Screen::the().bounds().height() - height() / 2 - m_menu_icon.height() / 2;
m_button_bounds = LG::Rect(x, y, m_menu_icon.width(), m_menu_icon.height());
}
} // namespace WinServer