Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Latest commit

 

History

History
51 lines (40 loc) · 1.81 KB

README.md

File metadata and controls

51 lines (40 loc) · 1.81 KB

Maven Central License

Chords 🎶

A small utility library to make Jetbrains/Jetpack Compose more harmonic.

Setup 🛠

...

Features ⭐️

Dynamic Theme 🎨

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()
            }
        }
    }
}

To be continued...

Project ⚙️

Versioning 📜

This project follows the Semver standard for semantic versioning.

License 📃

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 with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.