Adjust spacing

pull/7/head
cutefishd 5 years ago
parent 27e0cf1cd2
commit 5f222dca64

@ -35,7 +35,7 @@ Item {
if (containsMouse && control.popupText !== "") { if (containsMouse && control.popupText !== "") {
popupTips.popupText = control.popupText popupTips.popupText = control.popupText
popupTips.position = Qt.point(control.mapToGlobal(0, 0).x + (control.width / 2 - popupTips.width / 2), popupTips.position = Qt.point(control.mapToGlobal(0, 0).x + (control.width / 2 - popupTips.width / 2),
control.height + 1) control.height + FishUI.Units.smallSpacing)
popupTips.show() popupTips.show()
} else { } else {
popupTips.hide() popupTips.hide()

@ -92,7 +92,7 @@ Item {
spacing: 0 spacing: 0
property var itemSize: rootItem.height * 0.8 property var itemSize: rootItem.height * 0.8
property var itemWidth: itemSize + FishUI.Units.largeSpacing property var itemWidth: itemSize + FishUI.Units.smallSpacing
Layout.fillHeight: true Layout.fillHeight: true
Layout.preferredWidth: itemWidth * count Layout.preferredWidth: itemWidth * count
@ -180,6 +180,8 @@ Item {
// Battery Item // Battery Item
RowLayout { RowLayout {
visible: battery.available
Label { Label {
font.pointSize: 11 font.pointSize: 11
text: battery.chargePercent + "%" text: battery.chargePercent + "%"
@ -188,13 +190,11 @@ Item {
Image { Image {
id: batteryIcon id: batteryIcon
visible: battery.available && status === Image.Ready
height: rootItem.iconSize height: rootItem.iconSize
width: height + 6 width: height + 6
sourceSize: Qt.size(width, height) sourceSize: Qt.size(width, height)
source: "qrc:/images/" + (FishUI.Theme.darkMode ? "dark/" : "light/") + battery.iconSource source: "qrc:/images/" + (FishUI.Theme.darkMode ? "dark/" : "light/") + battery.iconSource
Layout.alignment: Qt.AlignCenter Layout.alignment: Qt.AlignCenter
asynchronous: true
} }
} }

Loading…
Cancel
Save