From 6ecef7608cef6eca46f3826404c7c422254aed9f Mon Sep 17 00:00:00 2001 From: Black Hat Date: Sun, 30 Sep 2018 19:04:22 +0800 Subject: [PATCH] Tweak UI. --- qml/form/RoomForm.qml | 3 ++- src/imageitem.cpp | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/qml/form/RoomForm.qml b/qml/form/RoomForm.qml index 78ca76b..57df8dd 100644 --- a/qml/form/RoomForm.qml +++ b/qml/form/RoomForm.qml @@ -103,7 +103,8 @@ Item { ListView { Layout.fillWidth: true Layout.fillHeight: true - Layout.margins: 16 + Layout.leftMargin: 16 + Layout.rightMargin: 16 id: messageListView diff --git a/src/imageitem.cpp b/src/imageitem.cpp index 18e1509..5590c0a 100644 --- a/src/imageitem.cpp +++ b/src/imageitem.cpp @@ -25,6 +25,8 @@ void ImageItem::paint(QPainter *painter) { int(bounding_rect.height())); painter->setPen(QPen(Qt::white, 2)); QFont font; + font.setStyleHint(QFont::SansSerif); + font.setPixelSize(int(bounding_rect.width() / 2)); font.setBold(true); painter->setFont(font);