Don't inherit system font style
This commit is contained in:
parent
ed6c2cb541
commit
d922c3085a
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue