docs: replace long dashes, document icons, emoji and avatar rules

Update the status of the client UX defects handled by the interface work.
This commit is contained in:
Loki 2026-10-25 10:26:02 +01:00
parent 220af2d6a4
commit ca3465daa5
Signed by: boba
GPG key ID: 253067914055423B
19 changed files with 311 additions and 303 deletions

View file

@ -1,4 +1,4 @@
# VNOX Client — Design System
# VNOX Client - Design System
> Based on Hi-Fi Minimalism v2.0
> Adapted for: native desktop voice/chat client (Rust + egui + wgpu)
@ -25,32 +25,32 @@ gamer RGB · Discord clone · neon cyberpunk · glassmorphism · corporate SaaS
## Color Tokens
```css
/* Backgrounds — layered, never pure black */
/* Backgrounds - layered, never pure black */
--bg-base: #0d0d0d; /* root, titlebar */
--bg-surface: #151515; /* panels, sidebars (was #111111 — lifted for panel contrast) */
--bg-elevated: #1d1d1d; /* inputs, cards (was #141414 — lifted for depth) */
--bg-surface: #151515; /* panels, sidebars (was #111111 - lifted for panel contrast) */
--bg-elevated: #1d1d1d; /* inputs, cards (was #141414 - lifted for depth) */
--bg-interactive: #2a2a2a; /* hover targets, dropdowns */
/* Borders — lifted significantly for visual hierarchy */
/* Borders - lifted significantly for visual hierarchy */
--border-subtle: #1c1c1c; /* was #171717 */
--border-default: #262626; /* was #1e1e1e — now actually visible */
--border-default: #262626; /* was #1e1e1e - now actually visible */
--border-strong: #2e2e2e;
--border-accent: rgba(255, 107, 53, 0.20);
/* Accent — warm orange */
/* Accent - warm orange */
--accent: #ff6b35;
--accent-hover: #ff844f;
--accent-active: #e85d04;
--accent-10: rgba(255, 107, 53, 0.08);
--accent-20: rgba(255, 107, 53, 0.15);
/* Text — warm, never pure white */
/* Text - warm, never pure white */
--text-primary: #f4c89a; /* main content (added) */
--text-secondary: #c88b5a; /* names, labels */
--text-muted: #8a6a52; /* secondary info */
--text-dim: #6a4a2a; /* hints, timestamps */
--text-ghost: #5a422c; /* section labels, separators (was #3d2e20 — lifted) */
--text-invisible: #443222; /* near-invisible, decorative (was #2d1e12 — lifted) */
--text-ghost: #5a422c; /* section labels, separators (was #3d2e20 - lifted) */
--text-invisible: #443222; /* near-invisible, decorative (was #2d1e12 - lifted) */
/* Semantic */
--success: #7cb87a; /* online, connected, low latency */
@ -67,7 +67,7 @@ gamer RGB · Discord clone · neon cyberpunk · glassmorphism · corporate SaaS
## Typography
Клиент использует **только monospace**. Это намеренно — усиливает ощущение инструмента.
Клиент использует **только monospace**. Это намеренно - усиливает ощущение инструмента.
```
Primary font: IBM Plex Mono
@ -98,13 +98,13 @@ Letter spacing для section labels: `0.10–0.12em`, text-transform: uppercase
### Title bar (34px)
- Background: `--bg-strip` (`theme::BG_STRIP`); **без отдельной painter-linии** под всю ширину — переход «titlebar ↔ контент» только за счёт контраста `--bg-strip` vs `--bg-base`. Раньше 1px `hline` воспринимался как случайная полоска «под логотипом» из-за состыковки с левым rail.
- Background: `--bg-strip` (`theme::BG_STRIP`); **без отдельной painter-linии** под всю ширину - переход «titlebar ↔ контент» только за счёт контраста `--bg-strip` vs `--bg-base`. Раньше 1px `hline` воспринимался как случайная полоска «под логотипом» из-за состыковки с левым rail.
- Сетка из **трёх равных колонок**:
- **левая** — **`[ prefs ]`** + **`VNOX`** (wordmark `--text-primary`, слева направо после prefs);
- **центр** — статус ноды: **`●`** + **`NODE: …`** (`OFFLINE` / `CONNECTING` / имя ноды), **по центру средней колонки** (= визуальный центр окна);
- **правая** — **transport‑подсказка** справа: `transport: idle` · `transport: connecting…` · `transport: quic/v1`.
- Вход в настройки: **`[ prefs ]`** — явная консольная кнопка (без нестабильных Unicode‑иконок); при открытых настройках тот же текст, цвет **accent**. Дубль: кнопка **open prefs** в нижней левой колонке, **только пока offline**.
- Нативный заголовок ОС (**taskbar / список окон**) — короткий **`Vnox`**, чтобы не дублировать тот же wordmark **`VNOX`** внутри клиента.
- **левая** - **`[ prefs ]`** + **`VNOX`** (wordmark `--text-primary`, слева направо после prefs);
- **центр** - статус ноды: **`●`** + **`NODE: …`** (`OFFLINE` / `CONNECTING` / имя ноды), **по центру средней колонки** (= визуальный центр окна);
- **правая** - **transport‑подсказка** справа: `transport: idle` · `transport: connecting…` · `transport: quic/v1`.
- Вход в настройки: **`[ prefs ]`** - явная консольная кнопка (без нестабильных Unicode‑иконок); при открытых настройках тот же текст, цвет **accent**. Дубль: кнопка **open prefs** в нижней левой колонке, **только пока offline**.
- Нативный заголовок ОС (**taskbar / список окон**) - короткий **`Vnox`**, чтобы не дублировать тот же wordmark **`VNOX`** внутри клиента.
### Структура окна
@ -128,10 +128,10 @@ Letter spacing для section labels: `0.10–0.12em`, text-transform: uppercase
- Ширина **52px**, фон `--bg-strip`, как верхний titlebar для визуальной связности.
- Заголовок колонки: **SERVERS** (8px, `--text-ghost`, центрируется по ширине rail).
- Плитки **30×30px**, скругление 5px, **строго центрируются** по горизонтали (без случайной короткой линии‑разделителя посередине — она давала эффект «криво» в узком rail).
- Плитки **30×30px**, скругление 5px, **строго центрируются** по горизонтали (без случайной короткой линии‑разделителя посередине - она давала эффект «криво» в узком rail).
- **Idle** (нет активной закладки): рамка 1px `--border-faint`, подпись `···` во внутреннем поле, tooltip объясняет «подключайся через Connect».
- **Активная нода**: 2 символа аббревиатуры, `--accent` левый акцент 2px внутри плитки, `--accent-10` фон.
- **«+»**: только одна вторичная плита внизу; tooltip — «bookmark позже».
- **«+»**: только одна вторичная плита внизу; tooltip - «bookmark позже».
### Node switcher (legacy note)
@ -139,7 +139,7 @@ Letter spacing для section labels: `0.10–0.12em`, text-transform: uppercase
### Channel list (208px)
- Node info (верх): имя ноды 12px semibold + `lnex://nc.<short_id>` 9px `--text-ghost` при коннекте; офлайн — одна строка **not connected**
- Node info (верх): имя ноды 12px semibold + `lnex://nc.<short_id>` 9px `--text-ghost` при коннекте; офлайн - одна строка **not connected**
- Section labels: 9px uppercase, `--text-ghost`, letter-spacing 0.12em
- Channel item: 4px 12px padding, gap 6px (icon + name)
- Default: `--text-ghost`
@ -152,7 +152,7 @@ Letter spacing для section labels: `0.10–0.12em`, text-transform: uppercase
```
[ open prefs ] (только пока offline)
— voice ~ channel 00:42
- voice ~ channel 00:42
[x] microphone [x] hear others
[YU] you
@ -160,10 +160,10 @@ Letter spacing для section labels: `0.10–0.12em`, text-transform: uppercase
```
- **Не показывать** фиктивный RTT (например «12ms»), если нет реального измерения.
- **Не дублировать** протокольную строку вида `LNEx v1 · udp` под ником — перегружает и налезает на аватар/текст; протокол раскрывается в Connect / docs.
- Настройки **не** прячем в ряд мелких иконок у ника: основной вход — **`[ prefs ]`** в title bar; офлайн — компактная кнопка **open prefs**.
- **Не дублировать** протокольную строку вида `LNEx v1 · udp` под ником - перегружает и налезает на аватар/текст; протокол раскрывается в Connect / docs.
- Настройки **не** прячем в ряд мелких иконок у ника: основной вход - **`[ prefs ]`** в title bar; офлайн - компактная кнопка **open prefs**.
- В голосе: чекбоксы **microphone** / **hear others** (без эмодзи/символов, которые на части шрифтов дают «квадратики»).
- Avatar: 32×32px, radius 6px, disabled button (только визуал), self — `--accent-10` + border.
- Avatar: 32×32px, radius 6px, disabled button (только визуал), self - `--accent-10` + border.
### Main area
@ -228,9 +228,9 @@ thumb: 10px circle, --accent, subtle glow
```
Size variants:
sm — 24×24px, border-radius 5px (identity bar)
md — 26×26px, border-radius 6px (member list)
lg — 36×36px, border-radius 8px (identity card in settings)
sm - 24×24px, border-radius 5px (identity bar)
md - 26×26px, border-radius 6px (member list)
lg - 36×36px, border-radius 8px (identity card in settings)
Default: bg --bg-elevated, border --border-default, color --text-muted
Self: bg --accent-10, border --border-accent, color --accent
@ -246,7 +246,7 @@ display: flex + ::before/::after lines in --border-subtle
Examples:
● connected · nightcore.lnex · LNEx v1
— today —
- today -
```
---
@ -288,7 +288,7 @@ dot 5px --accent, box-shadow 0 0 6px rgba(255,107,53,0.5)
```
┌─────────────────────────────────────────────────────┐
│ titlebar — [prefs]* │ VNOX │ … │
│ titlebar - [prefs]* │ VNOX │ … │
│ открыть настройки: клик [prefs]; обратный маршрут │
│ тот же, пока приложение показывает settings screen │
├──────────────────────────────────────────────────────┤
@ -328,12 +328,12 @@ dot 5px --accent, box-shadow 0 0 6px rgba(255,107,53,0.5)
## Motion
```
duration-instant: 80ms — toggle, dot
duration-fast: 120ms — hover color change
duration-base: 150ms — toggle thumb, panel transitions
duration-slow: 250ms — page switch in settings
duration-instant: 80ms - toggle, dot
duration-fast: 120ms - hover color change
duration-base: 150ms - toggle thumb, panel transitions
duration-slow: 250ms - page switch in settings
ease: cubic-bezier(0.0, 0.0, 0.2, 1) — ease-out для всего
ease: cubic-bezier(0.0, 0.0, 0.2, 1) - ease-out для всего
```
Никаких scale transforms на hover. Только:
@ -352,7 +352,7 @@ ease: cubic-bezier(0.0, 0.0, 0.2, 1) — ease-out для всего
| Отдельная 1px линия на всю ширину только под titlebar (стек с rail = «случайная полоска») | Отделение только контрастом `--bg-strip` / `--bg-base`; линии локально там, где группируешь контент |
| Круглые аватары | Квадратные с border-radius 5–8px |
| Sidebar с серверами как у Discord (72px, круглые) | Узкий rail **52px**, квадратные плитки **30×30**, аббревиатура, заголовок **SERVERS** |
| Панель участников справа как у Discord | Нет отдельной панели, участники — в боковом списке |
| Панель участников справа как у Discord | Нет отдельной панели, участники - в боковом списке |
| Neon glow на элементах | Subtle glow max 0.18 opacity |
| Pure black backgrounds | Минимум #0a0a0a |
| Pure white text | Максимум #f4c89a |
@ -364,7 +364,7 @@ ease: cubic-bezier(0.0, 0.0, 0.2, 1) — ease-out для всего
## Noise Texture
Лёгкий шум поверх всего интерфейса — добавляет аналоговое ощущение.
Лёгкий шум поверх всего интерфейса - добавляет аналоговое ощущение.
```css
.root::after {
@ -389,12 +389,20 @@ ease: cubic-bezier(0.0, 0.0, 0.2, 1) — ease-out для всего
Палитра допустимых цветов (тёплая, совместимая с системой):
```
#c88b5a — warm amber (default / self)
#6a9ecf — steel blue
#7cb87a — warm green
#c49a6c — sand
#b07cc6 — muted purple
#d4876a — terracotta
#c88b5a - warm amber (default / self)
#6a9ecf - steel blue
#7cb87a - warm green
#c49a6c - sand
#b07cc6 - muted purple
#d4876a - terracotta
```
Не используются: яркие/neon цвета, холодные синие, чистый белый/красный.
## Icons, avatars and emoji in the Slint client
- Icons are Lucide SVG files in `src/ui/slint/assets/icons/`, drawn by `Symbol` and tinted with the theme colours. Do not draw icons from text characters or hand written paths. Licenses are listed in `docs/THIRD_PARTY.md`.
- Icon-only buttons set `text` as their accessible label and tooltip (`ActionButton { icon: "mic"; text: "Mute microphone"; }`). Use `labeled: true` to show the text next to the icon and `primary: true` for the one accent coloured action of a view.
- Every avatar in the app is an `AvatarView` (user panel, messages, members, voice cards, friends, settings). Pass the surface colour behind it as `mask`.
- A `FocusScope` placed above a `TouchArea` must set `focus-on-click: false`, otherwise it swallows the first click and controls only react from the second one. The `ui_smoke` test sends real pointer events to guard this.
- Emoji come from bundled Noto Emoji images (`src/ui/emoji/`), because Slint draws emoji characters in text with a monochrome fallback glyph. The picker and reaction chips use the images.