This commit is contained in:
朱子楚\zhuzi
2024-04-04 01:10:14 +08:00
parent ef96618151
commit fe08b08c1f
24 changed files with 53 additions and 47 deletions

View File

@ -149,11 +149,6 @@ void FluentUI::registerTypes(const char *uri){
}
void FluentUI::initializeEngine(QQmlEngine *engine, const char *uri){
#ifdef Q_OS_WIN
QFont font;
font.setFamily("微软雅黑");
QGuiApplication::setFont(font);
#endif
engine->rootContext()->setContextProperty("FluApp",FluApp::getInstance());
engine->rootContext()->setContextProperty("FluColors",FluColors::getInstance());
engine->rootContext()->setContextProperty("FluTheme",FluTheme::getInstance());