2nd font
This commit is contained in:
parent
169b067050
commit
c0a8d29119
3 changed files with 5107 additions and 3 deletions
5105
src/cg/06-font.cg
5105
src/cg/06-font.cg
File diff suppressed because it is too large
Load diff
|
|
@ -84,7 +84,7 @@ fontEditor = config \
|
|||
h = headerHeight,
|
||||
key = "new-glyph-button",
|
||||
label = "New Glyph",
|
||||
onSubmit = key \ rebindAt [...c.path, "glyphs", key] { w = 7, h = 12, map = [] }
|
||||
onSubmit = key \ rebindAt [...c.path, "glyphs", key] { w = 5, h = 12, map = [] }
|
||||
}
|
||||
]
|
||||
};
|
||||
|
|
|
|||
|
|
@ -54,7 +54,8 @@ treeNode = config \
|
|||
|
||||
simple = path content color onClick \
|
||||
selected = (config.selectedPath | Some p \ p == path | None \ False);
|
||||
inner = ui.text { content = content, color = (selected | True \ "white" | False \ color) };
|
||||
# inner = ui.text { content = content, color = (selected | True \ "white" | False \ color) };
|
||||
inner = renderText { scale = 1, content = content, color = (selected | True \ "white" | False \ color) };
|
||||
wrapped = (onClick
|
||||
| Some handler \ ui.clickable { onClick = handler, child = inner }
|
||||
| None \ inner);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue