mirror of
https://github.com/LiveFastEatTrashRaccoon/RaccoonForLemmy.git
synced 2025-02-08 15:28:42 +01:00
fix: update title styles (screens, dialog, bottom sheets) (#827)
This commit is contained in:
parent
eaff49d31e
commit
f3dc42c14e
@ -37,8 +37,8 @@ fun BottomSheetHeader(
|
||||
),
|
||||
text = title,
|
||||
textAlign = TextAlign.Center,
|
||||
style = MaterialTheme.typography.titleLarge,
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ fun EditFormattedInfoDialog(
|
||||
) {
|
||||
Text(
|
||||
text = LocalXmlStrings.current.postActionEdit,
|
||||
style = MaterialTheme.typography.titleLarge,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
)
|
||||
Spacer(modifier = Modifier.height(Spacing.s))
|
||||
@ -103,8 +103,8 @@ fun EditFormattedInfoDialog(
|
||||
TextFormattingBar(
|
||||
modifier = Modifier.padding(
|
||||
top = Spacing.s,
|
||||
start = Spacing.m,
|
||||
end = Spacing.m,
|
||||
start = Spacing.s,
|
||||
end = Spacing.s,
|
||||
),
|
||||
textFieldValue = textFieldValue,
|
||||
onTextFieldValueChanged = {
|
||||
|
@ -61,7 +61,7 @@ fun EditTextualInfoDialog(
|
||||
) {
|
||||
Text(
|
||||
text = LocalXmlStrings.current.postActionEdit,
|
||||
style = MaterialTheme.typography.titleLarge,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
)
|
||||
Spacer(modifier = Modifier.height(Spacing.s))
|
||||
|
@ -52,7 +52,7 @@ fun NumberPickerDialog(
|
||||
) {
|
||||
Text(
|
||||
text = title,
|
||||
style = MaterialTheme.typography.titleLarge,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
)
|
||||
Spacer(modifier = Modifier.height(Spacing.s))
|
||||
|
@ -45,7 +45,7 @@ fun SelectLanguageDialog(
|
||||
) {
|
||||
Text(
|
||||
text = LocalXmlStrings.current.settingsLanguage,
|
||||
style = MaterialTheme.typography.titleLarge,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
)
|
||||
Spacer(modifier = Modifier.height(Spacing.xs))
|
||||
|
@ -182,6 +182,7 @@ internal object ProfileMainScreen : Tab {
|
||||
Text(
|
||||
modifier = Modifier.padding(horizontal = Spacing.s),
|
||||
text = LocalXmlStrings.current.navigationProfile,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
},
|
||||
actions = {
|
||||
@ -262,7 +263,10 @@ internal object ProfileMainScreen : Tab {
|
||||
logoutConfirmDialogOpen = false
|
||||
},
|
||||
title = {
|
||||
Text(text = LocalXmlStrings.current.actionLogout)
|
||||
Text(
|
||||
text = LocalXmlStrings.current.actionLogout,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
},
|
||||
text = {
|
||||
Text(text = LocalXmlStrings.current.messageAreYouSure)
|
||||
|
@ -120,6 +120,7 @@ class AdvancedSettingsScreen : Screen {
|
||||
Text(
|
||||
modifier = Modifier.padding(horizontal = Spacing.s),
|
||||
text = LocalXmlStrings.current.settingsAdvanced,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
},
|
||||
navigationIcon = {
|
||||
|
@ -97,6 +97,7 @@ class SettingsColorAndFontScreen : Screen {
|
||||
Text(
|
||||
modifier = Modifier.padding(horizontal = Spacing.s),
|
||||
text = LocalXmlStrings.current.settingsColorsAndFonts,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
},
|
||||
navigationIcon = {
|
||||
|
@ -134,6 +134,7 @@ class SettingsScreen : Screen {
|
||||
Text(
|
||||
modifier = Modifier.padding(horizontal = Spacing.s),
|
||||
text = LocalXmlStrings.current.navigationSettings,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
},
|
||||
)
|
||||
|
@ -74,7 +74,7 @@ class AboutDialog : Screen {
|
||||
) {
|
||||
Text(
|
||||
text = LocalXmlStrings.current.settingsAbout,
|
||||
style = MaterialTheme.typography.titleLarge,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
)
|
||||
Spacer(modifier = Modifier.height(Spacing.s))
|
||||
|
@ -146,6 +146,7 @@ class AccountSettingsScreen : Screen {
|
||||
Text(
|
||||
modifier = Modifier.padding(horizontal = Spacing.s),
|
||||
text = LocalXmlStrings.current.settingsWebPreferences,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
},
|
||||
navigationIcon = {
|
||||
|
@ -123,6 +123,7 @@ class BanUserScreen(
|
||||
Text(
|
||||
text = title,
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
},
|
||||
actions = {
|
||||
|
@ -152,6 +152,7 @@ class InboxChatScreen(
|
||||
text = uiState.otherUserName,
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
}
|
||||
},
|
||||
|
@ -53,7 +53,7 @@ fun ColorPickerDialog(
|
||||
) {
|
||||
Text(
|
||||
text = LocalXmlStrings.current.settingsColorDialogTitle,
|
||||
style = MaterialTheme.typography.titleLarge,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
)
|
||||
Spacer(modifier = Modifier.height(Spacing.xs))
|
||||
|
@ -71,7 +71,7 @@ class FontScaleBottomSheet(
|
||||
end = Spacing.s,
|
||||
),
|
||||
text = title,
|
||||
style = MaterialTheme.typography.titleLarge,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
)
|
||||
Column(
|
||||
|
@ -277,6 +277,7 @@ class CommunityDetailScreen(
|
||||
text = uiState.community.readableName(uiState.preferNicknames),
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
},
|
||||
actions = {
|
||||
|
@ -88,7 +88,7 @@ class CommunityInfoScreen(
|
||||
title = {
|
||||
Text(
|
||||
text = title,
|
||||
style = MaterialTheme.typography.bodyLarge,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
)
|
||||
},
|
||||
|
@ -75,6 +75,7 @@ class ConfigureContentViewScreen : Screen {
|
||||
Text(
|
||||
modifier = Modifier.padding(horizontal = Spacing.s),
|
||||
text = LocalXmlStrings.current.settingsConfigureContent,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
},
|
||||
navigationIcon = {
|
||||
|
@ -77,6 +77,7 @@ class ConfigureSwipeActionsScreen : Screen {
|
||||
Text(
|
||||
modifier = Modifier.padding(horizontal = Spacing.s),
|
||||
text = LocalXmlStrings.current.settingsConfigureSwipeActions,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
},
|
||||
navigationIcon = {
|
||||
|
@ -188,6 +188,7 @@ class CreateCommentScreen(
|
||||
}
|
||||
},
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
},
|
||||
actions = {
|
||||
@ -326,8 +327,8 @@ class CreateCommentScreen(
|
||||
TextFormattingBar(
|
||||
modifier = Modifier.padding(
|
||||
top = Spacing.s,
|
||||
start = Spacing.m,
|
||||
end = Spacing.m,
|
||||
start = Spacing.s,
|
||||
end = Spacing.s,
|
||||
),
|
||||
textFieldValue = uiState.textValue,
|
||||
onTextFieldValueChanged = { value ->
|
||||
|
@ -252,6 +252,7 @@ class CreatePostScreen(
|
||||
else -> LocalXmlStrings.current.createPostTitle
|
||||
},
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
},
|
||||
actions = {
|
||||
@ -510,8 +511,8 @@ class CreatePostScreen(
|
||||
TextFormattingBar(
|
||||
modifier = Modifier.padding(
|
||||
top = Spacing.s,
|
||||
start = Spacing.m,
|
||||
end = Spacing.m,
|
||||
start = Spacing.s,
|
||||
end = Spacing.s,
|
||||
),
|
||||
textFieldValue = uiState.bodyValue,
|
||||
onTextFieldValueChanged = { value ->
|
||||
|
@ -113,6 +113,7 @@ class CreateReportScreen(
|
||||
Text(
|
||||
text = title,
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
},
|
||||
actions = {
|
||||
|
@ -26,7 +26,6 @@ import com.github.diegoberaldin.raccoonforlemmy.core.commonui.components.CustomI
|
||||
import com.github.diegoberaldin.raccoonforlemmy.core.commonui.components.PlaceholderImage
|
||||
import com.github.diegoberaldin.raccoonforlemmy.core.l10n.LocalXmlStrings
|
||||
import com.github.diegoberaldin.raccoonforlemmy.core.utils.compose.onClick
|
||||
import com.github.diegoberaldin.raccoonforlemmy.core.utils.compose.rememberCallback
|
||||
import com.github.diegoberaldin.raccoonforlemmy.domain.lemmy.data.UserModel
|
||||
|
||||
@Composable
|
||||
@ -82,7 +81,7 @@ internal fun DrawerHeader(
|
||||
append(user.name)
|
||||
}
|
||||
},
|
||||
style = MaterialTheme.typography.titleLarge,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
color = fullColor,
|
||||
)
|
||||
Text(
|
||||
@ -119,7 +118,7 @@ internal fun DrawerHeader(
|
||||
) {
|
||||
Text(
|
||||
text = anonymousTitle,
|
||||
style = MaterialTheme.typography.titleLarge,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
color = fullColor,
|
||||
)
|
||||
Row {
|
||||
|
@ -148,6 +148,7 @@ class EditCommunityScreen(
|
||||
append(" ")
|
||||
append(uiState.title)
|
||||
},
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
},
|
||||
navigationIcon = {
|
||||
|
@ -109,8 +109,8 @@ class InstanceInfoScreen(
|
||||
title = {
|
||||
Text(
|
||||
text = LocalXmlStrings.current.instanceDetailTitle(instanceName),
|
||||
style = MaterialTheme.typography.bodyLarge,
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
},
|
||||
actions = {
|
||||
|
@ -34,7 +34,6 @@ import com.github.diegoberaldin.raccoonforlemmy.core.l10n.LocalXmlStrings
|
||||
import com.github.diegoberaldin.raccoonforlemmy.core.navigation.di.getNavigationCoordinator
|
||||
import com.github.diegoberaldin.raccoonforlemmy.core.persistence.di.getSettingsRepository
|
||||
import com.github.diegoberaldin.raccoonforlemmy.core.utils.compose.onClick
|
||||
import com.github.diegoberaldin.raccoonforlemmy.core.utils.compose.rememberCallback
|
||||
import com.github.diegoberaldin.raccoonforlemmy.core.utils.url.getCustomTabsHelper
|
||||
import com.github.diegoberaldin.raccoonforlemmy.core.utils.url.toUrlOpeningMode
|
||||
import com.github.diegoberaldin.raccoonforlemmy.unit.licences.components.LicenceItem
|
||||
@ -65,6 +64,7 @@ class LicencesScreen : Screen {
|
||||
Text(
|
||||
modifier = Modifier.padding(horizontal = Spacing.s),
|
||||
text = LocalXmlStrings.current.settingsAboutLicences,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
},
|
||||
navigationIcon = {
|
||||
|
@ -119,6 +119,7 @@ class LoginBottomSheet : Screen {
|
||||
Text(
|
||||
text = LocalXmlStrings.current.profileButtonLogin,
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
},
|
||||
navigationIcon = {
|
||||
|
@ -73,6 +73,7 @@ class ManageBanScreen : Screen {
|
||||
Text(
|
||||
modifier = Modifier.padding(horizontal = Spacing.s),
|
||||
text = LocalXmlStrings.current.settingsManageBan,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
},
|
||||
navigationIcon = {
|
||||
|
@ -136,7 +136,7 @@ class ManageSubscriptionsScreen : Screen {
|
||||
Text(
|
||||
modifier = Modifier.padding(horizontal = Spacing.s),
|
||||
text = LocalXmlStrings.current.navigationDrawerTitleSubscriptions,
|
||||
style = MaterialTheme.typography.titleMedium
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
},
|
||||
scrollBehavior = scrollBehavior,
|
||||
|
@ -164,6 +164,7 @@ class MultiCommunityScreen(
|
||||
text = uiState.community.name,
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
},
|
||||
scrollBehavior = scrollBehavior,
|
||||
|
@ -95,6 +95,7 @@ class MultiCommunityEditorScreen(
|
||||
Text(
|
||||
text = LocalXmlStrings.current.multiCommunityEditorTitle,
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
},
|
||||
navigationIcon = {
|
||||
|
@ -298,6 +298,7 @@ class PostDetailScreen(
|
||||
text = uiState.post.title,
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
},
|
||||
actions = {
|
||||
|
@ -78,7 +78,7 @@ fun RawContentDialog(
|
||||
) {
|
||||
Text(
|
||||
text = LocalXmlStrings.current.dialogTitleRawContent,
|
||||
style = MaterialTheme.typography.titleLarge,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
color = fullColor,
|
||||
)
|
||||
Spacer(modifier = Modifier.height(Spacing.s))
|
||||
|
@ -109,6 +109,7 @@ class RemoveScreen(
|
||||
Text(
|
||||
text = LocalXmlStrings.current.modActionRemove,
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
},
|
||||
actions = {
|
||||
|
@ -106,6 +106,7 @@ class SavedItemsScreen : Screen {
|
||||
Text(
|
||||
modifier = Modifier.padding(horizontal = Spacing.s),
|
||||
text = LocalXmlStrings.current.navigationDrawerTitleBookmarks,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
},
|
||||
actions = {
|
||||
|
@ -68,7 +68,7 @@ class SelectCommunityDialog : Screen {
|
||||
) {
|
||||
Text(
|
||||
text = LocalXmlStrings.current.dialogTitleSelectCommunity,
|
||||
style = MaterialTheme.typography.titleLarge,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
)
|
||||
Spacer(modifier = Modifier.height(Spacing.s))
|
||||
|
@ -55,7 +55,7 @@ internal fun ChangeInstanceDialog(
|
||||
) {
|
||||
Text(
|
||||
text = LocalXmlStrings.current.dialogTitleAddInstance,
|
||||
style = MaterialTheme.typography.titleLarge,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
)
|
||||
TextField(
|
||||
|
@ -218,6 +218,7 @@ class UserDetailScreen(
|
||||
text = userName,
|
||||
maxLines = 1,
|
||||
overflow = TextOverflow.Ellipsis,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
)
|
||||
},
|
||||
actions = {
|
||||
|
@ -92,7 +92,7 @@ class UserInfoScreen(
|
||||
title = {
|
||||
Text(
|
||||
text = title,
|
||||
style = MaterialTheme.typography.bodyLarge,
|
||||
style = MaterialTheme.typography.titleMedium,
|
||||
color = MaterialTheme.colorScheme.onBackground,
|
||||
)
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user