summary refs log tree commit diff
path: root/src/ui
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2021-08-01 10:51:21 +0000
committerGitHub <noreply@github.com>2021-08-01 10:51:21 +0000
commit619525e62f55ca683b4a8be7a8868bc42d7edc4e (patch)
treed6f9ca51c9ad043ff58a6dac3cebd14aeecaaf8e /src/ui
parentAdd option to only send encrypted messages to verified devices (diff)
parentFix colors for manual dark theme (diff)
downloadnheko-619525e62f55ca683b4a8be7a8868bc42d7edc4e.tar.xz
Merge pull request #662 from LorenDB/qml-all-the-things
QML all the things, part 3: Raw message dialog
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/NhekoGlobalObject.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/NhekoGlobalObject.h b/src/ui/NhekoGlobalObject.h

index 14135fd1..cfe982c5 100644 --- a/src/ui/NhekoGlobalObject.h +++ b/src/ui/NhekoGlobalObject.h
@@ -4,6 +4,7 @@ #pragma once +#include <QFontDatabase> #include <QObject> #include <QPalette> @@ -38,6 +39,10 @@ public: int paddingLarge() const { return 20; } UserProfile *currentUser() const; + Q_INVOKABLE QFont monospaceFont() const + { + return QFontDatabase::systemFont(QFontDatabase::FixedFont); + } Q_INVOKABLE void openLink(QString link) const; Q_INVOKABLE void setStatusMessage(QString msg) const; Q_INVOKABLE void showUserSettingsPage() const;