From d922c3085a826c3cbf0620d3fc57008219a64419 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Fri, 16 Jul 2021 10:23:13 +0400 Subject: [PATCH] Don't inherit system font style --- ui/style/style_core_custom_font.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/style/style_core_custom_font.cpp b/ui/style/style_core_custom_font.cpp index 570d169..825726f 100644 --- a/ui/style/style_core_custom_font.cpp +++ b/ui/style/style_core_custom_font.cpp @@ -8,6 +8,7 @@ #include "ui/style/style_core_font.h" +#include #include 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) {