Use entity-specific glyphs in marketplace item tester

This commit is contained in:
Kerry Ivan Kurian 2018-09-24 21:15:08 -07:00
parent 697f556a60
commit 0a43c17ce0

View file

@ -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 {