mirror of
https://github.com/enso-org/enso.git
synced 2024-12-25 17:51:59 +03:00
b7cf493f7d
Parametrize the colors used in a Component Group view based on a single color passed to an FRP input. Customizing the colors of a Component Group will be needed for the larger Component Group List panel. This customization will work as a visual hint for the User, helping them to distinguish different Component Groups in the panel. A single input color will be configured for every Component Group in the `package.yaml` file (see the Design Doc). Therefore, all shades of the color required by the Component Group view must be calculated from this single input color. https://www.pivotaltracker.com/story/show/181725039 #### Visuals The following screencast of the `component_group` debug scene shows how all required shades of color are calculated from a single input color. It also shows a new "dimmed" display mode of the Component Group. The debug scene does not support selecting entries in a "dimmed" Component Group, as this is not required by the Design Doc. https://user-images.githubusercontent.com/273837/168074651-bf3d5ea5-99b0-4b69-9934-ad8565ffc54e.mov The following is a screenshot of the Node Searcher, to demonstrate that it still works correctly: <img width="623" alt="Screenshot 2022-05-09 at 17 13 01" src="https://user-images.githubusercontent.com/273837/167441109-e9a47b5a-45a2-4172-85ed-c593e43e02d6.png"> # Important Notes - A new type `Params` was added in the `list_view::entry::Entry` trait. This was needed to allow passing FRP information to entries separately for every ListView instance. - Note: `style_prefix` and `max_width_px` parameters of the `list_view::entry::Entry::new` function may get moved into the new `Params` type in the future. To save time, this was not attempted in this PR, as agreed with @farmaazon. [ci no changelog needed] |
||
---|---|---|
.. | ||
component-browser | ||
debug_scene | ||
graph-editor | ||
src | ||
welcome-screen | ||
Cargo.toml |