Git Product home page Git Product logo

Comments (8)

stcojo avatar stcojo commented on August 30, 2024

Is this your first day coding for Android?

from colorful.

tcqq avatar tcqq commented on August 30, 2024

@cojoc07 These methods exist in the previous version, Do you have any other solution to the above problem?

from colorful.

garretyoder avatar garretyoder commented on August 30, 2024
Colorful().getPrimaryColor().getColorPack().light().asInt()

I recommend you use the power of your IDE's code completion to poke around Colorful and Android's platform APIs.

from colorful.

tcqq avatar tcqq commented on August 30, 2024

@garretyoder Thanks, now I know should be how to get primary and accent color:-), But I didn't find white or black in ThemeColor, How should I set PrimaryColor to white or black?

from colorful.

garretyoder avatar garretyoder commented on August 30, 2024

White or black is something I didn't add in v2 because I didn't see a point. If it's something you really require, I can add it this weekend for v2.1 because it'll only take me a few moments.

from colorful.

tcqq avatar tcqq commented on August 30, 2024

Yes, white and black are useful, see the picture below.

Primary Color: BLUE
Accent Color: PINK
Theme: DARK
image

Primary Color: WHIT
Accent Color: BLUE
Theme: LIGHT
image

from colorful.

garretyoder avatar garretyoder commented on August 30, 2024

White/Black are now added courtesy of a PR, which will be included in the 2.1 release that I'll probably push later today.

from colorful.

tcqq avatar tcqq commented on August 30, 2024

Thanks:)

from colorful.

Related Issues (20)

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.