Skip to content

Commit

Permalink
Update fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
hueachilles committed Jul 27, 2023
1 parent 702fbe0 commit 90fb5ac
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 19 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plugins {

android {
defaultConfig {
val buildVersion = 118
val buildVersion = 119
applicationId = "com.crisiscleanup"
versionCode = buildVersion
versionName = "0.1.${buildVersion - 100}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fun SelectableFilterChip(
enabled: Boolean = true,
leadingIcon: (@Composable () -> Unit)? = null,
label: @Composable () -> Unit,
textStyle: TextStyle = MaterialTheme.typography.bodyMedium,
textStyle: TextStyle = MaterialTheme.typography.bodySmall,
chipBorder: SelectableChipBorder = ChipDefaults.filterChipBorder(),
chipColors: SelectableChipColors = ChipDefaults.filterChipColors(selected),
) = FilterChip(
Expand Down Expand Up @@ -52,7 +52,7 @@ fun CrisisCleanupFilterChip(
enabled: Boolean = true,
leadingIcon: (@Composable () -> Unit)? = null,
label: @Composable () -> Unit,
textStyle: TextStyle = MaterialTheme.typography.bodyMedium,
textStyle: TextStyle = MaterialTheme.typography.bodySmall,
) = SelectableFilterChip(
selected,
onClick,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fun BoxScope.MapOverlayMessage(
Text(
text = message,
modifier = Modifier.textMessagePadding(),
style = MaterialTheme.typography.bodyMedium,
style = MaterialTheme.typography.bodySmall,
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import com.crisiscleanup.core.designsystem.component.CrisisCleanupButton
import com.crisiscleanup.core.designsystem.component.OutlinedClearableTextField
import com.crisiscleanup.core.designsystem.component.OutlinedObfuscatingTextField
import com.crisiscleanup.core.designsystem.theme.DayNightPreviews
import com.crisiscleanup.core.designsystem.theme.LocalFontStyles
import com.crisiscleanup.core.designsystem.theme.fillWidthPadded
import com.crisiscleanup.feature.authentication.model.AuthenticationState
import com.crisiscleanup.core.common.R as commonR
Expand Down Expand Up @@ -132,7 +133,7 @@ private fun ConditionalErrorMessage(errorMessage: String) {
Text(
modifier = fillWidthPadded,
text = errorMessage,
style = MaterialTheme.typography.bodyMedium,
style = MaterialTheme.typography.bodySmall,
color = MaterialTheme.colorScheme.error,
)
}
Expand All @@ -157,7 +158,7 @@ private fun LoginScreen(
Text(
modifier = fillWidthPadded,
text = translator("actions.login", R.string.login),
style = MaterialTheme.typography.headlineMedium
style = LocalFontStyles.current.header2,
)

val authErrorMessage by viewModel.errorMessage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ private fun LazyListScope.flagItems(
worksite.flags?.let { flags ->
if (flags.isNotEmpty()) {
item(key = "section-content-flags") {
ProvideTextStyle(value = MaterialTheme.typography.bodyMedium) {
ProvideTextStyle(value = MaterialTheme.typography.bodySmall) {
FlowRow(
listItemModifier,
horizontalArrangement = listItemSpacedBy,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private fun WorkTypeSummaryView(
Text(
jobSummary,
modifier.padding(top = edgeSpacingHalf),
style = MaterialTheme.typography.bodyMedium,
style = MaterialTheme.typography.bodySmall,
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import com.crisiscleanup.core.commoncase.model.CaseSummaryResult
import com.crisiscleanup.core.commoncase.ui.listCaseResults
import com.crisiscleanup.core.designsystem.LocalAppTranslator
import com.crisiscleanup.core.designsystem.component.BusyIndicatorFloatingTopCenter
import com.crisiscleanup.core.designsystem.theme.LocalFontStyles
import com.crisiscleanup.core.designsystem.theme.listItemModifier
import com.crisiscleanup.core.designsystem.theme.listItemOptionPadding
import com.crisiscleanup.core.designsystem.theme.textMessagePadding
Expand Down Expand Up @@ -94,7 +95,7 @@ private fun ListTitle(
Text(
if (textResId == 0) text else stringResource(textResId),
modifier = listItemModifier,
style = MaterialTheme.typography.headlineSmall,
style = LocalFontStyles.current.header3,
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ fun CaseEditShareCaseRoute(
Text(
notSharableMessage,
listItemModifier,
style = MaterialTheme.typography.headlineSmall,
style = LocalFontStyles.current.header5,
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import com.crisiscleanup.core.designsystem.component.LinkifyHtmlText
import com.crisiscleanup.core.designsystem.component.LinkifyPhoneEmailText
import com.crisiscleanup.core.designsystem.component.TopAppBarBackAction
import com.crisiscleanup.core.designsystem.component.cancelButtonColors
import com.crisiscleanup.core.designsystem.theme.LocalFontStyles
import com.crisiscleanup.core.designsystem.theme.listCheckboxAlignStartOffset
import com.crisiscleanup.core.designsystem.theme.listItemHorizontalPadding
import com.crisiscleanup.core.designsystem.theme.listItemModifier
Expand Down Expand Up @@ -135,7 +136,7 @@ internal fun TransferWorkTypesView(
translator("workTypeRequestModal.contacts"),
// TODO Common dimensions
textModifier,
style = MaterialTheme.typography.titleMedium,
style = LocalFontStyles.current.header4,
)
for (s in contacts) {
LinkifyPhoneEmailText(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ private fun NoIncidentsContent(
Text(
modifier = modifier.padding(textPadding),
text = LocalAppTranslator.current("info.no_incidents_to_select"),
style = MaterialTheme.typography.titleLarge,
style = LocalFontStyles.current.header3,
)
CrisisCleanupTextButton(
modifier = modifier
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ internal fun DashboardScreen(
.fillMaxWidth()
.padding(48.dp),
textAlign = TextAlign.Center,
style = MaterialTheme.typography.bodyMedium
style = MaterialTheme.typography.bodySmall
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import androidx.compose.ui.unit.dp
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import com.crisiscleanup.core.designsystem.component.CrisisCleanupTextButton
import com.crisiscleanup.core.designsystem.theme.LocalFontStyles
import com.crisiscleanup.core.designsystem.theme.listItemBottomPadding
import com.crisiscleanup.core.designsystem.theme.listItemModifier
import com.crisiscleanup.core.designsystem.theme.listItemPadding
Expand All @@ -41,7 +42,7 @@ internal fun SyncInsightsRoute(
Text(
"Sync insights",
Modifier.weight(1f),
style = MaterialTheme.typography.headlineSmall,
style = LocalFontStyles.current.header5,
)

if (pendingSync.isNotEmpty()) {
Expand Down Expand Up @@ -80,7 +81,7 @@ internal fun SyncInsightsRoute(
Text(
"Pending",
modifier = listItemModifier,
style = MaterialTheme.typography.titleMedium,
style = LocalFontStyles.current.header4,
)
}
items(
Expand All @@ -91,7 +92,7 @@ internal fun SyncInsightsRoute(
Text(
it,
modifier = listItemModifier,
style = MaterialTheme.typography.bodyMedium,
style = MaterialTheme.typography.bodySmall,
)
}
}
Expand All @@ -102,7 +103,7 @@ internal fun SyncInsightsRoute(
Text(
"Logs",
modifier = listItemModifier,
style = MaterialTheme.typography.titleMedium,
style = LocalFontStyles.current.header4,
)
}

Expand Down Expand Up @@ -141,7 +142,7 @@ private fun SyncLogDetail(log: SyncLogItem) = with(log.syncLog) {
if (!log.isContinuingLogType) {
Text(
"$logType ${log.relativeTime}",
style = MaterialTheme.typography.titleSmall
style = LocalFontStyles.current.header5,
)
}
Text(message)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ internal fun TeamScreen(
.fillMaxWidth()
.padding(48.dp),
textAlign = TextAlign.Center,
style = MaterialTheme.typography.bodyMedium
style = MaterialTheme.typography.bodySmall
)
}
}

0 comments on commit 90fb5ac

Please sign in to comment.