-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
569174d
commit 65b84b6
Showing
4 changed files
with
74 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<dimen name="cardPadding">4dp</dimen> | ||
<dimen name="roundedCornerClipSize">6dp</dimen> | ||
<dimen name="itemImageSize">24dp</dimen> | ||
<dimen name="itemSpacerHeight">3dp</dimen> | ||
<dimen name="arrowIconSize">10dp</dimen> | ||
</resources> |
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
33 changes: 33 additions & 0 deletions
33
library/designsystem/src/main/java/ir/composenews/designsystem/theme/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,33 @@ | ||
package ir.composenews.designsystem.theme | ||
|
||
import androidx.compose.runtime.compositionLocalOf | ||
import androidx.compose.ui.unit.Dp | ||
import androidx.compose.ui.unit.TextUnit | ||
import androidx.compose.ui.unit.dp | ||
import androidx.compose.ui.unit.sp | ||
|
||
@SuppressWarnings("unused") | ||
|
||
data class PhoneThemeDimensions( | ||
val cardPadding: Dp = 8.dp, | ||
val roundedCornerClipSize: Dp = 12.dp, | ||
val itemImageSize: Dp = 48.dp, | ||
val textHeadlineSmallSize: TextUnit = 24.sp, | ||
val textBodyLargeSize: TextUnit = 16.sp, | ||
val textTitleMediumSize: TextUnit = 16.sp, | ||
val itemSpacerHeight: Dp = 6.dp, | ||
val arrowIconSize: Dp = 20.dp, | ||
// Add other dimensions as needed | ||
) | ||
|
||
data class WearThemeDimensions( | ||
val cardPadding: Dp = 4.dp, | ||
val roundedCornerClipSize: Dp = 6.dp, | ||
val itemImageSize: Dp = 24.dp, | ||
val textHeadlineSmallSize: TextUnit = 12.sp, | ||
val textBodyLargeSize: TextUnit = 8.sp, | ||
val textTitleMediumSize: TextUnit = 8.sp, | ||
val itemSpacerHeight: Dp = 3.dp, | ||
val arrowIconSize: Dp = 10.dp, | ||
// Add other dimensions as needed | ||
) |
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,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<dimen name="cardPadding">8dp</dimen> | ||
<dimen name="roundedCornerClipSize">12dp</dimen> | ||
<dimen name="itemImageSize">48dp</dimen> | ||
<dimen name="itemSpacerHeight">6dp</dimen> | ||
<dimen name="arrowIconSize">20dp</dimen> | ||
</resources> |