Closed rafsanjani closed 1 year ago
Good point actually, thanks for this. I kept them internal due to the reason that it was only for default options and someone who wants to use something else can use their own params.
But you make a valid argument, will do the change.
https://github.com/hi-manshu/Kalendar/releases/tag/v1.3.2 This should be fixed in this!
All the default configurations are marked as
internal
. These could be made public so that the defaults can be copied and reused whilst replacing only the properties that need to be replaced. Similar to what the official compose APIs provide. TakeButtonDefaults
for instance.https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:tv/tv-material/src/main/java/androidx/tv/material3/ButtonDefaults.kt;l=101?q=ButtonDefaults
Currently, to change the
textSize
of the day, you are forced to also providesize
,textSize
andtextColor
instead of being able to just do something likeKalendarDayKonfig.default(textSize = 90.sp)
orKalendarDayKonfig.default().copy(textSize = 90.sp)