Merge branch '1.24.6.2'
This commit is contained in:
commit
f5d6d6764d
7 files changed
+62
No files matched your search
@@ -31,6 +31,7 @@ import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.res.stringResource
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
import androidx.compose.ui.text.style.TextAlign
|
||||
import androidx.compose.ui.text.style.TextOverflow
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.unit.sp
|
||||
@@ -624,6 +625,55 @@ fun FilterManagementScreen(
|
||||
}
|
||||
}
|
||||
}
|
||||
if (
|
||||
categories.getOrNull(currentTabIndex) == favoriteText &&
|
||||
filteredLutList.isEmpty()
|
||||
) {
|
||||
item(key = "favorite_empty_state") {
|
||||
Box(
|
||||
modifier = Modifier
|
||||
.fillParentMaxSize()
|
||||
.padding(horizontal = 24.dp),
|
||||
contentAlignment = Alignment.Center
|
||||
) {
|
||||
Column(
|
||||
horizontalAlignment = Alignment.CenterHorizontally
|
||||
) {
|
||||
Box(
|
||||
modifier = Modifier
|
||||
.size(72.dp)
|
||||
.background(
|
||||
color = Color(0xFFFF6B35).copy(alpha = 0.12f),
|
||||
shape = RoundedCornerShape(36.dp)
|
||||
),
|
||||
contentAlignment = Alignment.Center
|
||||
) {
|
||||
Icon(
|
||||
imageVector = AppIcons.StarBorder,
|
||||
contentDescription = null,
|
||||
tint = Color(0xFFFF6B35),
|
||||
modifier = Modifier.size(34.dp)
|
||||
)
|
||||
}
|
||||
Spacer(modifier = Modifier.height(20.dp))
|
||||
Text(
|
||||
text = stringResource(R.string.favorite_empty_title),
|
||||
color = Color.White,
|
||||
fontSize = 18.sp,
|
||||
fontWeight = FontWeight.Medium
|
||||
)
|
||||
Spacer(modifier = Modifier.height(8.dp))
|
||||
Text(
|
||||
text = stringResource(R.string.favorite_empty_message),
|
||||
color = Color.White.copy(alpha = 0.55f),
|
||||
fontSize = 14.sp,
|
||||
lineHeight = 20.sp,
|
||||
textAlign = TextAlign.Center
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
itemsIndexed(filteredLutList, key = { _, it -> it.id }) { index, lutInfo ->
|
||||
ReorderableItem(reorderableLazyListState, key = lutInfo.id) { isDragging ->
|
||||
FilterManagementItem(
|
||||
|
||||
@@ -534,6 +534,8 @@
|
||||
<string name="favorite">收藏</string>
|
||||
<string name="add_to_favorites">加入收藏</string>
|
||||
<string name="remove_from_favorites">取消收藏</string>
|
||||
<string name="favorite_empty_title">尚無收藏</string>
|
||||
<string name="favorite_empty_message">點按濾鏡上的星號,即可將它加入此處。</string>
|
||||
<string name="built_in">內置</string>
|
||||
<string name="custom">自訂</string>
|
||||
<string name="uncategorized">未分類</string>
|
||||
|
||||
@@ -449,6 +449,8 @@
|
||||
<string name="favorite">เก็บรวบรวม</string>
|
||||
<string name="add_to_favorites">เพิ่มในรายการโปรด</string>
|
||||
<string name="remove_from_favorites">ยกเลิกรายการโปรด</string>
|
||||
<string name="favorite_empty_title">ยังไม่มีรายการโปรด</string>
|
||||
<string name="favorite_empty_message">แตะดาวบนฟิลเตอร์เพื่อเพิ่มไว้ที่นี่</string>
|
||||
<string name="built_in">ที่มากับแอป</string>
|
||||
<string name="custom">กำหนดเอง</string>
|
||||
<string name="uncategorized">ไม่มีหมวดหมู่</string>
|
||||
|
||||
@@ -534,6 +534,8 @@
|
||||
<string name="favorite">收藏</string>
|
||||
<string name="add_to_favorites">加入收藏</string>
|
||||
<string name="remove_from_favorites">取消收藏</string>
|
||||
<string name="favorite_empty_title">暂无收藏</string>
|
||||
<string name="favorite_empty_message">点击滤镜上的星标,即可将它添加到这里。</string>
|
||||
<string name="built_in">内置</string>
|
||||
<string name="custom">自定义</string>
|
||||
<string name="uncategorized">未分类</string>
|
||||
|
||||
@@ -534,6 +534,8 @@
|
||||
<string name="favorite">收藏</string>
|
||||
<string name="add_to_favorites">加入收藏</string>
|
||||
<string name="remove_from_favorites">取消收藏</string>
|
||||
<string name="favorite_empty_title">尚無收藏</string>
|
||||
<string name="favorite_empty_message">點按濾鏡上的星號,即可將它加入此處。</string>
|
||||
<string name="built_in">內置</string>
|
||||
<string name="custom">自訂</string>
|
||||
<string name="uncategorized">未分類</string>
|
||||
|
||||
@@ -534,6 +534,8 @@
|
||||
<string name="favorite">收藏</string>
|
||||
<string name="add_to_favorites">加入收藏</string>
|
||||
<string name="remove_from_favorites">取消收藏</string>
|
||||
<string name="favorite_empty_title">尚無收藏</string>
|
||||
<string name="favorite_empty_message">點按濾鏡上的星號,即可將它加入此處。</string>
|
||||
<string name="built_in">內置</string>
|
||||
<string name="custom">自訂</string>
|
||||
<string name="uncategorized">未分類</string>
|
||||
|
||||
@@ -544,6 +544,8 @@
|
||||
<string name="favorite">Favorites</string>
|
||||
<string name="add_to_favorites">Add to Favorites</string>
|
||||
<string name="remove_from_favorites">Remove from Favorites</string>
|
||||
<string name="favorite_empty_title">No favorites yet</string>
|
||||
<string name="favorite_empty_message">Tap the star on a filter to find it here.</string>
|
||||
<string name="built_in">Built-in</string>
|
||||
<string name="custom">Custom</string>
|
||||
<string name="uncategorized">Uncategorized</string>
|
||||
|
||||
Reference in new issue
Block a user