Don't inherit system font style

This commit is contained in:
Ilya Fedin 2021-07-16 10:23:13 +04:00 committed by John Preston
parent ed6c2cb541
commit d922c3085a

View file

@ -8,6 +8,7 @@
#include "ui/style/style_core_font.h"
#include <QGuiApplication>
#include <QFontDatabase>
namespace style {
@ -33,7 +34,7 @@ QFont ResolveFont(uint32 flags, int size) {
const auto &custom = bold ? BoldFont : RegularFont;
const auto useCustom = !custom.family.isEmpty();
auto result = QFont();
auto result = QFont(QGuiApplication::font().family());
if (flags & FontMonospace) {
result.setFamily(MonospaceFont());
} else if (useCustom) {