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

@@ -51,7 +51,7 @@ HTileDelegate {
HButton {
id: expand
iconName: "expand"
icon.name: "expand"
backgroundColor: "transparent"
padding: sidePane.currentSpacing / 1.5
rightPadding: leftPadding
@@ -60,9 +60,9 @@ HTileDelegate {
visible: opacity > 0
opacity: accountDelegate.forceExpand ? 0 : 1
ico.transform: Rotation {
origin.x: expand.ico.dimension / 2
origin.y: expand.ico.dimension / 2
iconItem.transform: Rotation {
origin.x: expand.iconItem.dimension / 2
origin.y: expand.iconItem.dimension / 2
angle: collapsed ? 180 : 90
Behavior on angle { HNumberAnimation {} }

View File

@@ -12,7 +12,7 @@ HRowLayout {
Layout.preferredHeight: theme.baseElementsHeight
HButton {
iconName: "add-account"
icon.name: "add-account"
backgroundColor: theme.sidePane.settingsButton.background
onClicked: pageLoader.showPage("SignIn")