/
githubmirror
/
x64dbg
Обзор
Документация
Войти
/
githubmirror
/
x64dbg
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
development
src/cross/debugger/main.cpp
25 строк
762 B
Duncan Ogilvie
Switch ElfBug to QDarkApplication
24 июл 2026, 18:12
24 июл 2026, 18:12
e10cdc3
Код
Авторство
О чём код?
#include <QDarkApplication.h> #include "gui/MainWindow.h" #include "CrossAccessible.h" int main(int argc, char* argv[]) { qRegisterMetaType<REGDUMP>("REGDUMP"); #ifndef QT_NO_ACCESSIBILITY QAccessible::installFactory(crossAccessibleInterfaceFactory); #endif QDarkApplication app(argc, argv); // Keep the debugger's dense data views while using the shared dark theme. QFont tableFont = Config()->Fonts["AbstractTableView"]; tableFont.setPointSize(9); for(const auto* fontName : {"AbstractTableView", "Disassembly", "HexDump", "Stack", "Registers", "Log"}) Config()->Fonts[fontName] = tableFont; MainWindow w; w.show(); QDarkApplication::applyDarkTitleBar(&w); return app.exec(); }