mirror of
https://github.com/lubosz/overte.git
synced 2025-04-14 03:06:20 +02:00
Use entity-specific glyphs in marketplace item tester
This commit is contained in:
parent
697f556a60
commit
0a43c17ce0
1 changed files with 15 additions and 6 deletions
|
@ -188,13 +188,22 @@ Rectangle {
|
|||
}
|
||||
|
||||
Repeater {
|
||||
model: [
|
||||
{ "name": "forward", "glyph": hifi.glyphs.forward, "size": 30 },
|
||||
{ "name": "trash", "glyph": hifi.glyphs.trash, "size": 22}
|
||||
]
|
||||
model: [ "forward", "trash" ]
|
||||
|
||||
HifiStylesUit.HiFiGlyphs {
|
||||
text: modelData.glyph
|
||||
size: modelData.size
|
||||
property var glyphs: {
|
||||
"application": hifi.glyphs.install,
|
||||
"avatar": hifi.glyphs.avatar,
|
||||
"content set": hifi.glyphs.globe,
|
||||
"entity": hifi.glyphs.wand,
|
||||
"trash": hifi.glyphs.trash,
|
||||
"unknown": hifi.glyphs.circleSlash,
|
||||
"wearable": hifi.glyphs.hat,
|
||||
}
|
||||
text: (("trash" == modelData) ?
|
||||
glyphs.trash :
|
||||
glyphs[comboBox.model[comboBox.currentIndex]])
|
||||
size: ("trash" == modelData) ? 22 : 30
|
||||
color: hifi.colors.black
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
MouseArea {
|
||||
|
|
Loading…
Reference in a new issue