deweyreed / theme Goto Github PK
View Code? Open in Web Editor NEW๐จ An Experimental Theme Engine for Android
License: Apache License 2.0
๐จ An Experimental Theme Engine for Android
License: Apache License 2.0
Even if I've disabled Theme in the edit mode, Theme still breaks MaterialButton in library modules. In the application mode, everything works fine. What's going on?
I notice something like colorOnPrimary
has been added to material library. That definitely requires some work to adapt it.
Docs: https://github.com/material-components/material-components-android/blob/master/docs/theming/Color.md
Use compileOnly libs.material
.
I've already used this theme to decorate my app. It's impossible for me not to use material library.
Material library will use implementation
.
"TextView" -> ThemeTextView(context, attrs)
===>
"TextView" -> AppCompatTextView(context, attrs).tint()
After playing around with Jetpack Compose, I find that it supports changing view colors through color int instead of styles out of box. By the time of its stable release, this library may be replaced and deprecated.
Currently, all color values are retrieved through SharedPreferences
which is created and destroyed according to Activity lifecycle.
Sometimes, color values are accessed when prefs
are null and then everything explodes.
Maybe I should always pass a Context
to Theme
like getting a singleton database.
Currently, for some colors, Theme's isColorLight
and Android give different answers. Therefore, the toolbar icon color and the navigation bar icon color are different.
There must be something like isColorLight
in AOSP but where?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.