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

Update to latest version #1

Open
wants to merge 210 commits into
base: main
Choose a base branch
from

Conversation

macintoshhelper
Copy link
Member

No description provided.

Material Eng added 30 commits November 23, 2021 11:01
PiperOrigin-RevId: 411850505
PiperOrigin-RevId: 412053315
PiperOrigin-RevId: 412058475
PiperOrigin-RevId: 412209240
PiperOrigin-RevId: 413659717
PiperOrigin-RevId: 415260604
PiperOrigin-RevId: 416516850
PiperOrigin-RevId: 418938494
PiperOrigin-RevId: 419805269
PiperOrigin-RevId: 420702167
PiperOrigin-RevId: 423342716
PiperOrigin-RevId: 425356495
PiperOrigin-RevId: 426156021
PiperOrigin-RevId: 426156263
PiperOrigin-RevId: 426166790
PiperOrigin-RevId: 426167014
PiperOrigin-RevId: 427198644
PiperOrigin-RevId: 427554598
PiperOrigin-RevId: 427737651
PiperOrigin-RevId: 427737685
PiperOrigin-RevId: 428504759
PiperOrigin-RevId: 428846248
PiperOrigin-RevId: 429104528
PiperOrigin-RevId: 430482383
PiperOrigin-RevId: 433220643
PiperOrigin-RevId: 436286469
PiperOrigin-RevId: 439868259
PiperOrigin-RevId: 440100018
PiperOrigin-RevId: 440304720
Material Eng and others added 30 commits April 16, 2024 06:36
…o load in the `sourceColorFromImage` function.

PiperOrigin-RevId: 641731057
PiperOrigin-RevId: 642276412
PiperOrigin-RevId: 646083450
PiperOrigin-RevId: 646459177
Currently DynamicScheme on all platforms except Java require Argb color as a parameter, however all child classes require Hct color.

If originally the user has ARGB color (most common case) it causes two expensive ARGB -> HCT conversions:
1. One from ARGB to HCT to call specific scheme (for example TonalSpot)
2. Then TonalStop Scheme converts HCT color to ARGB and pass to DynamicScheme constructor
3. Then this constructor converts it again to HCT.

PiperOrigin-RevId: 652412233
Currently on all platforms but Swift we always use hardcoded errorPalette, however swift allows to override it if needed.

This change unifies behavior across platforms.

PiperOrigin-RevId: 652418509
Our goal is to maintain the library equal on every platform. Rgba representation is unique to TS implementation and is not widely used. So we remove it.

Use `alphaFromArgb`, `blueFromArgb`, `greenFromArgb`, `redFromArgb` function instead.

PiperOrigin-RevId: 653328840
…olor. This provider reduces overlapped computation by reusing tonal palettes.

PiperOrigin-RevId: 653642125
PiperOrigin-RevId: 653910384
PiperOrigin-RevId: 653911055
PiperOrigin-RevId: 654643818
PiperOrigin-RevId: 654708954
PiperOrigin-RevId: 654708967
PiperOrigin-RevId: 654721925
PiperOrigin-RevId: 655062539
PiperOrigin-RevId: 655062545
* Swift: Deprecate legacy CorePalette class, add CorePalettes protocol.
* C++: Deprecate legacy CorePalette and Scheme classes, add CorePalettes interface.
* Java: Mark legacy CorePalette deprecated, add CorePalettes class.
* Dart: Mark legacy CorePalette deprecated, add CorePalettes class.
* Typescript: Mark legacy CorePalette deprecated, add CorePalettes class.

PiperOrigin-RevId: 655089821
- Divide content into "Concepts" and "Dev Guide" sections.
- Add conceptual overview for dynamic scheme, color extraction, contrast, and scheme generation.
- Update dev guide for creating a color scheme with updated APIs.
- Link to articles on https://m3.material.io/ when appropriate.

PiperOrigin-RevId: 669221247
PiperOrigin-RevId: 670945518
…unction to allow the code to be used seperately.

PiperOrigin-RevId: 676602878
PiperOrigin-RevId: 680947447
…ier instead of Function.

PiperOrigin-RevId: 706666102
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants