mirror of
https://github.com/enso-org/enso.git
synced 2024-12-26 18:03:31 +03:00
ffe6700901
Make it possible to parametrize the font in different instances of `ListView` via styles. This makes it possible for the Component Group view to use a `ListView` with `list_view::entry::Label` underneath with a different visual style than the default `ListView` used in other places in the IDE. https://www.pivotaltracker.com/story/show/182033743 #### Visuals This feature allows the Component Group visual component to use a proportional font for its entries, as seen in the `component_group` debug scene: <img width="180" alt="Screenshot 2022-05-02 at 14 50 46" src="https://user-images.githubusercontent.com/273837/166236411-1d139114-b099-4a10-8d44-48713d155d1e.png"> The other instances of ListView still use a monospaced font as before: <img width="152" alt="Screenshot 2022-04-29 at 14 45 57" src="https://user-images.githubusercontent.com/273837/165950535-6cffd0df-d84e-4f74-8d48-3114aea9fc68.png"> <img width="629" alt="Screenshot 2022-04-29 at 14 46 35" src="https://user-images.githubusercontent.com/273837/165950578-0439d078-0224-4138-b38f-4bb799b004aa.png"> The `text_area` debug scene works correctly: <img width="340" alt="Screenshot 2022-04-29 at 14 46 12" src="https://user-images.githubusercontent.com/273837/165950564-fbbde201-c5ad-448e-af3d-8a7494757932.png"> # Important Notes - Parsing `String` values into `style::Data` should now be done through the `FromStr` trait, instead of the `TryFrom<String>` trait as previously. (Note: the `String::parse` function in the Rust standard library uses the `FromStr` trait underneath.) [ci no changelog needed] |
||
---|---|---|
.. | ||
ast.rs | ||
bugs.rs | ||
crumbs.rs | ||
doc-gen.rs | ||
id_map.rs | ||
macros.rs | ||
parsing.rs | ||
web.rs |