commonMain.epicarchitect.calendar.compose.datepicker.config.ImmutableConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of epic-calendar-compose Show documentation
Show all versions of epic-calendar-compose Show documentation
Compose Multiplatform library for displaying epic calendars
The newest version!
package epicarchitect.calendar.compose.datepicker.config
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Immutable
import androidx.compose.runtime.remember
import androidx.compose.ui.graphics.Color
import epicarchitect.calendar.compose.pager.config.EpicCalendarPagerConfig
@Immutable
data class ImmutableEpicDatePickerConfig(
override val pagerConfig: EpicCalendarPagerConfig,
override val selectionContentColor: Color,
override val selectionContainerColor: Color
) : EpicDatePickerConfig
@Composable
fun rememberEpicDatePickerConfig(
pagerConfig: EpicCalendarPagerConfig = LocalEpicDatePickerConfig.current.pagerConfig,
selectionContentColor: Color = LocalEpicDatePickerConfig.current.selectionContentColor,
selectionContainerColor: Color = LocalEpicDatePickerConfig.current.selectionContainerColor
): EpicDatePickerConfig = remember(
pagerConfig,
selectionContentColor,
selectionContainerColor
) {
ImmutableEpicDatePickerConfig(
pagerConfig = pagerConfig,
selectionContentColor = selectionContentColor,
selectionContainerColor = selectionContainerColor
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy