- Rename test-apps to base-apps with proper manifest.json for each app - Add is_system_app flag to app discovery and Lua API - Fix icon path resolution for /system/icons/ paths - Add layout.lua and layout.rcss for reusable UI components - Update home screen to dynamically load all apps from manifests - Update all app RML files to use layout components - Comprehensive testing framework documentation with JSON action format - Add tests/ directory structure for automated UI testing
221 lines
7.7 KiB
Plaintext
221 lines
7.7 KiB
Plaintext
<rml>
|
|
<head>
|
|
<link type="text/rcss" href="../../ui/html.rcss"/>
|
|
<link type="text/rcss" href="../../ui/theme.rcss"/>
|
|
<link type="text/rcss" href="../../ui/components.rcss"/>
|
|
<link type="text/rcss" href="../../ui/layout.rcss"/>
|
|
<script src="../../scripts/navigation.lua"></script>
|
|
<script src="../../scripts/layout.lua"></script>
|
|
<title>Messages</title>
|
|
<style>
|
|
.conversations-list {
|
|
flex: 1;
|
|
overflow: auto;
|
|
}
|
|
|
|
.conversation-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 12px 16px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.conversation-item:hover {
|
|
background-color: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.conversation-item:active {
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.conversation-avatar {
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: 28px;
|
|
margin-right: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 22px;
|
|
color: #000000;
|
|
}
|
|
|
|
.conversation-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.conversation-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.conversation-name {
|
|
font-size: 18px;
|
|
font-weight: 500;
|
|
color: #FFFFFF;
|
|
}
|
|
|
|
.conversation-time {
|
|
font-size: 14px;
|
|
color: #666666;
|
|
}
|
|
|
|
.conversation-preview {
|
|
font-size: 16px;
|
|
color: #B3B3B3;
|
|
margin-top: 4px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.conversation-unread {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 12px;
|
|
background-color: #BB86FC;
|
|
color: #000000;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-left: 8px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="app-screen" onload="initLayout(document)" data-model="messages">
|
|
<!-- System Status Bar -->
|
|
<div class="system-status-bar">
|
|
<span id="status-time" class="system-status-time">12:30</span>
|
|
<div class="system-status-icons">
|
|
<img src="../../icons/wifi.tga"/>
|
|
<img src="../../icons/signal.tga"/>
|
|
<img src="../../icons/battery.tga"/>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- App Bar -->
|
|
<div class="app-bar">
|
|
<div class="app-bar-back" onclick="goBack()">
|
|
<img src="../../icons/back.tga"/>
|
|
</div>
|
|
<span class="app-bar-title">Messages</span>
|
|
<div class="app-bar-actions">
|
|
<div class="app-bar-action">
|
|
<img src="../../icons/search.tga"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Conversations List -->
|
|
<div class="app-content with-nav">
|
|
<div class="conversations-list">
|
|
<!-- Alice -->
|
|
<div class="conversation-item">
|
|
<div class="conversation-avatar" style="background-color: #E91E63;">A</div>
|
|
<div class="conversation-content">
|
|
<div class="conversation-header">
|
|
<span class="conversation-name">Alice Johnson</span>
|
|
<span class="conversation-time">2:34 PM</span>
|
|
</div>
|
|
<div class="conversation-preview">Hey! Are you coming to the party tonight?</div>
|
|
</div>
|
|
<div class="conversation-unread">2</div>
|
|
</div>
|
|
|
|
<!-- Bob -->
|
|
<div class="conversation-item">
|
|
<div class="conversation-avatar" style="background-color: #2196F3;">B</div>
|
|
<div class="conversation-content">
|
|
<div class="conversation-header">
|
|
<span class="conversation-name">Bob Williams</span>
|
|
<span class="conversation-time">1:15 PM</span>
|
|
</div>
|
|
<div class="conversation-preview">Thanks for the help yesterday!</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Carol -->
|
|
<div class="conversation-item">
|
|
<div class="conversation-avatar" style="background-color: #4CAF50;">C</div>
|
|
<div class="conversation-content">
|
|
<div class="conversation-header">
|
|
<span class="conversation-name">Carol Davis</span>
|
|
<span class="conversation-time">Yesterday</span>
|
|
</div>
|
|
<div class="conversation-preview">The meeting has been rescheduled to Friday</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- David -->
|
|
<div class="conversation-item">
|
|
<div class="conversation-avatar" style="background-color: #FF9800;">D</div>
|
|
<div class="conversation-content">
|
|
<div class="conversation-header">
|
|
<span class="conversation-name">David Brown</span>
|
|
<span class="conversation-time">Yesterday</span>
|
|
</div>
|
|
<div class="conversation-preview">Can you send me the files?</div>
|
|
</div>
|
|
<div class="conversation-unread">1</div>
|
|
</div>
|
|
|
|
<!-- Emma -->
|
|
<div class="conversation-item">
|
|
<div class="conversation-avatar" style="background-color: #9C27B0;">E</div>
|
|
<div class="conversation-content">
|
|
<div class="conversation-header">
|
|
<span class="conversation-name">Emma Wilson</span>
|
|
<span class="conversation-time">Mon</span>
|
|
</div>
|
|
<div class="conversation-preview">See you at the coffee shop!</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Frank -->
|
|
<div class="conversation-item">
|
|
<div class="conversation-avatar" style="background-color: #00BCD4;">F</div>
|
|
<div class="conversation-content">
|
|
<div class="conversation-header">
|
|
<span class="conversation-name">Frank Miller</span>
|
|
<span class="conversation-time">Sun</span>
|
|
</div>
|
|
<div class="conversation-preview">Great game last night!</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Grace -->
|
|
<div class="conversation-item">
|
|
<div class="conversation-avatar" style="background-color: #673AB7;">G</div>
|
|
<div class="conversation-content">
|
|
<div class="conversation-header">
|
|
<span class="conversation-name">Grace Lee</span>
|
|
<span class="conversation-time">Sat</span>
|
|
</div>
|
|
<div class="conversation-preview">Happy birthday! 🎂</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- FAB -->
|
|
<div class="btn-fab">
|
|
<img src="../../icons/add.tga" style="width: 32px; height: 32px;"/>
|
|
</div>
|
|
|
|
<!-- System Navigation Bar -->
|
|
<div class="system-nav-bar">
|
|
<div class="system-nav-btn" onclick="onBackPressed()">
|
|
<img src="../../icons/back.tga"/>
|
|
</div>
|
|
<div class="system-nav-home" onclick="onHomePressed()"></div>
|
|
<div class="system-nav-btn" onclick="onRecentPressed()">
|
|
<img src="../../icons/menu.tga"/>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</rml>
|