-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
23 changed files
with
1,106 additions
and
482 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
11 changes: 11 additions & 0 deletions
11
core/src/main/java/com/terning/core/extension/TextStyle.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,11 @@ | ||
package com.terning.core.extension | ||
|
||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.platform.LocalDensity | ||
import androidx.compose.ui.text.TextStyle | ||
import androidx.compose.ui.unit.Dp | ||
|
||
@Composable | ||
fun TextStyle.getFixHeightByMaxLine(maxLine: Int): Dp = with(LocalDensity.current) { | ||
lineHeight.toDp() * maxLine | ||
} |
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,38 @@ | ||
package com.terning.core.type | ||
|
||
import androidx.compose.ui.graphics.Color | ||
import com.terning.core.designsystem.theme.CalBlue2 | ||
import com.terning.core.designsystem.theme.CalBlueBc | ||
import com.terning.core.designsystem.theme.CalBlueLi | ||
import com.terning.core.designsystem.theme.CalGreen2 | ||
import com.terning.core.designsystem.theme.CalGreenBc | ||
import com.terning.core.designsystem.theme.CalGreenLi | ||
import com.terning.core.designsystem.theme.CalOrange2 | ||
import com.terning.core.designsystem.theme.CalOrangeBc | ||
import com.terning.core.designsystem.theme.CalOrangeLi | ||
import com.terning.core.designsystem.theme.CalPink | ||
import com.terning.core.designsystem.theme.CalPinkBc | ||
import com.terning.core.designsystem.theme.CalPinkLi | ||
import com.terning.core.designsystem.theme.CalPurple | ||
import com.terning.core.designsystem.theme.CalPurpleBc | ||
import com.terning.core.designsystem.theme.CalPurpleLi | ||
import com.terning.core.designsystem.theme.CalRed | ||
import com.terning.core.designsystem.theme.CalRedBc | ||
import com.terning.core.designsystem.theme.CalRedLi | ||
|
||
enum class ColorType( | ||
val main: Color, | ||
val border: Color, | ||
val sub: Color | ||
) { | ||
RED(main = CalRed, border = CalRedLi, sub = CalRedBc), | ||
ORANGE(main = CalOrange2, border = CalOrangeLi, sub = CalOrangeBc), | ||
GREEN(main = CalGreen2, border = CalGreenLi, sub = CalGreenBc), | ||
BLUE(main = CalBlue2, border = CalBlueLi, sub = CalBlueBc), | ||
PURPLE(main = CalPurple, border = CalPurpleLi, sub = CalPurpleBc), | ||
PINK(main = CalPink, border = CalPinkLi, sub = CalPinkBc); | ||
|
||
companion object { | ||
fun findColorType(mainColor: Color): ColorType? = entries.find { it.main == mainColor } | ||
} | ||
} |
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
Large diffs are not rendered by default.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
...ure/src/main/java/com/terning/feature/calendar/calendar/component/CalendarCancelDialog.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.