Commit 30893f8d authored by Devin Lin's avatar Devin Lin 🎨
Browse files

Use QFont::Normal (50) instead of -1 constant for default font weight

-1 is not a supported font weight: https://doc.qt.io/qt-5/qfont.html#Weight-enum
parent 23a1490b
......@@ -60,13 +60,13 @@ static const char GeneralId[] = "General";
static const char DefaultFont[] = "Noto Sans";
static const KFontData DefaultFontData[KFontSettingsData::FontTypesCount] = {
{ GeneralId, "font", DefaultFont, 10, -1, QFont::SansSerif, "Regular" },
{ GeneralId, "fixed", "Hack", 10, -1, QFont::Monospace, "Regular" },
{ GeneralId, "toolBarFont", DefaultFont, 10, -1, QFont::SansSerif, "Regular" },
{ GeneralId, "menuFont", DefaultFont, 10, -1, QFont::SansSerif, "Regular" },
{ "WM", "activeFont", DefaultFont, 10, -1, QFont::SansSerif, "Regular" },
{ GeneralId, "taskbarFont", DefaultFont, 10, -1, QFont::SansSerif, "Regular" },
{ GeneralId, "smallestReadableFont", DefaultFont, 8, -1, QFont::SansSerif, "Regular" }
{ GeneralId, "font", DefaultFont, 10, QFont::Normal, QFont::SansSerif, "Regular" },
{ GeneralId, "fixed", "Hack", 10, QFont::Normal, QFont::Monospace, "Regular" },
{ GeneralId, "toolBarFont", DefaultFont, 10, QFont::Normal, QFont::SansSerif, "Regular" },
{ GeneralId, "menuFont", DefaultFont, 10, QFont::Normal, QFont::SansSerif, "Regular" },
{ "WM", "activeFont", DefaultFont, 10, QFont::Normal, QFont::SansSerif, "Regular" },
{ GeneralId, "taskbarFont", DefaultFont, 10, QFont::Normal, QFont::SansSerif, "Regular" },
{ GeneralId, "smallestReadableFont", DefaultFont, 8, QFont::Normal, QFont::SansSerif, "Regular" }
};
QFont *KFontSettingsData::font(FontTypes fontType)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment