Make font weights available as names #6740
Labels
a:widgets
Implementation of widgets (from std-widgets.slint) and their styles (mF,bS)
enhancement
New feature or request
font-weight: 700;
for bold etc. is not so intuitive. Would a new global singleton similar toPalette
be the right kind of container for a set of constants? Then you could writefont-weight: FontWeights.bold;
. A table of weight–name mappings is available on MDN.The text was updated successfully, but these errors were encountered: