Stream BLE advertisements into a dedicated pairing flow with arm, ring, serial, and hardware variant detection. Add proximity ranking, device artwork, pairing safeguards, and unit coverage for discovery and candidate grouping.
185 lines
2.9 KiB
CSS
185 lines
2.9 KiB
CSS
@import '@nativescript/theme/css/core.css';
|
|
@import '@nativescript/theme/css/default.css';
|
|
|
|
Page {
|
|
background-color: #ffffff;
|
|
color: #222222;
|
|
}
|
|
|
|
ActionBar {
|
|
background-color: #424242;
|
|
color: #ffffff;
|
|
}
|
|
|
|
ActionItem {
|
|
color: #ffffff;
|
|
}
|
|
|
|
TextField {
|
|
background-color: #ffffff;
|
|
color: #222222;
|
|
}
|
|
|
|
.system-name-modal TextField {
|
|
background-color: #ffffff;
|
|
color: #222222;
|
|
}
|
|
|
|
Button.-primary {
|
|
font-size: 18;
|
|
}
|
|
|
|
/*
|
|
* Stands in for the lens preview when showing it would be misleading (silent
|
|
* mode, or a disconnect explained by a flat battery). Sized by the view model
|
|
* to the preview's own box so the form doesn't reflow, and kept dark so it
|
|
* reads as "where the preview goes" rather than as a page-level banner.
|
|
*/
|
|
.display-preview-message {
|
|
background-color: #222222;
|
|
color: #ffffff;
|
|
padding: 16;
|
|
}
|
|
|
|
.display-preview-message Label {
|
|
font-size: 18;
|
|
text-align: center;
|
|
}
|
|
|
|
.system-name-modal {
|
|
margin: 16;
|
|
padding: 16;
|
|
background-color: #f6f6f6;
|
|
color: #222222;
|
|
border-color: #222222;
|
|
border-width: 1;
|
|
border-radius: 8;
|
|
}
|
|
|
|
/*
|
|
* Pairing scan list (phone-ui/pairing-page). Rows are Repeater items: product
|
|
* art (or a colourway swatch) on the left, decoded SKU + proximity + serial in
|
|
* the middle, a chevron/check on the right.
|
|
*/
|
|
.pairing-instructions {
|
|
color: #555555;
|
|
font-size: 14;
|
|
}
|
|
|
|
.pairing-status {
|
|
font-size: 14;
|
|
margin-left: 8;
|
|
}
|
|
|
|
.pairing-section {
|
|
font-size: 16;
|
|
font-weight: bold;
|
|
margin-bottom: 4;
|
|
}
|
|
|
|
.pairing-empty {
|
|
color: #777777;
|
|
font-size: 14;
|
|
padding: 8 0;
|
|
}
|
|
|
|
.pairing-row {
|
|
background-color: #f4f4f4;
|
|
border-color: #dddddd;
|
|
border-width: 1;
|
|
border-radius: 10;
|
|
padding: 10;
|
|
margin-bottom: 8;
|
|
}
|
|
|
|
.pairing-row-selected {
|
|
background-color: #e6f0ff;
|
|
border-color: #3b6fd6;
|
|
}
|
|
|
|
.pairing-row-incomplete {
|
|
background-color: #fafafa;
|
|
border-color: #e6e6e6;
|
|
}
|
|
|
|
.pairing-art {
|
|
vertical-align: center;
|
|
}
|
|
|
|
.pairing-title {
|
|
font-size: 16;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.pairing-badge {
|
|
font-size: 11;
|
|
font-weight: bold;
|
|
color: #2a5bc4;
|
|
background-color: #dbe6fb;
|
|
border-radius: 9;
|
|
padding: 1 7;
|
|
}
|
|
|
|
.pairing-variant {
|
|
font-size: 13;
|
|
font-weight: bold;
|
|
color: #333333;
|
|
}
|
|
|
|
.pairing-proximity {
|
|
font-size: 12;
|
|
color: #666666;
|
|
}
|
|
|
|
.pairing-proximity-immediate {
|
|
color: #2a5bc4;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.pairing-serial {
|
|
font-size: 12;
|
|
color: #666666;
|
|
font-family: monospace;
|
|
}
|
|
|
|
.pairing-arms {
|
|
font-size: 12;
|
|
color: #444444;
|
|
}
|
|
|
|
.pairing-warning {
|
|
font-size: 12;
|
|
color: #a33a1f;
|
|
margin-top: 4;
|
|
}
|
|
|
|
.pairing-swatch-label {
|
|
font-size: 11;
|
|
color: #555555;
|
|
}
|
|
|
|
.pairing-chevron {
|
|
font-size: 22;
|
|
color: #444444;
|
|
margin-left: 6;
|
|
}
|
|
|
|
.pairing-selection {
|
|
background-color: #eef4ff;
|
|
border-radius: 10;
|
|
padding: 10;
|
|
}
|
|
|
|
.pairing-diagnostics {
|
|
font-size: 11;
|
|
color: #888888;
|
|
font-family: monospace;
|
|
}
|
|
|
|
Button.pairing-link {
|
|
background-color: transparent;
|
|
color: #2a5bc4;
|
|
font-size: 14;
|
|
border-width: 0;
|
|
}
|