-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #230 from imashnake0/rid-pastelize
Replace Pastelize with MaterialKolor APIs
- Loading branch information
Showing
9 changed files
with
46 additions
and
120 deletions.
There are no files selected for viewing
15 changes: 0 additions & 15 deletions
15
app/src/main/kotlin/com/imashnake/animite/dev/ext/ColorExt.kt
This file was deleted.
Oops, something went wrong.
6 changes: 4 additions & 2 deletions
6
app/src/main/kotlin/com/imashnake/animite/dev/ext/ColorSchemeExt.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
package com.imashnake.animite.dev.ext | ||
|
||
import androidx.compose.material3.ColorScheme | ||
import com.materialkolor.ktx.blend | ||
|
||
fun ColorScheme.pastelize(backgroundToPrimary: Float) = with(this) { | ||
copy(background = background.blendWith(primary, backgroundToPrimary)) | ||
fun ColorScheme.modify(useDarkTheme: Boolean) = when { | ||
useDarkTheme -> copy(surfaceContainerHighest = surfaceContainerHighest.blend(background, 0.5f)) | ||
else -> copy(background = background.blend(primary, 0.05f)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 0 additions & 68 deletions
68
app/src/main/kotlin/com/imashnake/animite/features/theme/Color.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters