mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Qt/Win32: Force Segoe UI
This commit is contained in:
parent
31efec623a
commit
ad21282379
@ -93,6 +93,17 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
QApplication app(argc, argv);
|
QApplication app(argc, argv);
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
// Force the default font to Segoe UI on Windows
|
||||||
|
QFont font = QApplication::font();
|
||||||
|
font.setFamily(QStringLiteral("Segoe UI"));
|
||||||
|
|
||||||
|
// The default font size is a bit too small
|
||||||
|
font.setPointSize(QFontInfo(font).pointSize() * 1.2);
|
||||||
|
|
||||||
|
QApplication::setFont(font);
|
||||||
|
#endif
|
||||||
|
|
||||||
auto parser = CommandLineParse::CreateParser(CommandLineParse::ParserOptions::IncludeGUIOptions);
|
auto parser = CommandLineParse::CreateParser(CommandLineParse::ParserOptions::IncludeGUIOptions);
|
||||||
const optparse::Values& options = CommandLineParse::ParseArguments(parser.get(), argc, argv);
|
const optparse::Values& options = CommandLineParse::ParseArguments(parser.get(), argc, argv);
|
||||||
const std::vector<std::string> args = parser->args();
|
const std::vector<std::string> args = parser->args();
|
||||||
|
Loading…
Reference in New Issue
Block a user