xtc/src/gui/main.cpp

23 lines
626 B
C++
Raw Normal View History

2026-10-26 22:51:25 +01:00
#include <FL/Fl.H>
#include <cstdio>
#include <cstdlib>
#include <exception>
2026-10-26 22:51:25 +01:00
#include "main_window.hpp"
int main(int argc, char **argv)
{
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
}