Files
faceclaw/app/app.css
T

403 lines
8.0 KiB
CSS

@import '@nativescript/theme/css/core.css';
@import '@nativescript/theme/css/default.css';
@import './phone-ui/remote-controls.css';
@import './phone-ui/pairing.css';
Page {
background-color: #ffffff;
color: #222222;
}
ActionBar {
background-color: #424242;
color: #ffffff;
}
ActionItem {
color: #ffffff;
}
/* The main page's custom titleView: title left; the EvenHub app icon,
* connection status and the warning triangle right-aligned beside the
* overflow menu. */
.action-bar-title {
color: #ffffff;
font-size: 18;
font-weight: bold;
vertical-align: center;
}
.action-bar-status {
color: #ffffff;
font-size: 14;
margin-right: 12;
vertical-align: center;
}
/* The foreground EvenHub app's icon (opens its phone UI); the padding widens
* the tap target. */
.action-bar-app-icon {
width: 32;
height: 32;
padding: 5.5;
margin-right: 8;
vertical-align: center;
}
/* The emoji brings its own yellow; the padding widens the tap target. */
.action-bar-warning {
font-size: 18;
padding: 4 6;
vertical-align: center;
}
TextField {
background-color: #ffffff;
color: #222222;
}
/* Without this, the theme's .ns-dark rules recolour the text white while the
* white background above sticks, rendering white-on-white fields.
* Order matters: .system-name-modal TextField must stay after this rule so the
* deliberately light modal wins the equal-specificity tie in dark mode. */
.ns-dark TextField {
background-color: #2e2e2e;
color: #f0f0f0;
}
.system-name-modal TextField,
.system-name-modal TextView {
background-color: #ffffff;
color: #222222;
}
Button.-primary {
font-size: 18;
}
/* Body/explanatory text in the onboarding flow; the theme default is too
* small to comfortably read paragraphs of legalese, especially on tablets. */
.body-text {
font-size: 18;
}
/* The logo art is black-on-transparent; tint it light in dark mode so it
* doesn't vanish into the dark page background. */
.ns-dark .onboarding-logo {
tint-color: #e6e6e6;
}
/* License / privacy-policy links in the onboarding disclaimer footer. The
* padding widens the tap target beyond the small text. */
.footer-link {
color: #3b6fd6;
font-size: 15;
text-decoration: underline;
padding: 4 8;
}
.ns-dark .footer-link {
color: #8ab0ff;
}
.footer-link-separator {
color: #777777;
font-size: 15;
padding: 4 0;
}
/* Bundled project docs (phone-ui/document-page). LICENSE and PRIVACY are
* hard-wrapped plain text, so keep the size modest to limit rewrapping. */
.document-text {
font-size: 13;
}
/* Developer BLE-bandwidth totals overlaid on the main page's bottom edge. */
.ble-bandwidth-indicator {
color: #777777;
font-size: 12;
padding: 2 8;
}
/*
* 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;
}
/* The modal stays light in dark mode (setting editor and keyboard-input
* panel); the .ns-dark pairing outguns the theme's dark-mode recolour of
* Label/.h2 so the title doesn't go white-on-light-gray. */
.system-name-modal Label,
.ns-dark .system-name-modal Label {
color: #222222;
}
/* Keyboard-input panel: tighter than the setting editor, with the text
* box's edges in line with the title and the one-strip buttons (the theme's
* 16dp TextView side margins doubled the inset). */
.system-name-modal.keyboard-input-panel {
margin: 8;
padding: 8 16 12 16;
}
.keyboard-input-panel TextView {
margin: 4 0 0 0;
padding: 6;
}
/* Glasses-only: the field stays focused for the IME but is an invisible
* sliver; the hint line takes its place. */
.keyboard-input-panel TextView.keyboard-input-field-hidden {
opacity: 0;
height: 1;
min-height: 0;
margin: 0;
padding: 0;
}
.system-name-modal Label.keyboard-input-hidden-hint,
.ns-dark .system-name-modal Label.keyboard-input-hidden-hint {
color: #666666;
padding: 8 0;
}
.keyboard-input-buttons {
margin-top: 8;
}
.keyboard-input-panel Button,
.keyboard-input-panel Button.-primary {
margin: 0;
font-size: 16;
}
.keyboard-input-panel Button.keyboard-input-gap {
margin-left: 8;
}
/* Flat icon buttons in the panel's title row (the modal stays light in dark
* mode, so one tint). */
.panel-icon-button {
padding: 6 8;
}
.panel-icon {
height: 20;
tint-color: #333333;
}
/* Modal behind the action bar's warning triangle: the problem-status warnings
* that used to sit inline on the main page, each with its fix-it button.
* The width is set from the view model (near-full-width on phones, capped on
* tablets); the padding lives on the content stack because a ScrollView does
* not apply its own padding to its content. */
.warnings-modal {
margin: 16;
background-color: #f6f6f6;
color: #222222;
border-color: #222222;
border-width: 1;
border-radius: 8;
}
.warnings-modal-content {
padding: 16;
}
/* The modal stays light in dark mode; the .ns-dark pairing outguns the
* theme's dark-mode recolour of Label/.h2 so the title doesn't go
* white-on-light-gray. */
.warnings-modal Label,
.ns-dark .warnings-modal Label {
color: #222222;
}
.warnings-modal-item {
margin-bottom: 12;
}
/*
* Conversation review (phone-ui/conversations-page, conversation-page,
* speakers-page). Cards follow the pairing-row look; speaker/emotion chips
* get their background colour inline (per-speaker / per-emotion), so the
* classes only carry shape and dark text that reads on the pastel palette.
*/
.conversation-row {
background-color: #f4f4f4;
border-color: #dddddd;
border-width: 1;
border-radius: 10;
padding: 10;
margin-bottom: 8;
}
.conversation-title {
font-size: 16;
font-weight: bold;
color: #222222;
}
.conversation-meta {
font-size: 12;
color: #666666;
}
.conversation-empty {
color: #777777;
font-size: 14;
padding: 8 0;
}
.ask-answer {
font-size: 15;
color: #222222;
padding: 4 0;
}
.ns-dark .ask-answer {
color: #e6e6e6;
}
.conversation-status {
font-size: 13;
color: #2a5bc4;
}
.speaker-chip {
font-size: 12;
color: #222222;
border-radius: 10;
padding: 2 8;
margin: 0 6 4 0;
}
.speaker-chip-selected {
border-width: 2;
border-color: #222222;
font-weight: bold;
}
.speaker-tag {
font-size: 11;
color: #555555;
background-color: #e6e6e6;
border-radius: 8;
padding: 1 6;
}
.speaker-wearer-badge {
font-size: 11;
font-weight: bold;
color: #2a5bc4;
background-color: #dbe6fb;
border-radius: 8;
padding: 1 6;
}
.transcript-row {
border-radius: 8;
padding: 8;
margin-bottom: 4;
}
.transcript-row-playing {
background-color: #e6f0ff;
}
.transcript-translation {
font-size: 13;
font-style: italic;
color: #777777;
}
.transcript-time {
font-size: 11;
color: #888888;
}
.transcript-emotion {
font-size: 11;
color: #222222;
border-radius: 8;
padding: 1 6;
}
.transcript-play {
font-size: 16;
color: #2a5bc4;
margin-left: 6;
}
.ns-dark .conversation-row {
background-color: #2e2e2e;
border-color: #4a4a4a;
}
.ns-dark .conversation-title {
color: #f0f0f0;
}
.ns-dark .conversation-meta {
color: #a0a0a0;
}
.ns-dark .conversation-empty {
color: #999999;
}
.ns-dark .conversation-status {
color: #7da7f5;
}
.ns-dark .speaker-chip-selected {
border-color: #f0f0f0;
}
.ns-dark .speaker-tag {
color: #cccccc;
background-color: #3c3c3c;
}
.ns-dark .speaker-wearer-badge {
color: #a8c4f5;
background-color: #2a3b5e;
}
.ns-dark .transcript-row-playing {
background-color: #333c4c;
}
.ns-dark .transcript-translation {
color: #999999;
}
.ns-dark .transcript-time {
color: #909090;
}
.ns-dark .transcript-play {
color: #7da7f5;
}