mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 19:36:11 +00:00
Use system monospace font by default
This commit is contained in:
parent
c5331e1ebc
commit
6192a507ee
@ -1,6 +1,7 @@
|
||||
#include "Configuration.h"
|
||||
#include <QJsonObject>
|
||||
#include <QJsonArray>
|
||||
#include <QFontDatabase>
|
||||
|
||||
Configuration* Configuration::mPtr = nullptr;
|
||||
|
||||
@ -180,7 +181,9 @@ void Configuration::loadDarkTheme()
|
||||
|
||||
const QFont Configuration::getFont() const
|
||||
{
|
||||
QFont font = s.value("font", QFont("Monospace", 12)).value<QFont>();
|
||||
//QFont font = s.value("font", QFont("Monospace", 12)).value<QFont>();
|
||||
//QFont font = QFont("Monospace", 12);
|
||||
QFont font = QFontDatabase::systemFont(QFontDatabase::FixedFont);
|
||||
return font;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user