diff --git a/app/src/main/java/com/anytypeio/anytype/ui/vault/VaultScreen.kt b/app/src/main/java/com/anytypeio/anytype/ui/vault/VaultScreen.kt
index d968505ac5..935f753363 100644
--- a/app/src/main/java/com/anytypeio/anytype/ui/vault/VaultScreen.kt
+++ b/app/src/main/java/com/anytypeio/anytype/ui/vault/VaultScreen.kt
@@ -61,6 +61,7 @@ import com.anytypeio.anytype.core_ui.foundation.util.DraggableItem
import com.anytypeio.anytype.core_ui.foundation.util.dragContainer
import com.anytypeio.anytype.core_ui.foundation.util.rememberDragDropState
import com.anytypeio.anytype.core_ui.views.BodyBold
+import com.anytypeio.anytype.core_ui.views.BodySemiBold
import com.anytypeio.anytype.core_ui.views.Relations3
import com.anytypeio.anytype.core_ui.views.Title1
import com.anytypeio.anytype.core_utils.insets.EDGE_TO_EDGE_MIN_SDK
@@ -345,7 +346,7 @@ fun VaultSpaceCard(
) {
Text(
text = title.ifEmpty { stringResource(id = R.string.untitled) },
- style = BodyBold,
+ style = BodySemiBold,
color = colorResource(id = R.color.text_primary),
maxLines = 1,
overflow = TextOverflow.Ellipsis
diff --git a/core-ui/src/main/java/com/anytypeio/anytype/core_ui/views/TypographyCompose.kt b/core-ui/src/main/java/com/anytypeio/anytype/core_ui/views/TypographyCompose.kt
index feff6561f4..27c3e8e13d 100644
--- a/core-ui/src/main/java/com/anytypeio/anytype/core_ui/views/TypographyCompose.kt
+++ b/core-ui/src/main/java/com/anytypeio/anytype/core_ui/views/TypographyCompose.kt
@@ -61,6 +61,14 @@ val HeadlineSubheading =
//Content/Body/Bold
val BodyBold = TextStyle(
+ fontFamily = fontInterBold,
+ fontWeight = FontWeight.W700,
+ fontSize = 17.sp,
+ lineHeight = 24.sp,
+ letterSpacing = (-0.024).em
+)
+
+val BodySemiBold = TextStyle(
fontFamily = fontInterSemibold,
fontWeight = FontWeight.W600,
fontSize = 17.sp,
diff --git a/core-ui/src/main/res/drawable/ic_space_settings_invite_members.xml b/core-ui/src/main/res/drawable/ic_space_settings_invite_members.xml
index 9bc9814bb6..64379878f2 100644
--- a/core-ui/src/main/res/drawable/ic_space_settings_invite_members.xml
+++ b/core-ui/src/main/res/drawable/ic_space_settings_invite_members.xml
@@ -4,16 +4,7 @@
android:viewportWidth="24"
android:viewportHeight="24">
-
-
diff --git a/feature-ui-settings/src/main/java/com/anytypeio/anytype/ui_settings/space/new_settings/Items.kt b/feature-ui-settings/src/main/java/com/anytypeio/anytype/ui_settings/space/new_settings/Items.kt
index c356e1512a..92a52bbb95 100644
--- a/feature-ui-settings/src/main/java/com/anytypeio/anytype/ui_settings/space/new_settings/Items.kt
+++ b/feature-ui-settings/src/main/java/com/anytypeio/anytype/ui_settings/space/new_settings/Items.kt
@@ -61,6 +61,7 @@ import com.anytypeio.anytype.core_ui.foundation.noRippleThrottledClickable
import com.anytypeio.anytype.core_ui.views.BodyBold
import com.anytypeio.anytype.core_ui.views.BodyCalloutRegular
import com.anytypeio.anytype.core_ui.views.BodyRegular
+import com.anytypeio.anytype.core_ui.views.BodySemiBold
import com.anytypeio.anytype.core_ui.views.Caption1Regular
import com.anytypeio.anytype.core_ui.views.PreviewTitle1Regular
import com.anytypeio.anytype.core_ui.widgets.ListWidgetObjectIcon
@@ -135,11 +136,6 @@ fun DefaultTypeItem(
style = PreviewTitle1Regular,
color = colorResource(id = R.color.text_primary),
)
- ListWidgetObjectIcon(
- modifier = Modifier,
- iconSize = 20.dp,
- icon = icon
- )
Text(
modifier = Modifier.padding(start = 8.dp),
text = name.take(10),
@@ -150,7 +146,7 @@ fun DefaultTypeItem(
)
Image(
painter = painterResource(id = R.drawable.ic_disclosure_8_24),
- contentDescription = "Members icon",
+ contentDescription = null,
modifier = Modifier.size(24.dp)
)
}
@@ -322,15 +318,11 @@ fun BaseButton(
Text(
modifier = Modifier
.wrapContentSize()
- .background(
- color = colorResource(id = R.color.transparent_active),
- shape = CircleShape
- )
.padding(horizontal = 6.dp),
text = "$count",
textAlign = TextAlign.Center,
- style = Caption1Regular,
- color = colorResource(id = R.color.text_white),
+ style = BodyRegular,
+ color = colorResource(id = R.color.text_secondary),
)
}
Image(
@@ -372,13 +364,13 @@ fun NewSpaceNameInputField(
Column(modifier = modifier) {
Text(
- text = stringResource(id = R.string.space_name),
- style = BodyCalloutRegular.copy(color = colorResource(id = R.color.text_primary)),
+ text = stringResource(id = R.string.name),
+ style = Caption1Regular.copy(color = colorResource(id = R.color.text_primary)),
color = colorResource(id = R.color.text_secondary)
)
NewSettingsTextField(
value = nameValue.value,
- textStyle = BodyBold.copy(color = colorResource(id = R.color.text_primary)),
+ textStyle = BodySemiBold.copy(color = colorResource(id = R.color.text_primary)),
onValueChange = {
nameValue.value = it
},
@@ -400,6 +392,7 @@ fun NewSpaceDescriptionBlock(
description: String,
isEditEnabled: Boolean,
onDescriptionSet: (String) -> Unit = {},
+ allowEmptyValue: Boolean = true
) {
val descriptionValue = remember { mutableStateOf(description) }
@@ -414,16 +407,14 @@ fun NewSpaceDescriptionBlock(
.debounce(300L)
.dropWhile { input -> input == description }
.distinctUntilChanged()
- .filter { it.isNotEmpty() }
- .collect { query ->
- onDescriptionSet(query)
- }
+ .filter { if (allowEmptyValue) true else it.isNotEmpty() }
+ .collect { query -> onDescriptionSet(query) }
}
Column(modifier = modifier) {
Text(
- text = stringResource(id = R.string.space_settings_space_description_hint),
- style = BodyCalloutRegular,
+ text = stringResource(id = R.string.description),
+ style = Caption1Regular,
color = colorResource(id = R.color.text_secondary)
)
NewSettingsTextField(
@@ -450,7 +441,7 @@ fun NewSettingsTextField(
onValueChange: (String) -> Unit,
visualTransformation: VisualTransformation = VisualTransformation.None,
keyboardActions: KeyboardActions = KeyboardActions.Default,
- textStyle: TextStyle = BodyBold,
+ textStyle: TextStyle = BodySemiBold,
placeholderText: String,
isEditEnabled: Boolean
) {
@@ -653,8 +644,7 @@ fun AutoCreateWidgetItem(
checkedBorderColor = Color.Transparent,
uncheckedBorderColor = Color.Transparent,
checkedTrackColor = colorResource(R.color.palette_system_amber_50),
- uncheckedTrackColor = colorResource(R.color.palette_system_amber_50),
- uncheckedThumbColor = colorResource(R.color.glyph_white)
+ uncheckedTrackColor = colorResource(R.color.shape_secondary)
)
)
diff --git a/feature-ui-settings/src/main/java/com/anytypeio/anytype/ui_settings/space/new_settings/NewSettings.kt b/feature-ui-settings/src/main/java/com/anytypeio/anytype/ui_settings/space/new_settings/NewSettings.kt
index bde5254723..03cc0ff011 100644
--- a/feature-ui-settings/src/main/java/com/anytypeio/anytype/ui_settings/space/new_settings/NewSettings.kt
+++ b/feature-ui-settings/src/main/java/com/anytypeio/anytype/ui_settings/space/new_settings/NewSettings.kt
@@ -46,6 +46,7 @@ import com.anytypeio.anytype.presentation.spaces.UiEvent
import com.anytypeio.anytype.presentation.spaces.UiSpaceSettingsItem
import com.anytypeio.anytype.presentation.spaces.UiSpaceSettingsState
import com.anytypeio.anytype.ui_settings.R
+import timber.log.Timber
@Composable
fun SpaceSettingsContainer(
@@ -508,7 +509,6 @@ private fun EditDescriptionField(
initialInput: String,
onSaveFieldValueClicked: (String) -> Unit
) {
-
var fieldInput by remember { mutableStateOf(initialInput) }
Scaffold(
@@ -527,7 +527,7 @@ private fun EditDescriptionField(
.noRippleClickable {
onSaveFieldValueClicked(fieldInput)
},
- text = "Done",
+ text = stringResource(R.string.done),
style = PreviewTitle1Medium,
color = if (fieldInput != initialInput) {
colorResource(id = R.color.text_primary)
diff --git a/localization/src/main/res/values/strings.xml b/localization/src/main/res/values/strings.xml
index bc991e1da7..5074d499b2 100644
--- a/localization/src/main/res/values/strings.xml
+++ b/localization/src/main/res/values/strings.xml
@@ -1955,8 +1955,8 @@ Please provide specific details of your needs here.
Add to the current type
Remove from the object
- Name
- Description
+ Add a name
+ Add a description
Collaboration
Content Model
Preferences
diff --git a/payments/src/main/java/com/anytypeio/anytype/payments/screens/AnyNameView.kt b/payments/src/main/java/com/anytypeio/anytype/payments/screens/AnyNameView.kt
index 25917c5fca..99174ff696 100644
--- a/payments/src/main/java/com/anytypeio/anytype/payments/screens/AnyNameView.kt
+++ b/payments/src/main/java/com/anytypeio/anytype/payments/screens/AnyNameView.kt
@@ -37,6 +37,7 @@ import com.anytypeio.anytype.core_ui.foundation.Divider
import com.anytypeio.anytype.core_ui.views.BodyBold
import com.anytypeio.anytype.core_ui.views.BodyCallout
import com.anytypeio.anytype.core_ui.views.BodyRegular
+import com.anytypeio.anytype.core_ui.views.BodySemiBold
import com.anytypeio.anytype.core_ui.views.Relations2
import com.anytypeio.anytype.payments.R
import com.anytypeio.anytype.payments.models.TierAnyName
@@ -79,7 +80,7 @@ fun AnyNameView(
modifier = Modifier.fillMaxWidth(),
text = stringResource(id = R.string.payments_tier_details_name_title),
color = colorResource(id = R.color.text_primary),
- style = BodyBold,
+ style = BodySemiBold,
textAlign = TextAlign.Start
)
Spacer(modifier = Modifier.height(6.dp))
diff --git a/payments/src/main/java/com/anytypeio/anytype/payments/screens/EnterCodeScreen.kt b/payments/src/main/java/com/anytypeio/anytype/payments/screens/EnterCodeScreen.kt
index eb9340f75a..82e58fda27 100644
--- a/payments/src/main/java/com/anytypeio/anytype/payments/screens/EnterCodeScreen.kt
+++ b/payments/src/main/java/com/anytypeio/anytype/payments/screens/EnterCodeScreen.kt
@@ -45,6 +45,7 @@ import androidx.compose.ui.unit.dp
import com.anytypeio.anytype.core_models.membership.MembershipErrors
import com.anytypeio.anytype.core_ui.foundation.noRippleThrottledClickable
import com.anytypeio.anytype.core_ui.views.BodyBold
+import com.anytypeio.anytype.core_ui.views.BodySemiBold
import com.anytypeio.anytype.core_ui.views.HeadlineTitle
import com.anytypeio.anytype.core_ui.views.PreviewTitle1Regular
import com.anytypeio.anytype.payments.R
@@ -113,7 +114,7 @@ private fun ModalCodeContent(
.fillMaxWidth()
.padding(start = 16.dp, end = 16.dp),
text = stringResource(id = com.anytypeio.anytype.localization.R.string.payments_code_title),
- style = BodyBold,
+ style = BodySemiBold,
color = colorResource(
id = R.color.text_primary
),
diff --git a/payments/src/main/java/com/anytypeio/anytype/payments/screens/InfoCardView.kt b/payments/src/main/java/com/anytypeio/anytype/payments/screens/InfoCardView.kt
index 1ac02fcd89..a20d61df31 100644
--- a/payments/src/main/java/com/anytypeio/anytype/payments/screens/InfoCardView.kt
+++ b/payments/src/main/java/com/anytypeio/anytype/payments/screens/InfoCardView.kt
@@ -23,6 +23,7 @@ import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.dp
import com.anytypeio.anytype.core_ui.R
import com.anytypeio.anytype.core_ui.views.BodyBold
+import com.anytypeio.anytype.core_ui.views.BodySemiBold
import com.anytypeio.anytype.core_ui.views.Relations2
@Composable
@@ -60,7 +61,7 @@ fun InfoCard(
.verticalScroll(rememberScrollState()),
text = title,
color = colorResource(id = R.color.text_primary),
- style = BodyBold,
+ style = BodySemiBold,
textAlign = TextAlign.Center
)
Text(