Skip to content

Commit 0be0602

Browse files
committed
chore(currencycreator): update icon step subtitle; tweak description text sizing
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent eaa9bec commit 0be0602

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

apps/flipcash/core/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@
384384
<string name="hint_currencyName">Currency Name</string>
385385
<string name="action_next">Next</string>
386386
<string name="title_currencyCreatorIconSelection">Upload Currency Icon</string>
387-
<string name="subtitle_currencyCreatorIconSelection">Et nulla qui esse adipisicing veniam deserunt amet veniam veniam veniam cupidatat enim id</string>
387+
<string name="subtitle_currencyCreatorIconSelection">Choose an image that represents your currency. It will be displayed as a circular icon.</string>
388388
<string name="subtitle_currencyCreatorIconRecommended">500x500 Recommended</string>
389389
<string name="title_currencyCreatorDescription">Provide a description for your currency</string>
390390
<string name="hint_description">Description</string>

apps/flipcash/features/currency-creator/src/main/kotlin/com/flipcash/app/currencycreator/internal/screens/DescriptionSelectionScreen.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ internal fun DescriptionSelectionContent(
166166
textModifier = Modifier.sharedBoundsTransition(
167167
transition = SharedTransition.CurrencyName,
168168
),
169+
textStyle = CodeTheme.typography.displaySmall,
169170
tokenImage = state.icon.dataOrNull,
170171
imageSize = CodeTheme.dimens.staticGrid.x6,
171172
spacing = CodeTheme.dimens.grid.x2
@@ -191,8 +192,8 @@ internal fun DescriptionSelectionContent(
191192
keyboardType = KeyboardType.Text,
192193
imeAction = ImeAction.Done,
193194
),
194-
style = CodeTheme.typography.screenTitle,
195-
placeholderStyle = CodeTheme.typography.screenTitle.copy(
195+
style = CodeTheme.typography.textMedium,
196+
placeholderStyle = CodeTheme.typography.textMedium.copy(
196197
color = CodeTheme.colors.textTertiary,
197198
),
198199
maxLines = Int.MAX_VALUE,

ui/components/src/main/kotlin/com/getcode/ui/components/TextInput.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ fun TextInput(
146146
textFieldAlignment = textFieldAlignment,
147147
shape = shape,
148148
innerTextField = it,
149-
textModifier = textModifier,
149+
modifier = textModifier,
150150
)
151151
},
152152
scrollState = scrollState
@@ -174,7 +174,7 @@ private fun DecoratorBox(
174174
placeholder: String,
175175
placeholderStyle: TextStyle,
176176
placeholderColor: Color,
177-
textModifier: Modifier = Modifier,
177+
modifier: Modifier = Modifier,
178178
borderColor: Color = CodeTheme.colors.brandLight,
179179
contentPadding: PaddingValues,
180180
leadingIcon: (@Composable () -> Unit)?,
@@ -200,7 +200,7 @@ private fun DecoratorBox(
200200
.weight(1f),
201201
contentAlignment = textFieldAlignment
202202
) {
203-
Box(modifier = Modifier.padding(contentPadding).then(textModifier)) {
203+
Box(modifier = Modifier.padding(contentPadding).then(modifier)) {
204204
innerTextField()
205205
}
206206
if (state.text.isEmpty() && placeholder.isNotEmpty()) {

0 commit comments

Comments
 (0)