chords
0.1.4indexedEnhances Jetbrains/Jetpack Compose applications with dynamic theming, supporting system dark mode and Material You Dynamic Color, while providing fallback themes for older environments.
0
Stars
—
Used by
dependents
—
Health
/ 100
Enhances Jetbrains/Jetpack Compose applications with dynamic theming, supporting system dark mode and Material You Dynamic Color, while providing fallback themes for older environments.
A small utility library to make Jetbrains/Jetpack Compose more harmonic.
...
Supports system dark mode and Material You Dynamic Color out of the box while allowing for fallback themes used in environments where dynamic color is not supported (such as older Android versions or desktop targets)
Example
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
DynamicTheme(lightScheme = myLightColorScheme, darkScheme = myDarkColorScheme) {
MyComposeView()
}
}
}
}
This project follows the Semver standard for semantic versioning.
This project is licensed under Apache 2.0
Copyright 2022 Antonius Naumann
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance the License.
You may obtain a copy of the License at
http:
Unless applicable law agreed to writing, software
distributed under the License distributed an BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied.
See the License the specific language governing permissions
limitations under the License.
Surfaced from shared tags and platforms — no rankings paid for.