Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename SessionRes to SessionsRes #171

Merged
merged 1 commit into from
Jul 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package io.github.droidkaigi.confsched.sessions

import conference_app_2024.feature.sessions.generated.resources.Res

object SessionRes {
object SessionsRes {
val string = Res.string
val drawable = Res.drawable
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ import io.github.droidkaigi.confsched.model.TimetableRoom
import io.github.droidkaigi.confsched.model.TimetableSessionType
import io.github.droidkaigi.confsched.model.TimetableSpeaker
import io.github.droidkaigi.confsched.model.fake
import io.github.droidkaigi.confsched.sessions.SessionRes
import io.github.droidkaigi.confsched.sessions.SessionsRes
import io.github.droidkaigi.confsched.sessions.section.TimetableSizes
import io.github.droidkaigi.confsched.ui.previewOverride
import io.github.droidkaigi.confsched.ui.rememberAsyncImagePainter
Expand Down Expand Up @@ -130,7 +130,7 @@ fun TimetableGridItem(
Icon(
modifier = Modifier.height(TimetableGridItemSizes.scheduleHeight),
imageVector = Icons.Default.Schedule,
contentDescription = stringResource(SessionRes.string.content_description_schedule_icon),
contentDescription = stringResource(SessionsRes.string.content_description_schedule_icon),
)
Spacer(modifier = Modifier.width(4.dp))
var scheduleTextStyle = MaterialTheme.typography.bodySmall
Expand Down Expand Up @@ -182,7 +182,7 @@ fun TimetableGridItem(
modifier = Modifier
.size(TimetableGridItemSizes.errorHeight),
imageVector = Icons.Default.Error,
contentDescription = stringResource(SessionRes.string.content_description_error_icon),
contentDescription = stringResource(SessionsRes.string.content_description_error_icon),
tint = MaterialTheme.colorScheme.errorContainer,
)
}
Expand Down Expand Up @@ -238,7 +238,7 @@ private fun SpeakerIcon(
painter = previewOverride(previewPainter = { rememberVectorPainter(image = Icons.Default.Person) }) {
rememberAsyncImagePainter(iconUrl)
},
contentDescription = stringResource(SessionRes.string.content_description_user_icon),
contentDescription = stringResource(SessionsRes.string.content_description_user_icon),
modifier = modifier
.size(TimetableGridItemSizes.speakerHeight)
.clip(RoundedCornerShape(8.dp))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import conference_app_2024.feature.sessions.generated.resources.calendar_add_on
import io.github.droidkaigi.confsched.designsystem.theme.KaigiTheme
import io.github.droidkaigi.confsched.model.TimetableItem
import io.github.droidkaigi.confsched.model.fake
import io.github.droidkaigi.confsched.sessions.SessionRes
import io.github.droidkaigi.confsched.sessions.SessionsRes
import io.github.droidkaigi.confsched.sessions.TimetableItemDetailBookmarkIconTestTag
import org.jetbrains.compose.resources.painterResource
import org.jetbrains.compose.ui.tooling.preview.Preview
Expand All @@ -42,7 +42,7 @@ fun TimetableItemDetailBottomAppBar(
}
IconButton(onClick = { onCalendarRegistrationClick(timetableItem) }) {
Icon(
painter = painterResource(SessionRes.drawable.calendar_add_on),
painter = painterResource(SessionsRes.drawable.calendar_add_on),
contentDescription = "Calendar",
)
}
Expand Down
Loading