mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-16 01:14:17 +02:00
Tweak level-up and home buttons
This commit is contained in:
parent
8f214a6b14
commit
3b34b908d7
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue