// StellarX 星垣GUI框架 - 测试用例 #include"StellarX.h" #include #ifndef KEY #define KEY 4 #endif #if 5 == KEY int main() { StellarX::SxLogger::setGBK(); StellarX::SxLogger::Get().enableConsole(true); StellarX::SxLogger::Get().setMinLevel(StellarX::SxLogLevel::Debug); StellarX::SxLogger::Get().setLanguage(StellarX::SxLogLanguage::ZhCN); const COLORREF headerColor = RGB(232, 238, 245); const COLORREF nestedZoneColor = RGB(217, 233, 252); const COLORREF level1Color = RGB(224, 244, 255); const COLORREF level2Color = RGB(222, 244, 228); const COLORREF level3Color = RGB(255, 239, 215); const COLORREF tabZoneColor = RGB(220, 241, 240); const COLORREF behaviorZoneColor = RGB(243, 238, 214); const COLORREF overlayZoneColor = RGB(255, 228, 206); const COLORREF tableZoneColor = RGB(235, 226, 250); const COLORREF floatingColor = RGB(249, 224, 232); const COLORREF buttonFalseColor = RGB(246, 247, 249); const COLORREF buttonHoverColor = RGB(255, 225, 92); const COLORREF buttonTrueColor = RGB(236, 138, 88); Window win(1380, 880, 1, RGB(246, 248, 251), "StellarX KEY5 第二阶段专项回归"); auto configureTooltip = [](Button* button, const std::string& text) { button->enableTooltip(true); button->setTooltipDelay(120); button->setTooltipText(text); }; auto makeTestButton = [&](int x, int y, int width, int height, const std::string& text) { auto button = std::make_unique