Skip to content

Commit

Permalink
Updated to 1.0.0-rc05 version
Browse files Browse the repository at this point in the history
  • Loading branch information
kevingermainbusiness committed Jul 4, 2022
1 parent 2b0a8ce commit 5694f50
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ repositories {

```groovy
dependencies {
implementation "com.github.germainkevinbusiness:CollapsingTopBarCompose:1.0.0-rc04"
implementation "com.github.germainkevinbusiness:CollapsingTopBarCompose:1.0.0-rc05"
}
```

Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ android {
minSdk 21
targetSdk 32
versionCode 1
versionName "1.0.0-rc04"
versionName libraryVersion

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ buildscript {
ext {
compose_version = '1.2.0-rc03'
coreKtx = '1.8.0'
libraryVersion ='1.0.0-rc05'
material3Version ='1.0.0-alpha13'
timberVersion ='5.0.1'
}
Expand Down
2 changes: 1 addition & 1 deletion collapsingtopbar/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ afterEvaluate {
// You can then customize attributes of the publication as shown below.
groupId = 'com.germainkevin.collapsingtopbarcompose'
artifactId = 'collapsingtopbarcompose'
version = '1.0.0-rc04'
version = libraryVersion
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,19 @@ object CollapsingTopBarDefaults {
* Default colors used in the [CollapsingTopBar]
* @param backgroundColor The background color of the [CollapsingTopBar] when collapsed
* or expanded
* @param contentColor The content color inside of the [CollapsingTopBar] when collapsed
* or expanded
* @param backgroundColorWhenNotCollapsedOrExpanded The background color of
* the [CollapsingTopBar] when it's not collapsed or expanded
* @param contentColor The content color inside of the [CollapsingTopBar] when collapsed
* or expanded
* @param onBackgroundColorChange This callback method has a Color parameter which emits the current
* background color of the [CollapsingTopBar] whenever it changes
* */
@Composable
fun colors(
backgroundColor: Color = MaterialTheme.colorScheme.primary,
contentColor: Color = contentColorFor(backgroundColor = backgroundColor),
backgroundColorWhenNotCollapsedOrExpanded: Color = backgroundColor,
onBackgroundColorChange: (Color) -> Unit = {},
contentColor: Color = contentColorFor(backgroundColor),
): CollapsingTopBarColors = CollapsingTopBarColors(
backgroundColor = backgroundColor,
contentColor = contentColor,
Expand Down

0 comments on commit 5694f50

Please sign in to comment.