-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
designsystem module (Background, Gradient 추가) (#14)
* [feat] GradientColors * [feat] BackGroundTheme * [chore] internal 지시자 추가 * [feat] apply BackgroundTheme, GradientColors * [chore] designsystem Preview
- Loading branch information
Showing
4 changed files
with
75 additions
and
5 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
core/designsystem/src/main/java/com/moya/funch/theme/Background.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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.moya.funch.theme | ||
|
||
import androidx.compose.runtime.Immutable | ||
import androidx.compose.runtime.staticCompositionLocalOf | ||
import androidx.compose.ui.graphics.Color | ||
import androidx.compose.ui.unit.Dp | ||
|
||
@Immutable | ||
data class BackgroundTheme( | ||
val color: Color = Color.Unspecified, | ||
val tonalElevation: Dp = Dp.Unspecified, | ||
) | ||
|
||
val LocalBackgroundTheme = staticCompositionLocalOf { BackgroundTheme() } |
14 changes: 14 additions & 0 deletions
14
core/designsystem/src/main/java/com/moya/funch/theme/Gradient.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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.moya.funch.theme | ||
|
||
import androidx.compose.runtime.Immutable | ||
import androidx.compose.runtime.staticCompositionLocalOf | ||
import androidx.compose.ui.graphics.Color | ||
|
||
@Immutable | ||
data class GradientColors( | ||
val top: Color = Color.Unspecified, | ||
val bottom: Color = Color.Unspecified, | ||
val container: Color = Color.Unspecified, | ||
) | ||
|
||
val LocalGradientColors = staticCompositionLocalOf { GradientColors() } |
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