Tweak level-up and home buttons

This commit is contained in:
David Rowe 2016-05-13 17:39:15 +12:00
parent 8f214a6b14
commit 3b34b908d7
2 changed files with 9 additions and 0 deletions

View file

@ -19,6 +19,7 @@ Original.Button {
property int color: 0
property int colorScheme: hifi.colorSchemes.light
property string glyph: ""
property int size: 32
width: 120
height: 28
@ -65,7 +66,13 @@ Original.Button {
: hifi.buttons.disabledTextColor[control.colorScheme]
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
anchors {
// Tweak horizontal alignment so that it looks right.
left: parent.left
leftMargin: -0.5
}
text: control.glyph
size: control.size
}
}
}

View file

@ -99,6 +99,7 @@ ModalWindow {
id: upButton
glyph: hifi.glyphs.levelUp
width: height
size: 30
enabled: model.parentFolder && model.parentFolder !== ""
onClicked: d.navigateUp();
}
@ -107,6 +108,7 @@ ModalWindow {
id: homeButton
property var destination: helper.home();
glyph: hifi.glyphs.home
size: 28
width: height
enabled: d.homeDestination ? true : false
onClicked: d.navigateHome();