Merge pull request #50 from Kevinlinpr/feat/pr-20251104-154907

修改底部导航栏颜色,暗夜模式缺省图
This commit is contained in:
2025-11-05 16:44:23 +08:00
committed by GitHub
11 changed files with 28 additions and 23 deletions

View File

@@ -134,7 +134,7 @@ fun FavouriteListPage() {
) { ) {
Image( Image(
painter = painterResource( painter = painterResource(
id = if (com.aiosman.ravenow.AppState.darkMode) R.mipmap.syss_yh_qs_as_img id = if (com.aiosman.ravenow.AppState.darkMode) R.mipmap.invalid_dark
else R.mipmap.invalid_name_1), else R.mipmap.invalid_name_1),
contentDescription = "No favourites", contentDescription = "No favourites",
modifier = Modifier.size(110.dp) modifier = Modifier.size(110.dp)

View File

@@ -280,8 +280,11 @@ fun IndexScreen() {
) { ) {
item.forEachIndexed { idx, it -> item.forEachIndexed { idx, it ->
val isSelected = model.tabIndex == idx val isSelected = model.tabIndex == idx
// 定义新的选中颜色
val selectedColor = Color(0xFF7C45ED)
val iconTint by animateColorAsState( val iconTint by animateColorAsState(
targetValue = if (isSelected) AppColors.brandColorsColor else AppColors.text, targetValue = if (isSelected) selectedColor else AppColors.text,
animationSpec = tween(durationMillis = 250), label = "" animationSpec = tween(durationMillis = 250), label = ""
) )
@@ -343,7 +346,7 @@ fun IndexScreen() {
.width(48.dp) .width(48.dp)
.height(32.dp) .height(32.dp)
.background( .background(
color = if (isSelected) AppColors.brandColorsColor.copy(alpha = 0.15f) else Color.Transparent, color = if (isSelected) selectedColor.copy(alpha = 0.15f) else Color.Transparent,
shape = RoundedCornerShape(12.dp) shape = RoundedCornerShape(12.dp)
), ),
contentAlignment = Alignment.Center contentAlignment = Alignment.Center
@@ -362,7 +365,7 @@ fun IndexScreen() {
Text( Text(
text = it.label(), text = it.label(),
fontSize = 10.sp, fontSize = 10.sp,
color = if (isSelected) Color.Blue else AppColors.text, color = if (isSelected) selectedColor else AppColors.text,
fontWeight = if (isSelected) FontWeight.W600 else FontWeight.Normal fontWeight = if (isSelected) FontWeight.W600 else FontWeight.Normal
) )
} }

View File

@@ -212,10 +212,12 @@ fun EmptyAgentsView() {
if (isNetworkAvailable) { if (isNetworkAvailable) {
Image( Image(
painter = painterResource( painter = painterResource(
id =if(AppState.darkMode) R.mipmap.qs_ai_qs_as_img id =if(AppState.darkMode) R.mipmap.ai_dark
else R.mipmap.ai), else R.mipmap.ai),
contentDescription = "暂无Agent", contentDescription = "暂无Agent",
modifier = Modifier.size(181.dp), modifier = Modifier
.size(width = 181.dp, height = 153.dp)
.align(Alignment.CenterHorizontally),
) )
Spacer(modifier = Modifier.height(24.dp)) Spacer(modifier = Modifier.height(24.dp))

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@@ -149,7 +149,7 @@
<string name="chat_group">群聊</string> <string name="chat_group">群聊</string>
<string name="chat_friend">朋友</string> <string name="chat_friend">朋友</string>
<string name="chat_all">全部</string> <string name="chat_all">全部</string>
<string name="favourites_null">咦,什么都没有...</string> <string name="favourites_null">暂无数据</string>
<string name="agent_chat_list_title">智能体聊天</string> <string name="agent_chat_list_title">智能体聊天</string>
<string name="agent_chat_empty_title">AI 在等你的开场白</string> <string name="agent_chat_empty_title">AI 在等你的开场白</string>