Skip to content

Commit 013e1ca

Browse files
committed
Readable icon names
Signed-off-by: Daniel Kastl <[email protected]>
1 parent 2b7f1f1 commit 013e1ca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/gtt-setting.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ export const gtt_setting = ():void => {
1414
for (let i in glyph) {
1515
if (glyph[i].font == font) {
1616
const selected = selectedValue === i
17-
element.append(new Option(i, i, selected, selected))
17+
const words = i.split('_')
18+
const text = words.map((word) => {
19+
return word[0].toUpperCase() + word.substring(1)
20+
}).join(" ")
21+
element.append(new Option(text, i, selected, selected))
1822
if (selected) {
1923
element.nextElementSibling.className = "material-icons"
2024
element.nextElementSibling.textContent = i

0 commit comments

Comments
 (0)