mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 05:45:27 +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 "Configuration.h"
|
||||||
#include <QJsonObject>
|
#include <QJsonObject>
|
||||||
#include <QJsonArray>
|
#include <QJsonArray>
|
||||||
|
#include <QFontDatabase>
|
||||||
|
|
||||||
Configuration* Configuration::mPtr = nullptr;
|
Configuration* Configuration::mPtr = nullptr;
|
||||||
|
|
||||||
@ -180,7 +181,9 @@ void Configuration::loadDarkTheme()
|
|||||||
|
|
||||||
const QFont Configuration::getFont() const
|
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;
|
return font;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user