Fix build

This commit is contained in:
Jobobby04 2023-12-23 19:25:12 -05:00
parent 91d45cc8b9
commit 8effc7eb05
2 changed files with 5 additions and 6 deletions

View File

@ -1,5 +1,6 @@
package eu.kanade.presentation.manga.components package eu.kanade.presentation.manga.components
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.FlowRow import androidx.compose.foundation.layout.FlowRow
@ -32,7 +33,6 @@ import exh.metadata.metadata.base.RaisedTag
import exh.source.EH_SOURCE_ID import exh.source.EH_SOURCE_ID
import exh.source.EXH_SOURCE_ID import exh.source.EXH_SOURCE_ID
import exh.util.SourceTagsUtil import exh.util.SourceTagsUtil
import androidx.compose.material3.ChipBorder as ChipBorderM3
import androidx.compose.material3.SuggestionChipDefaults as SuggestionChipDefaultsM3 import androidx.compose.material3.SuggestionChipDefaults as SuggestionChipDefaultsM3
@Immutable @Immutable
@ -123,8 +123,8 @@ fun NamespaceTags(
SuggestionChipDefaults.suggestionChipBorder(borderWidth = it) SuggestionChipDefaults.suggestionChipBorder(borderWidth = it)
} ?: SuggestionChipDefaults.suggestionChipBorder(), } ?: SuggestionChipDefaults.suggestionChipBorder(),
borderM3 = borderDp?.let { borderM3 = borderDp?.let {
SuggestionChipDefaultsM3.suggestionChipBorder(borderWidth = it) SuggestionChipDefaultsM3.suggestionChipBorder(enabled = true, borderWidth = it)
} ?: SuggestionChipDefaultsM3.suggestionChipBorder(), } ?: SuggestionChipDefaultsM3.suggestionChipBorder(enabled = true),
) )
} }
} }
@ -135,11 +135,11 @@ fun NamespaceTags(
@Composable @Composable
fun TagsChip( fun TagsChip(
modifier: Modifier = Modifier,
text: String, text: String,
onClick: (() -> Unit)?, onClick: (() -> Unit)?,
modifier: Modifier = Modifier,
border: ChipBorder? = SuggestionChipDefaults.suggestionChipBorder(), border: ChipBorder? = SuggestionChipDefaults.suggestionChipBorder(),
borderM3: ChipBorderM3? = SuggestionChipDefaultsM3.suggestionChipBorder(), borderM3: BorderStroke? = SuggestionChipDefaultsM3.suggestionChipBorder(enabled = true),
) { ) {
CompositionLocalProvider(LocalMinimumInteractiveComponentEnforcement provides false) { CompositionLocalProvider(LocalMinimumInteractiveComponentEnforcement provides false) {
if (onClick != null) { if (onClick != null) {

View File

@ -582,7 +582,6 @@
<string name="short_title">短标题</string> <string name="short_title">短标题</string>
<string name="cover_image_file_type">转换图像类型</string> <string name="cover_image_file_type">转换图像类型</string>
<string name="thumbnail_image_file_type">缓存图像类型</string> <string name="thumbnail_image_file_type">缓存图像类型</string>
<string name="scanlator">扫译组</string>
<string name="uploader_capital">上传者名字</string> <string name="uploader_capital">上传者名字</string>
<string name="uploader">上传者</string> <string name="uploader">上传者</string>
<string name="rating_string">评分字符串</string> <string name="rating_string">评分字符串</string>