-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
follow a design system approach for components and values
- Loading branch information
1 parent
fcacfd2
commit 2697826
Showing
19 changed files
with
210 additions
and
98 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
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
2 changes: 1 addition & 1 deletion
2
...id/weatherapp/designsystem/theme/Color.kt → ...vid/weatherapp/designsystem/atom/Color.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
22 changes: 22 additions & 0 deletions
22
app/src/main/java/com/github/odaridavid/weatherapp/designsystem/atom/Dimensions.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,22 @@ | ||
package com.github.odaridavid.weatherapp.designsystem.atom | ||
|
||
import androidx.compose.runtime.staticCompositionLocalOf | ||
import androidx.compose.ui.unit.dp | ||
|
||
object Dimensions { | ||
val none = 0.dp | ||
val extraSmall = 4.dp | ||
val small = 8.dp | ||
val medium = 16.dp | ||
val large = 24.dp | ||
val extraLarge = 32.dp | ||
} | ||
|
||
object Weight{ | ||
val none = 0f | ||
val half = 0.5f | ||
val full = 1f | ||
} | ||
|
||
val LocalDimens = staticCompositionLocalOf { Dimensions } | ||
val LocalWeight = staticCompositionLocalOf { Weight } |
2 changes: 1 addition & 1 deletion
2
...id/weatherapp/designsystem/theme/Shape.kt → ...vid/weatherapp/designsystem/atom/Shape.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
4 changes: 2 additions & 2 deletions
4
...vid/weatherapp/designsystem/theme/Type.kt → ...avid/weatherapp/designsystem/atom/Type.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
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
Oops, something went wrong.