Mateusz Czapliński
|
ffe6700901
|
Parametrize font in List View via styles (#3427)
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]
|
2022-05-04 10:44:57 +00:00 |
|
Wojciech Danilo
|
55dce7af65
|
Fixing build.
|
2022-03-10 06:21:57 +01:00 |
|
Wojciech Danilo
|
2accb722a8
|
Applying review
|
2022-03-10 05:57:59 +01:00 |
|
Wojciech Danilo
|
73f33d1c7f
|
Linting codebase
|
2022-03-10 05:32:33 +01:00 |
|
Adam Obuchowicz
|
c68ac5c0d6
|
Integration Test Framework (#3257)
|
2022-02-11 13:19:02 +01:00 |
|
Adam Obuchowicz
|
9ab4f45e72
|
Refactored enso-data crate and text utilities. (#3166)
|
2021-11-25 11:45:42 +01:00 |
|
Adam Obuchowicz
|
bb3b145af5
|
Refactor gui/src/rust/ide to two app/gui and app/ide-desktop (#3157)
|
2021-11-16 10:04:56 +01:00 |
|