From b7ceff2589a703b4f8e0fd524cbd2176418f6a59 Mon Sep 17 00:00:00 2001 From: Papoteur Date: Tue, 5 Feb 2019 21:05:24 +0100 Subject: Buttons: center text vertically --- qml/mw-ui.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'qml/mw-ui.qml') diff --git a/qml/mw-ui.qml b/qml/mw-ui.qml index 30545c8..c47d94f 100644 --- a/qml/mw-ui.qml +++ b/qml/mw-ui.qml @@ -959,11 +959,12 @@ This is a background process and you will be able to use your computer normally color: view.currentIndex == index ? "#2397D4" : "white" } label: Label{ - anchors.verticalCenter: parent.verticalCenter + //anchors.verticalCenter: parent.verticalCenter text: itemModel.get(index).title - font.pointSize: 8 + font.pointSize: 9 color: view.currentIndex == index ? "white" : "#262F45" horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter wrapMode : Text.WordWrap } } -- cgit v1.2.1