summary refs log tree commit diff
path: root/src/emoji
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-09-30 13:24:36 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-09-30 13:24:36 +0300
commit9038c950aef4a59cc9f928541cb20b010be9a8df (patch)
tree504b717640347d041253a3067248e5311da96da6 /src/emoji
parentRemove obsolete font/size setting (diff)
downloadnheko-9038c950aef4a59cc9f928541cb20b010be9a8df.tar.xz
Remove pixel value from fonts
Diffstat (limited to 'src/emoji')
-rw-r--r--src/emoji/Category.cpp4
-rw-r--r--src/emoji/ItemDelegate.cpp1
2 files changed, 2 insertions, 3 deletions
diff --git a/src/emoji/Category.cpp b/src/emoji/Category.cpp
index c1b526f2..fbfbf4fc 100644
--- a/src/emoji/Category.cpp
+++ b/src/emoji/Category.cpp
@@ -67,8 +67,8 @@ Category::Category(QString category, std::vector<Emoji> emoji, QWidget *parent)
                 itemModel_->appendRow(item);
         }
 
-        QFont font("Open Sans SemiBold");
-        font.setPixelSize(conf::fontSize);
+        QFont font;
+        font.setWeight(QFont::Medium);
 
         category_ = new QLabel(category, this);
         category_->setFont(font);
diff --git a/src/emoji/ItemDelegate.cpp b/src/emoji/ItemDelegate.cpp
index 2cc838e3..50a1b7ed 100644
--- a/src/emoji/ItemDelegate.cpp
+++ b/src/emoji/ItemDelegate.cpp
@@ -42,7 +42,6 @@ ItemDelegate::paint(QPainter *painter,
         auto emoji = index.data(Qt::UserRole).toString();
 
         QFont font("Emoji One");
-        font.setPixelSize(19);
 
         painter->setFont(font);
         painter->drawText(viewOption.rect, Qt::AlignCenter, emoji);