enso/lib/rust
Mateusz Czapliński b7cf493f7d
Component Group View colors parametrization (#3434)
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]
2022-05-13 08:38:43 +00:00
..
automata Linting codebase 2022-03-10 05:32:33 +01:00
build-utils Linting codebase 2022-03-10 05:32:33 +01:00
callback Linting codebase 2022-03-10 05:32:33 +01:00
code-builder Linting codebase 2022-03-10 05:32:33 +01:00
config-reader Linting codebase 2022-03-10 05:32:33 +01:00
data-structures Linting codebase 2022-03-10 05:32:33 +01:00
debug-api Profiling batch mode (#3428) 2022-05-10 19:34:40 +00:00
ensogl Component Group View colors parametrization (#3434) 2022-05-13 08:38:43 +00:00
frp Fix blink when adding node (#3448) 2022-05-12 16:17:29 -07:00
fuzzly Linting codebase 2022-03-10 05:32:33 +01:00
generics Bump Rust toolchain to nightly-2022-04-07. (#3406) 2022-04-20 07:53:50 +00:00
json-rpc New profiling format (#3413) 2022-05-03 10:54:48 -07:00
launcher-shims Applying review 2022-03-10 05:57:59 +01:00
logger Selectable Header in Component Group View. (#3418) 2022-04-30 14:48:52 +00:00
macro-utils Linting codebase 2022-03-10 05:32:33 +01:00
optics Updating paste macro usage (#3334) 2022-03-22 11:43:14 +01:00
parser Fixing build. 2022-03-10 06:21:57 +01:00
prelude Profiling batch mode (#3428) 2022-05-10 19:34:40 +00:00
profiler Fix blink when adding node (#3448) 2022-05-12 16:17:29 -07:00
shapely Component Group View with static header and without icons (#3373) 2022-04-14 10:37:40 +00:00
shortcuts The EnsoGL Component abstraction with special dropping behavior (#3322) 2022-04-04 15:55:55 +00:00
text Linting codebase 2022-03-10 05:32:33 +01:00
types Bump Rust toolchain to nightly-2022-04-07. (#3406) 2022-04-20 07:53:50 +00:00
web Profiling batch mode (#3428) 2022-05-10 19:34:40 +00:00