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

Feature: Calculate theme colors from an ImageBitmap #95

Merged
merged 12 commits into from
Feb 2, 2024

Conversation

jordond
Copy link
Owner

@jordond jordond commented Feb 1, 2024

The material-color-utilities has support for quantizing an image and scoring the suitability for use in a UI theme.

This PR adds support for that as a couple extensions on ImageBitmap and some @Composable functions.

@jordond jordond added the enhancement New feature or request label Feb 1, 2024
@jordond jordond added this to the 1.4.0 milestone Feb 1, 2024
Base automatically changed from feature/additional-color-functionality to release/1.4.0 February 2, 2024 16:35
@jordond jordond merged commit ce38e2a into release/1.4.0 Feb 2, 2024
@jordond jordond deleted the feature/quantize-bitmap branch February 2, 2024 16:36
@jordond jordond mentioned this pull request Feb 2, 2024
jordond added a commit that referenced this pull request Feb 15, 2024
* Chore: Update Compose Multiplatform to 1.6.0-alpha01 (#74)

* update compose-multiplatform to 1.6.0-beta01 and kotlin 1.9.22

* Chore: Kotlin 1.9.22 & Compose 1.6.0-beta01 (#81)

* Feature: Add `rememberDynamicColorScheme` Composable (#83)

fixes #84

* Fix: Demo (#85)

* Chore: Cleanup of codebase (#92)

* Feature: Add extended fidelity (#93)

* Feature: Add ability to harmonize colors (#94)

* Feature: Calculate theme colors from an ImageBitmap (#95)

* add ability to calculate ui colors from an image

* update documentation

* Chore: Enable explicit API on material-color-utilities (#96)

* enable explicit api

* Feature: Color extensions for contrast (#98)

* Feature: Add Poko to public classes (#99)

* Feature: Add extensions for contrast and blending (#100)

* add extensions for contrast and blending

* add extension to CorePalette to match TonePalette

* add contrast values

* Feature: Deprecate AnimatedDynamicTheme, add animate to DynamicMaterialTheme (#103)

* add function to check contrast

* bump compose to 1.6.0-rc01
fbarthelery pushed a commit to fbarthelery/MaterialKolor that referenced this pull request Mar 1, 2024
* Chore: Update Compose Multiplatform to 1.6.0-alpha01 (jordond#74)

* update compose-multiplatform to 1.6.0-beta01 and kotlin 1.9.22

* Chore: Kotlin 1.9.22 & Compose 1.6.0-beta01 (jordond#81)

* Feature: Add `rememberDynamicColorScheme` Composable (jordond#83)

fixes jordond#84

* Fix: Demo (jordond#85)

* Chore: Cleanup of codebase (jordond#92)

* Feature: Add extended fidelity (jordond#93)

* Feature: Add ability to harmonize colors (jordond#94)

* Feature: Calculate theme colors from an ImageBitmap (jordond#95)

* add ability to calculate ui colors from an image

* update documentation

* Chore: Enable explicit API on material-color-utilities (jordond#96)

* enable explicit api

* Feature: Color extensions for contrast (jordond#98)

* Feature: Add Poko to public classes (jordond#99)

* Feature: Add extensions for contrast and blending (jordond#100)

* add extensions for contrast and blending

* add extension to CorePalette to match TonePalette

* add contrast values

* Feature: Deprecate AnimatedDynamicTheme, add animate to DynamicMaterialTheme (jordond#103)

* add function to check contrast

* bump compose to 1.6.0-rc01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant