Tweak UI.

This commit is contained in:
Black Hat 2018-09-30 19:04:22 +08:00
parent 57f04cf308
commit 6ecef7608c
2 changed files with 4 additions and 1 deletions

View File

@ -103,7 +103,8 @@ Item {
ListView {
Layout.fillWidth: true
Layout.fillHeight: true
Layout.margins: 16
Layout.leftMargin: 16
Layout.rightMargin: 16
id: messageListView

View File

@ -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);