Skip to content

Releases: skydoves/Rainbow

1.0.4

08 May 02:26
7bdcb2c
Compare
Choose a tag to compare

馃帀 Released a new version 1.0.4! 馃帀

What's New?

  • Added a new function shade() for applying gradations on TextViews using Rainbow class.

Shade

We can shade gradations on a TextView using the Rainbow class.

textView.rainbow().palette {
  +contextColor(R.color.colorPrimary)
  +contextColor(R.color.md_orange_100)
  +contextColor(R.color.md_yellow_100)
  +contextColor(R.color.md_green_200)
  +contextColor(R.color.md_blue_200)
  +contextColor(R.color.md_purple_100)
}.shade()

Also, we can apply a color array using an array resource in our XML.

textView.rainbow().palette {
  +colorArray(R.array.rainbow)
}.shade()

Here is a Java way.

new Rainbow(textView)
  .addContextColor(R.color.md_red_400)
  .addContextColor(R.color.md_yellow_100)
  .addContextColor(R.color.md_green_100)
  .addContextColor(R.color.md_blue_100)
  .addContextColor(R.color.white)
  .shade();

1.0.3

21 Sep 15:58
41a2c6a
Compare
Choose a tag to compare

馃帀 Released a new version 1.0.3! 馃帀

What's New?

  • Updated compile SDK version to 30
  • Updated kotlin version to 1.4.10 stable internally.
  • Removed unused internal resources and dependencies internally.

1.0.2

11 Jun 15:59
5f58df6
Compare
Choose a tag to compare

馃帀 Released version 1.0.2! 馃帀

What's New?

  • Added withElevation(Float) functionality for giving a shadowing effect on view.
  • Removed experimental annotation on inline class internally.

1.0.1

24 Aug 15:26
4f4c193
Compare
Choose a tag to compare

Released version 1.0.1.

  • We can apply gradations using View.rainbow() extension directly.
cardView0.rainbow().palette {
   +contextColor(R.color.skyBlue)
   +contextColor(R.color.colorPrimary)
}.background(orientation = RainbowOrientation.TOP_BOTTOM, radius = 8)

1.0.0

24 Aug 07:08
d22220c
Compare
Choose a tag to compare

馃帀馃帀Published first version 1.0.0.馃帀馃帀