Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add enhanced enum functions to FlexScheme to get its associated data and colors #210

Open
rydmike opened this issue Oct 24, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request package Report concerns the FlexColorScheme core package planned This issue is being planned and will be addressed in a later release V8 This issue concerns version 8 and will be addressed in it
Milestone

Comments

@rydmike
Copy link
Owner

rydmike commented Oct 24, 2023

Add enhanced enum functions data and colors to the FlexScheme enum, that returns the predefined FlexSchemeData and FlexSchemeColor respectively, that are associated with a given enum value.

This can be done already using the FlexColor.schemes map, this is a convenience API to be able to use e.g. FlexColor.mango.data to get the predefined FlexSchemeData for the mango enum scheme and e.g. FlexColor.barossa.colors(Brightness.dark) to get the pre-defined dark colors used for the barossa scheme colors.

The idea and usefulness of this minor API convenience came up in this discussion here: #204 (reply in thread)

@rydmike rydmike added enhancement New feature or request planned This issue is being planned and will be addressed in a later release package Report concerns the FlexColorScheme core package V7 This issue concerns version 7 and will be addressed in it labels Oct 24, 2023
@rydmike rydmike added this to the 7.4.0 milestone Oct 24, 2023
@rydmike rydmike self-assigned this Oct 24, 2023
rydmike added a commit that referenced this issue Oct 24, 2023
This if feature: Enum functions data and colors for FlexScheme: #210
@rydmike rydmike modified the milestones: 7.4.0, 8.0.0 Apr 26, 2024
@rydmike rydmike added V8 This issue concerns version 8 and will be addressed in it and removed V7 This issue concerns version 7 and will be addressed in it labels Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request package Report concerns the FlexColorScheme core package planned This issue is being planned and will be addressed in a later release V8 This issue concerns version 8 and will be addressed in it
1 participant