上架图-缺省图调整

This commit is contained in:
2025-09-02 16:32:59 +08:00
parent 0ac3312fea
commit 2b0d33fdbe
142 changed files with 115 additions and 63 deletions

View File

@@ -81,7 +81,7 @@ fun CommentNoticeScreen() {
Box(
modifier = Modifier
.fillMaxSize()
.padding(top = 188.dp),
.padding(top = 149.dp),
contentAlignment = Alignment.TopCenter
) {
Column(
@@ -89,22 +89,22 @@ fun CommentNoticeScreen() {
modifier = Modifier.fillMaxWidth()
) {
androidx.compose.foundation.Image(
painter = painterResource(id = R.mipmap.rider_pro_followers_empty),
painter = painterResource(id = R.mipmap.qst_pl_qs_img),
contentDescription = "No Comment",
modifier = Modifier.size(140.dp)
modifier = Modifier.size(181.dp)
)
Spacer(modifier = Modifier.size(24.dp))
Text(
text = "Wait for the first traveler to appear~",
text = "等一位旅人~",
color = AppColors.text,
fontSize = 16.sp,
fontWeight = FontWeight.W600
)
Spacer(modifier = Modifier.size(8.dp))
Text(
text = "Post to connect.",
text = "去发布动态,让更多人参与对话",
color = AppColors.text,
fontSize = 16.sp,
fontSize = 14.sp,
fontWeight = FontWeight.W400
)
}

View File

@@ -70,7 +70,7 @@ fun FollowerNoticeScreen() {
Box(
modifier = Modifier
.fillMaxSize()
.padding(top=188.dp),
.padding(top=149.dp),
contentAlignment = Alignment.TopCenter
) {
Column(
@@ -78,22 +78,22 @@ fun FollowerNoticeScreen() {
modifier = Modifier.fillMaxWidth()
) {
Image(
painter = painterResource(id = R.mipmap.rider_pro_followers_empty),
painter = painterResource(id = R.mipmap.qst_fs_qs_img),
contentDescription = "No Followers",
modifier = Modifier.size(140.dp)
modifier = Modifier.size(181.dp)
)
Spacer(modifier = Modifier.size(24.dp))
androidx.compose.material.Text(
text = "No followers yet",
text = "还没有人关注哦",
color = AppColors.text,
fontSize = 16.sp,
fontWeight = FontWeight.W600
)
Spacer(modifier = Modifier.size(8.dp))
androidx.compose.material.Text(
text = "Share your life and get more followers.",
text = "去发布动态,吸引更多粉丝~",
color = AppColors.text,
fontSize = 16.sp,
fontSize = 14.sp,
fontWeight = FontWeight.W400
)
}

View File

@@ -73,7 +73,7 @@ fun FollowingListScreen(userId: Int) {
Box(
modifier = Modifier
.fillMaxSize()
.padding(top=188.dp),
.padding(top=149.dp),
contentAlignment = Alignment.TopCenter
) {
Column(
@@ -81,22 +81,22 @@ fun FollowingListScreen(userId: Int) {
modifier = Modifier.fillMaxWidth()
) {
Image(
painter = painterResource(id = R.mipmap.rider_pro_following_empty),
painter = painterResource(id = R.mipmap.qst_gz_qs_img_my),
contentDescription = null,
modifier = Modifier.size(140.dp)
modifier = Modifier.size(181.dp)
)
Spacer(modifier = Modifier.size(24.dp))
androidx.compose.material.Text(
text = "You haven't followed anyone yet",
text = "没有关注任何灵魂",
color = appColors.text,
fontSize = 16.sp,
fontWeight = FontWeight.W600
)
Spacer(modifier = Modifier.size(8.dp))
androidx.compose.material.Text(
text = "Click start your social journey.",
color = appColors.text,
fontSize = 16.sp,
text = "探索一下,总有一个你想靠近的光点 ✨",
color = appColors.secondaryText,
fontSize = 14.sp,
fontWeight = FontWeight.W400
)
}

View File

@@ -106,7 +106,7 @@ fun AgentChatListScreen() {
Spacer(modifier = Modifier.height(8.dp))
Text(
text = stringResource(R.string.agent_chat_empty_subtitle),
color = AppColors.text,
color = AppColors.secondaryText,
fontSize = 14.sp
)
}

View File

@@ -72,12 +72,12 @@ fun FriendChatListScreen() {
//verticalArrangement = Arrangement.Center
) {
Spacer(modifier = Modifier.height(80.dp))
Spacer(modifier = Modifier.height(39.dp))
Image(
painter = painterResource(id = R.mipmap.icon_friend_chat_empty),
painter = painterResource(id = R.mipmap.qs_py_qs_img),
contentDescription = "null data",
modifier = Modifier
.size(140.dp)
.size(181.dp)
)
Spacer(modifier = Modifier.height(24.dp))
Text(
@@ -89,7 +89,7 @@ fun FriendChatListScreen() {
Spacer(modifier = Modifier.height(8.dp))
Text(
text = stringResource(R.string.friend_chat_empty_subtitle),
color = AppColors.text,
color = AppColors.secondaryText,
fontSize = 14.sp
)
}

View File

@@ -69,12 +69,12 @@ fun GroupChatListScreen() {
.padding(16.dp),
horizontalAlignment = Alignment.CenterHorizontally,
) {
Spacer(modifier = Modifier.height(80.dp))
Spacer(modifier = Modifier.height(39.dp))
Image(
painter = painterResource(id = R.mipmap.icon_friend_chat_empty),
painter = painterResource(id = R.mipmap.qs_ql_qs_img),
contentDescription = "null data",
modifier = Modifier
.size(140.dp)
.size(181.dp)
)
Spacer(modifier = Modifier.height(24.dp))
Text(

View File

@@ -1,8 +1,10 @@
package com.aiosman.ravenow.ui.index.tabs.moment.tabs.timeline
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
@@ -11,6 +13,9 @@ import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.rememberLazyListState
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Button
import androidx.compose.material.ButtonDefaults
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.pullrefresh.PullRefreshIndicator
import androidx.compose.material.pullrefresh.pullRefresh
@@ -24,12 +29,15 @@ import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Brush
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import androidx.paging.compose.collectAsLazyPagingItems
import com.aiosman.ravenow.LocalAppTheme
import com.aiosman.ravenow.R
import com.aiosman.ravenow.ui.composables.MomentCard
import kotlinx.coroutines.launch
@@ -42,6 +50,7 @@ import kotlinx.coroutines.launch
fun TimelineMomentsList() {
val model = TimelineMomentViewModel
var moments = model.moments
val AppColors = LocalAppTheme.current
val scope = rememberCoroutineScope()
val state = rememberPullRefreshState(model.refreshing, onRefresh = {
model.refreshPager(
@@ -77,24 +86,28 @@ fun TimelineMomentsList() {
modifier = Modifier.fillMaxWidth()
) {
Image(
painter = painterResource(id = R.mipmap.rider_pro_following_empty),
painter = painterResource(id = R.mipmap.qst_gz_qs_img),
contentDescription = null,
modifier = Modifier.size(140.dp)
)
Spacer(modifier = Modifier.size(24.dp))
Text(
text = "You haven't followed anyone yet",
color = androidx.compose.material.MaterialTheme.colors.onBackground,
text = "连接世界,从关注开始",
color = AppColors.text,
fontSize = 16.sp,
fontWeight = FontWeight.W600
)
Spacer(modifier = Modifier.size(8.dp))
Text(
text = "Click start your social journey.",
color = androidx.compose.material.MaterialTheme.colors.onBackground,
text = "不如从一个 Agent 开始认识这世界?",
color = AppColors.text,
fontSize = 16.sp,
fontWeight = FontWeight.W400
)
Spacer(modifier = Modifier.size(16.dp))
ExploreButton(
onClick = { /* TODO: 添加点击事件处理 */ }
)
}
}
} else {
@@ -149,4 +162,43 @@ fun TimelineMomentsList() {
}
}
}
}
@Composable
fun ExploreButton(
onClick: () -> Unit
) {
val gradientBrush = Brush.linearGradient(
colors = listOf(
Color(0xFFee2a33),
Color(0xFFd80264),
Color(0xFF664c92)
)
)
Button(
onClick = onClick,
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 144.dp)
.height(48.dp),
shape = RoundedCornerShape(30.dp),
colors = ButtonDefaults.buttonColors(
backgroundColor = Color.Transparent
),
contentPadding = PaddingValues(0.dp)
) {
Box(
modifier = Modifier
.fillMaxSize()
.background(gradientBrush),
contentAlignment = Alignment.Center
) {
Text(
text = "去探索",
fontSize = 16.sp,
fontWeight = FontWeight.Bold,
color = Color.White
)
}
}
}

View File

@@ -53,7 +53,7 @@ fun UserAgentsList(
modifier: Modifier = Modifier
) {
val AppColors = LocalAppTheme.current
LazyColumn(
modifier = modifier.fillMaxSize(),
verticalArrangement = Arrangement.spacedBy(8.dp)
@@ -195,7 +195,7 @@ fun UserAgentCard(
@Composable
fun EmptyAgentsView() {
val AppColors = LocalAppTheme.current
Column(
modifier = Modifier
.fillMaxWidth()
@@ -203,27 +203,27 @@ fun EmptyAgentsView() {
horizontalAlignment = Alignment.CenterHorizontally
) {
Image(
painter = painterResource(R.mipmap.rider_pro_agent),
painter = painterResource(R.mipmap.qs_ai_qs_img),
contentDescription = "暂无Agent",
modifier = Modifier.size(48.dp),
colorFilter = ColorFilter.tint(AppColors.secondaryText.copy(alpha = 0.5f))
modifier = Modifier.size(181.dp),
)
Spacer(modifier = Modifier.height(16.dp))
Spacer(modifier = Modifier.height(24.dp))
Text(
text = "暂无创建的智能体",
fontSize = 14.sp,
color = AppColors.secondaryText,
fontWeight = FontWeight.W500
text = "专属AI等你召唤",
fontSize = 16.sp,
color = AppColors.text,
fontWeight = FontWeight.W600
)
Spacer(modifier = Modifier.height(8.dp))
Text(
text = "去创建你的第一个智能体吧",
fontSize = 12.sp,
color = AppColors.secondaryText.copy(alpha = 0.7f)
text = "AI将成为你的伙伴而不是工具",
fontSize = 14.sp,
color = AppColors.secondaryText,
fontWeight = FontWeight.W400
)
}
}

View File

@@ -318,7 +318,7 @@ fun MomentResultTab() {
verticalArrangement = Arrangement.Center
) {
androidx.compose.foundation.Image(
painter = painterResource(id = R.mipmap.rider_pro_followers_empty),
painter = painterResource(id = R.mipmap.syss_yh_qs_img),
contentDescription = "No Comment",
modifier = Modifier.size(140.dp)
)
@@ -379,7 +379,7 @@ fun UserResultTab() {
verticalArrangement = Arrangement.Center
) {
androidx.compose.foundation.Image(
painter = painterResource(id = R.mipmap.rider_pro_followers_empty),
painter = painterResource(id = R.mipmap.syss_yh_qs_img),
contentDescription = "No Comment",
modifier = Modifier.size(140.dp)
)

View File

@@ -86,7 +86,7 @@ fun LikeNoticeScreen() {
if (likes.itemCount == 0) {
Box(
modifier = Modifier.fillMaxSize()
.padding(top=188.dp),
.padding(top=149.dp),
contentAlignment = Alignment.TopCenter
) {
Column(
@@ -94,22 +94,22 @@ fun LikeNoticeScreen() {
horizontalAlignment = Alignment.CenterHorizontally
) {
Image(
painter = painterResource(id = R.mipmap.rider_pro_like_empty),
painter = painterResource(id = R.mipmap.qst_z_qs_img),
contentDescription = "No Notice",
modifier = Modifier.size(140.dp)
modifier = Modifier.size(181.dp)
)
Spacer(modifier = Modifier.height(24.dp))
Text(
text = "Your like notification box is feeling lonely~",
text = "你的赞在路上~",
color = AppColors.text,
fontSize = 16.sp,
fontWeight = FontWeight.W600,
)
Spacer(modifier = Modifier.size(8.dp))
Text(
text = "Agent&&friends might come upon seeing this~",
text = "智能体和朋友看到后,说不定马上就来~",
color = AppColors.text,
fontSize = 16.sp,
fontSize = 14.sp,
fontWeight = FontWeight.W400
)
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Some files were not shown because too many files have changed in this diff Show More