diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-08-25 09:07:21 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-08-25 09:07:21 +0200 |
| commit | 94141dbd7c1450d079f695d0e8d73e93795161f2 (patch) | |
| tree | d538ee3515bfa93bfcd5c3eaaf59a6164538f806 /dev/ZKA/Sources | |
| parent | fa6cc3970bc61e8061a279e8573a61bd4e947f2f (diff) | |
[CG/FUI] CG's FlatUI library, made for pre-boot/pre-user environements.
- FlatUI is used to install ZKA for example.
- Or to indicate an error (using the ke_stop call).
- Or to show a popup saying that system couldn't boot.
The FlatUI's style will be replicated in user space as well, for
consistency.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/ZKA/Sources')
| -rw-r--r-- | dev/ZKA/Sources/DLLMain.cxx | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/dev/ZKA/Sources/DLLMain.cxx b/dev/ZKA/Sources/DLLMain.cxx index b3bcd48c..c8db0c29 100644 --- a/dev/ZKA/Sources/DLLMain.cxx +++ b/dev/ZKA/Sources/DLLMain.cxx @@ -26,8 +26,19 @@ #include <Modules/CoreCG/WindowRenderer.hxx> #include <KernelKit/Timer.hxx> +/***********************************************************************************/ +/* Returns kernel's version. */ +/***********************************************************************************/ + EXTERN Kernel::Property cKernelVersion; +/***********************************************************************************/ +/* This is an external C symbol. */ +/***********************************************************************************/ + +EXTERN_C Kernel::Void _hal_init_mouse(); +EXTERN_C Kernel::Boolean _hal_draw_mouse(); + namespace Kernel::Detail { /// @brief Filesystem auto formatter, additional checks are also done by the class. @@ -198,8 +209,9 @@ EXTERN_C Kernel::Void ke_dll_entrypoint(Kernel::Void) CGFini(); - auto root_zka_wnd = CG::CGCreateWindow(CG::cWndFlagWindow, "ZKA Setup", "Window", 0, 0, CG::UIAccessibilty::The().Height() - 20, CG::UIAccessibilty::The().Width() - 20); + auto root_zka_wnd = CG::CGCreateWindow(CG::cWndFlagWindow, "ZKA Setup", "Window", 0, 0, 512, 256); + root_zka_wnd->w_sub_type = CG::cWndFlagCloseControlSelect; root_zka_wnd->w_x = 10; root_zka_wnd->w_y = 10; @@ -208,10 +220,10 @@ EXTERN_C Kernel::Void ke_dll_entrypoint(Kernel::Void) /// Now run kernel loop, until no process are running. Kernel::Detail::FilesystemInstaller(); // automatic filesystem creation. - auto root_install_wnd = CG::CGCreateWindow(CG::cWndFlagButton, "Install ZKA.", "Button", 0, 0, 128, 32); + auto root_install_wnd = CG::CGCreateWindow(CG::cWndFlagButtonSelect, "Install Now.", "Button", 0, 0, 128, 32); - root_install_wnd->w_x = 30; - root_install_wnd->w_y = 60; + root_install_wnd->w_x = 512 - 128; + root_install_wnd->w_y = 256 - 32; root_install_wnd->w_needs_repaint = Yes; |
