mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 23:46:26 +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 color: 0
|
||||||
property int colorScheme: hifi.colorSchemes.light
|
property int colorScheme: hifi.colorSchemes.light
|
||||||
property string glyph: ""
|
property string glyph: ""
|
||||||
|
property int size: 32
|
||||||
|
|
||||||
width: 120
|
width: 120
|
||||||
height: 28
|
height: 28
|
||||||
|
@ -65,7 +66,13 @@ Original.Button {
|
||||||
: hifi.buttons.disabledTextColor[control.colorScheme]
|
: hifi.buttons.disabledTextColor[control.colorScheme]
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
anchors {
|
||||||
|
// Tweak horizontal alignment so that it looks right.
|
||||||
|
left: parent.left
|
||||||
|
leftMargin: -0.5
|
||||||
|
}
|
||||||
text: control.glyph
|
text: control.glyph
|
||||||
|
size: control.size
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -99,6 +99,7 @@ ModalWindow {
|
||||||
id: upButton
|
id: upButton
|
||||||
glyph: hifi.glyphs.levelUp
|
glyph: hifi.glyphs.levelUp
|
||||||
width: height
|
width: height
|
||||||
|
size: 30
|
||||||
enabled: model.parentFolder && model.parentFolder !== ""
|
enabled: model.parentFolder && model.parentFolder !== ""
|
||||||
onClicked: d.navigateUp();
|
onClicked: d.navigateUp();
|
||||||
}
|
}
|
||||||
|
@ -107,6 +108,7 @@ ModalWindow {
|
||||||
id: homeButton
|
id: homeButton
|
||||||
property var destination: helper.home();
|
property var destination: helper.home();
|
||||||
glyph: hifi.glyphs.home
|
glyph: hifi.glyphs.home
|
||||||
|
size: 28
|
||||||
width: height
|
width: height
|
||||||
enabled: d.homeDestination ? true : false
|
enabled: d.homeDestination ? true : false
|
||||||
onClicked: d.navigateHome();
|
onClicked: d.navigateHome();
|
||||||
|
|
Loading…
Reference in a new issue