Fix font size

pull/18/head
reionwong 4 years ago
parent 83322037f5
commit addb721cf8

@ -160,6 +160,7 @@ Item {
id: _actionText id: _actionText
anchors.centerIn: parent anchors.centerIn: parent
color: rootItem.textColor color: rootItem.textColor
font.pointSize: rootItem.height ? rootItem.height / 3 : 1
text: { text: {
var text = activeMenu var text = activeMenu
text = text.replace(/([^&]*)&(.)([^&]*)/g, function (match, p1, p2, p3) { text = text.replace(/([^&]*)&(.)([^&]*)/g, function (match, p1, p2, p3) {

@ -87,7 +87,7 @@ void StatusBar::updateGeometry()
emit screenRectChanged(); emit screenRectChanged();
} }
QRect windowRect = QRect(rect.x(), rect.y(), rect.width(), 28); QRect windowRect = QRect(rect.x(), rect.y(), rect.width(), 25);
setGeometry(windowRect); setGeometry(windowRect);
updateViewStruts(); updateViewStruts();

Loading…
Cancel
Save