feat(chat-ui): 更新聊天UI和场景配置

- 优化聊天消息显示
- 调整UI布局
This commit is contained in:
王浩
2026-01-09 23:23:41 +08:00
parent 136e1344a0
commit e335a35f6c
6 changed files with 31 additions and 35 deletions

View File

@@ -103,8 +103,8 @@ func _apply_style() -> void:
# 设置面板样式
add_theme_stylebox_override("panel", _get_self_style())
# 设置文字颜色
username_label.add_theme_color_override("font_color", Color.WHITE)
# 设置文字颜色 - ID使用金色 #FFD700
username_label.add_theme_color_override("font_color", Color(1.0, 0.8431373, 0.0))
timestamp_label.add_theme_color_override("font_color", Color(0.7, 0.7, 0.7))
else:
# 他人的消息:左侧对齐,灰色背景
@@ -114,8 +114,8 @@ func _apply_style() -> void:
# 设置面板样式
add_theme_stylebox_override("panel", _get_other_style())
# 设置文字颜色
username_label.add_theme_color_override("font_color", Color(0.2, 0.4, 0.8))
# 设置文字颜色 - ID使用蓝色 #69c0ff
username_label.add_theme_color_override("font_color", Color(0.4117647, 0.7529412, 1.0))
timestamp_label.add_theme_color_override("font_color", Color(0.5, 0.5, 0.5))
# 获取自己消息的样式