Menu polish on OSX

This commit is contained in:
Bradley Austin Davis 2015-04-29 02:54:47 -07:00
parent 87ef98005d
commit 475c399d22

View file

@ -47,8 +47,8 @@ Item {
} }
} }
implicitHeight: label.implicitHeight + 4 implicitHeight: label.implicitHeight * 1.5
implicitWidth: label.implicitWidth + label.height * 2 implicitWidth: label.implicitWidth + label.height * 2.5
Timer { Timer {
id: timer id: timer
@ -60,13 +60,13 @@ Item {
FontAwesome { FontAwesome {
clip: true clip: true
id: check id: check
verticalAlignment: Text.AlignBottom verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
color: label.color color: label.color
text: checkText() text: checkText()
size: label.height size: label.height
font.pixelSize: size - 4 font.pixelSize: size
function checkText() { function checkText() {
if (!source || source.type != 1 || !source.checkable) { if (!source || source.type != 1 || !source.checkable) {
return "" return ""