Split HButton components, add HMenu/HMenuItem

This commit is contained in:
miruka
2019-08-21 15:45:13 -04:00
parent 6067c8ec96
commit ed96409645
13 changed files with 129 additions and 65 deletions

View File

@@ -71,7 +71,7 @@ HRectangle {
HButton {
id: button
text: modelData.text
iconName: modelData.iconName
icon.name: modelData.iconName
onClicked: buttonCallbacks[modelData.name](button)
Layout.preferredHeight: theme.baseElementsHeight

View File

@@ -75,8 +75,8 @@ HRectangle {
]
HButton {
backgroundColor: "transparent"
iconName: "room-view-" + modelData
ico.dimension: 22
icon.name: "room-view-" + modelData
iconItem.dimension: 22
height: parent.height
autoExclusive: true
checked: activeButton == modelData
@@ -101,7 +101,7 @@ HRectangle {
visible: opacity > 0
backgroundColor: "transparent"
iconName: "reduced-room-buttons"
icon.name: "reduced-room-buttons"
Behavior on opacity {
HNumberAnimation { duration: buttonsAnimation.duration * 2 }