Coder Social home page Coder Social logo

uplift's Introduction

Uplift GitHub release GitHub license

Uplift

Uplift showcase      About tinted shadows

Unbeknownst to most, elevation shadows are actually not completely inflexible. Besides setting the elevation height itself, you can tweak the shadows in clever ways to obtain subtler shadows, or simply some specific effect. This can be seen in action in the Squanchy schedule screen, which uses a custom OutlineProvider to cast shadows for the cards that look more like diffuse shadows (although they're very much still the area shadow that the Material guidelines specify, there is no custom drawing code there).

For more details, you can refer to the accompanying blogpost.

Tinting shadows (Android P+)

Starting with Android P (API 28) you can specify the colour that elevation shadows take on. You can individually tint the area and the spot shadows — although you probably want the same colour for both, most of the time. Remember, though, that shadow colours' alphas are premultiplied by a factor that is defined by the ambientShadowAlpha and spotShadowAlpha theme attributes, which are set by default to 0.039 for ambient shadows and 0.19 for spot shadows.

If you want to learn more about it, and learn how to bypass these limitations, you can refer to the dedicated blog posts, starting with the first part.

More on Uplift

You can test Uplift by downloading it from the Play Store or get the apk from the Releases tab.

Get it on Google Play

Licence FOSSA Status

See the LICENSE file. tl;dr it's Apache 2.0

FOSSA Status

uplift's People

Contributors

rock3r avatar fossabot avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.