better way to solve yesterday font problem, small visual avatar rendering fix
This commit is contained in:
parent
15fb4bbd62
commit
d4bf7e599a
9 changed files with 62 additions and 56 deletions
|
@ -42,6 +42,8 @@
|
|||
#include <QProcess>
|
||||
#include <QDesktopServices>
|
||||
#include <QRegularExpression>
|
||||
#include <QFont>
|
||||
#include <QFontMetrics>
|
||||
|
||||
namespace Shared {
|
||||
|
||||
|
@ -100,6 +102,14 @@ namespace Shared {
|
|||
static void setTheme(const QString& path);
|
||||
static void setStyle(const QString& style);
|
||||
const bool omemoSupport;
|
||||
QFont defaultFont;
|
||||
QFont smallFont;
|
||||
QFont headerFont;
|
||||
QFont titleFont;
|
||||
QFontMetrics defaultFontMetrics;
|
||||
QFontMetrics smallFontMetrics;
|
||||
QFontMetrics headerFontMetrics;
|
||||
QFontMetrics titleFontMetrics;
|
||||
|
||||
template<typename T>
|
||||
static T fromInt(int src);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue