-
Notifications
You must be signed in to change notification settings - Fork 25
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 #225 from imashnake0/mcu-refactor
Replace our material-color-utilities fork with MaterialKolor
- Loading branch information
Showing
50 changed files
with
23 additions
and
4,823 deletions.
There are no files selected for viewing
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
38 changes: 0 additions & 38 deletions
38
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,45 +1,7 @@ | ||
package com.imashnake.animite.dev.ext | ||
|
||
import androidx.compose.material3.ColorScheme | ||
import androidx.compose.ui.graphics.Color | ||
import scheme.Scheme | ||
|
||
fun ColorScheme.from(scheme: Scheme) = | ||
ColorScheme( | ||
primary = Color(scheme.primary), | ||
onPrimary = Color(scheme.onPrimary), | ||
primaryContainer = Color(scheme.primaryContainer), | ||
onPrimaryContainer = Color(scheme.onPrimaryContainer), | ||
inversePrimary = Color(scheme.inversePrimary), | ||
secondary = Color(scheme.secondary), | ||
onSecondary = Color(scheme.onSecondary), | ||
secondaryContainer = Color(scheme.secondaryContainer), | ||
onSecondaryContainer = Color(scheme.onSecondaryContainer), | ||
tertiary = Color(scheme.tertiary), | ||
onTertiary = Color(scheme.onTertiary), | ||
tertiaryContainer = Color(scheme.tertiaryContainer), | ||
onTertiaryContainer = Color(scheme.onTertiaryContainer), | ||
background = Color(scheme.background), | ||
onBackground = Color(scheme.onBackground), | ||
surface = Color(scheme.surface), | ||
onSurface = Color(scheme.onSurface), | ||
surfaceVariant = Color(scheme.surfaceVariant), | ||
onSurfaceVariant = Color(scheme.onSurfaceVariant), | ||
surfaceTint = this.surfaceTint, | ||
inverseSurface = Color(scheme.inverseSurface), | ||
inverseOnSurface = Color(scheme.inverseOnSurface), | ||
error = Color(scheme.error), | ||
onError = Color(scheme.onError), | ||
errorContainer = Color(scheme.errorContainer), | ||
onErrorContainer = Color(scheme.onErrorContainer), | ||
outline = Color(scheme.outline), | ||
outlineVariant = Color(scheme.outlineVariant), | ||
scrim = Color(scheme.scrim), | ||
) | ||
|
||
/** | ||
* @see [Scheme.pastelize]. | ||
*/ | ||
fun ColorScheme.pastelize(backgroundToPrimary: Float) = with(this) { | ||
copy(background = background.blendWith(primary, backgroundToPrimary)) | ||
} |
37 changes: 0 additions & 37 deletions
37
app/src/main/kotlin/com/imashnake/animite/dev/ext/SchemeExt.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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
material-color-utilities/src/main/kotlin/common/BiFunction.kt
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
material-color-utilities/src/main/kotlin/common/Function.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.