2026-10-26 22:51:25 +01:00
|
|
|
#include <FL/Fl.H>
|
2026-10-26 23:40:28 +01:00
|
|
|
#include <cstdio>
|
|
|
|
|
#include <cstdlib>
|
|
|
|
|
#include <exception>
|
2026-10-26 22:51:25 +01:00
|
|
|
#include "main_window.hpp"
|
|
|
|
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
|
{
|
2026-10-26 23:40:28 +01:00
|
|
|
try {
|
|
|
|
|
Fl::scheme("flat");
|
|
|
|
|
Fl::background(34, 36, 40);
|
|
|
|
|
Fl::background2(24, 26, 30);
|
|
|
|
|
Fl::foreground(230, 232, 236);
|
|
|
|
|
MainWindow window;
|
|
|
|
|
window.show(argc, argv);
|
|
|
|
|
return Fl::run();
|
|
|
|
|
} catch (const std::exception &error) {
|
|
|
|
|
std::fprintf(stderr, "GUI startup/runtime failure: %s\n", error.what());
|
|
|
|
|
} catch (...) {
|
|
|
|
|
std::fputs("Unexpected GUI startup/runtime failure.\n", stderr);
|
|
|
|
|
}
|
|
|
|
|
return EXIT_FAILURE;
|
2026-10-26 22:51:25 +01:00
|
|
|
}
|