Merge pull request #50 from Kevinlinpr/feat/pr-20251104-154907
修改底部导航栏颜色,暗夜模式缺省图
This commit is contained in:
@@ -134,7 +134,7 @@ fun FavouriteListPage() {
|
||||
) {
|
||||
Image(
|
||||
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),
|
||||
contentDescription = "No favourites",
|
||||
modifier = Modifier.size(110.dp)
|
||||
|
||||
@@ -280,8 +280,11 @@ fun IndexScreen() {
|
||||
) {
|
||||
item.forEachIndexed { idx, it ->
|
||||
val isSelected = model.tabIndex == idx
|
||||
// 定义新的选中颜色
|
||||
val selectedColor = Color(0xFF7C45ED)
|
||||
|
||||
val iconTint by animateColorAsState(
|
||||
targetValue = if (isSelected) AppColors.brandColorsColor else AppColors.text,
|
||||
targetValue = if (isSelected) selectedColor else AppColors.text,
|
||||
animationSpec = tween(durationMillis = 250), label = ""
|
||||
)
|
||||
|
||||
@@ -343,7 +346,7 @@ fun IndexScreen() {
|
||||
.width(48.dp)
|
||||
.height(32.dp)
|
||||
.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)
|
||||
),
|
||||
contentAlignment = Alignment.Center
|
||||
@@ -362,7 +365,7 @@ fun IndexScreen() {
|
||||
Text(
|
||||
text = it.label(),
|
||||
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
|
||||
)
|
||||
}
|
||||
|
||||
@@ -212,10 +212,12 @@ fun EmptyAgentsView() {
|
||||
if (isNetworkAvailable) {
|
||||
Image(
|
||||
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),
|
||||
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))
|
||||
|
||||
BIN
app/src/main/res/mipmap-xhdpi/ai_dark.png
Normal file
BIN
app/src/main/res/mipmap-xhdpi/ai_dark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
BIN
app/src/main/res/mipmap-xhdpi/invalid_dark.png
Normal file
BIN
app/src/main/res/mipmap-xhdpi/invalid_dark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/ai_dark.png
Normal file
BIN
app/src/main/res/mipmap-xxhdpi/ai_dark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
BIN
app/src/main/res/mipmap-xxhdpi/invalid_dark.png
Normal file
BIN
app/src/main/res/mipmap-xxhdpi/invalid_dark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/ai_dark.png
Normal file
BIN
app/src/main/res/mipmap-xxxhdpi/ai_dark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.4 KiB |
BIN
app/src/main/res/mipmap-xxxhdpi/invalid_dark.png
Normal file
BIN
app/src/main/res/mipmap-xxxhdpi/invalid_dark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.5 KiB |
@@ -149,7 +149,7 @@
|
||||
<string name="chat_group">群聊</string>
|
||||
<string name="chat_friend">朋友</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_empty_title">AI 在等你的开场白</string>
|
||||
|
||||
Reference in New Issue
Block a user