Files
MosisService/base-apps/com.mosis.contacts/contact_detail.rml
omigamedev 1f91d7508e add base-apps with manifests, layout system, and testing documentation
- 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
2026-01-20 09:14:05 +01:00

162 lines
4.8 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"/>
<script src="../../scripts/navigation.lua"></script>
<script src="../../scripts/phone.lua"></script>
<script src="../../scripts/contacts.lua"></script>
<title>Contact</title>
<style>
.contact-detail-screen {
width: 100%;
height: 100%;
background-color: #121212;
display: flex;
flex-direction: column;
}
.contact-header {
background: linear-gradient(180deg, #1E1E1E 0%, #121212 100%);
padding: 24px;
display: flex;
flex-direction: column;
align-items: center;
}
.contact-avatar-large {
width: 96px;
height: 96px;
border-radius: 48px;
background-color: #BB86FC;
display: flex;
align-items: center;
justify-content: center;
font-size: 40px;
color: #000000;
margin-bottom: 16px;
}
.contact-name-large {
font-size: 24px;
font-weight: 500;
color: #FFFFFF;
margin-bottom: 8px;
}
.contact-actions {
display: flex;
gap: 32px;
margin-top: 24px;
}
.contact-action {
display: flex;
flex-direction: column;
align-items: center;
cursor: pointer;
}
.contact-action-icon {
width: 56px;
height: 56px;
border-radius: 28px;
background-color: #BB86FC;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 8px;
}
.contact-action-icon img {
width: 32px;
height: 32px;
pointer-events: none;
}
.contact-action-label {
font-size: 16px;
color: #B3B3B3;
}
.contact-info-section {
padding: 16px;
}
.contact-info-item {
display: flex;
align-items: center;
padding: 16px 0;
}
.contact-info-icon {
width: 28px;
height: 28px;
margin-right: 16px;
}
.contact-info-content {
flex: 1;
}
.contact-info-label {
font-size: 16px;
color: #B3B3B3;
}
.contact-info-value {
font-size: 16px;
color: #FFFFFF;
margin-top: 4px;
}
</style>
</head>
<body class="contact-detail-screen" onload="updateContactDetail()">
<!-- App Bar -->
<div class="app-bar">
<div class="app-bar-nav btn-icon" onclick="goBack()"><img src="../../icons/back.tga" style="width: 32px; height: 32px;"/></div>
<span class="app-bar-title">Contact</span>
<div class="btn-icon"><img src="../../icons/more.tga" style="width: 32px; height: 32px;"/></div>
</div>
<!-- Contact Header -->
<div class="contact-header">
<div class="contact-avatar-large" id="contact-avatar">?</div>
<div class="contact-name-large" id="contact-name">Contact Name</div>
<div class="contact-actions">
<div class="contact-action" id="call-action">
<div class="contact-action-icon" style="background-color: #4CAF50;">
<img src="../../icons/phone.tga"/>
</div>
<span class="contact-action-label">Call</span>
</div>
<div class="contact-action" id="message-action">
<div class="contact-action-icon" style="background-color: #2196F3;">
<img src="../../icons/message.tga"/>
</div>
<span class="contact-action-label">Message</span>
</div>
</div>
</div>
<!-- Contact Info -->
<div class="contact-info-section">
<div class="contact-info-item">
<img src="../../icons/phone.tga" class="contact-info-icon" style="width: 28px; height: 28px;"/>
<div class="contact-info-content">
<div class="contact-info-label">Mobile</div>
<div class="contact-info-value" id="contact-phone">+1 (555) 000-0000</div>
</div>
</div>
<div class="contact-info-item">
<img src="../../icons/message.tga" class="contact-info-icon" style="width: 28px; height: 28px;"/>
<div class="contact-info-content">
<div class="contact-info-label">Email</div>
<div class="contact-info-value" id="contact-email">email@example.com</div>
</div>
</div>
</div>
</body>
</rml>