// 自定义消息显示组件
Rectangle {
    property string message
    property int messageIndex
    
    width: parent.width
    height: 40
    color: messageIndex % 2 === 0 ? "#f0f0f0" : "#ffffff"
    
    Text {
        anchors.fill: parent
        anchors.margins: 5
        text: "#" + messageIndex + ": " + message
        verticalAlignment: Text.AlignVCenter
    }
} 