-
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.
- Loading branch information
Showing
13 changed files
with
638 additions
and
28 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
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
8 changes: 8 additions & 0 deletions
8
presentation/home/src/main/java/com/dkin/chevit/presentation/home/model/Template.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,8 @@ | ||
package com.dkin.chevit.presentation.home.model | ||
|
||
data class Template( | ||
val id: Int, | ||
val title: String, | ||
val date: String, | ||
val colorType: TemplateColor | ||
) |
18 changes: 18 additions & 0 deletions
18
presentation/home/src/main/java/com/dkin/chevit/presentation/home/model/TemplateColor.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,18 @@ | ||
package com.dkin.chevit.presentation.home.model | ||
|
||
import androidx.compose.ui.graphics.Color | ||
import androidx.compose.ui.graphics.vector.ImageVector | ||
import com.dkin.chevit.presentation.resource.icon.ChevitIcon | ||
import com.dkin.chevit.presentation.resource.icon.TemplateAfternoon | ||
import com.dkin.chevit.presentation.resource.icon.TemplateDawn | ||
import com.dkin.chevit.presentation.resource.icon.TemplateMorning | ||
import com.dkin.chevit.presentation.resource.icon.TemplateNight | ||
import com.dkin.chevit.presentation.resource.icon.TemplateSunset | ||
|
||
enum class TemplateColor(val color: Color, val icon: ImageVector) { | ||
DAWN(color = Color(0xFF8785FF), icon = ChevitIcon.TemplateDawn), | ||
MORNING(color = Color(0xFF4A47FF), icon = ChevitIcon.TemplateMorning), | ||
AFTERNOON(color = Color(0xFFFFAE63), icon = ChevitIcon.TemplateAfternoon), | ||
SUNSET(color = Color(0xFFFF9534), icon = ChevitIcon.TemplateSunset), | ||
NIGHT(color = Color(0xFF030099), icon = ChevitIcon.TemplateNight) | ||
} |
36 changes: 36 additions & 0 deletions
36
...tion/resource/src/main/java/com/dkin/chevit/presentation/resource/ChevitFloatingButton.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,36 @@ | ||
package com.dkin.chevit.presentation.resource | ||
|
||
import androidx.compose.foundation.background | ||
import androidx.compose.foundation.clickable | ||
import androidx.compose.foundation.layout.Box | ||
import androidx.compose.foundation.layout.size | ||
import androidx.compose.foundation.shape.CircleShape | ||
import androidx.compose.material3.Icon | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Alignment | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.draw.clip | ||
import androidx.compose.ui.unit.dp | ||
import com.dkin.chevit.presentation.resource.icon.ChevitIcon | ||
import com.dkin.chevit.presentation.resource.icon.IconAddFill | ||
|
||
@Composable | ||
fun ChevitFloatingButton( | ||
modifier: Modifier = Modifier, | ||
onClick: () -> Unit = {} | ||
) { | ||
Box( | ||
modifier = modifier | ||
.size(50.dp) | ||
.clip(CircleShape) | ||
.background(color = ChevitTheme.colors.blue7) | ||
.clickable { onClick() }, | ||
contentAlignment = Alignment.Center | ||
) { | ||
Icon( | ||
imageVector = ChevitIcon.IconAddFill, | ||
contentDescription = "", | ||
tint = ChevitTheme.colors.white, | ||
) | ||
} | ||
} |
Oops, something went wrong.