Yes, these are all scaled explicitly. I have been wondering about an 'auto' font size... So basically don't specify a font and then Layout just uses a font that fits into the available space.
Seems like a good plan, but it requires two passes, since you might lay out once to find out how much width you have, but then choose a bigger font which uses up more height and needs another layout
What are the thoughts for selecting a font (and color) from a palette
We now have themes in g.theme.fg/etc - so I think it's reasonable to just pull colors from there?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Yes, these are all scaled explicitly. I have been wondering about an 'auto' font size... So basically don't specify a font and then Layout just uses a font that fits into the available space.
Seems like a good plan, but it requires two passes, since you might lay out once to find out how much width you have, but then choose a bigger font which uses up more height and needs another layout
We now have themes in
g.theme.fg
/etc - so I think it's reasonable to just pull colors from there?