Files
client/DESIGN.md
T
omar 674cae8279
ci / linux-arm64-cross (push) Successful in 1m50s
ci / linux-x64 (push) Successful in 2m34s
release / linux-arm64 (push) Successful in 4m14s
release / linux-x64 (push) Successful in 4m50s
release / publish (push) Successful in 19s
Release report: avoid SIGPIPE under pipefail; feature matrix and design attribution corrections
2026-10-24 04:14:08 +03:00

3.9 KiB
Raw Permalink Blame History

Design

Documented from the shipped interface (app/renderer/styles/app.css, index.html) — this records what is built, it is not an aspiration. Mode: Operate. Direction: the category standard of voice-chat clients, an engineering choice for a familiar working tool, executed with a restrained peach accent. The only owner-pinned visual reference is the TeamSpeak 6 settings screenshot that the settings layout follows.

Layout

  • Two columns: sidebar clamp(280px, 27vw, 390px) (server header, host banner, channel tree, own-status footer) and a workspace (connect form, or channel header + optional stream viewer + chat, or settings).
  • Tree rows: channels with #/lock glyph, server channel icon at the right, server banner as a row background fading from the sidebar colour; members indented under channels with avatar/status dot, nickname (never truncated before group labels), server-configured group labels, mute/away/recording flags, group icons and country code, and a pill "Смотреть" button for streamers.
  • Settings follow the owner's pinned reference: the sidebar's room area is replaced by category navigation (Назад к серверу, groups Пользователь / Приложение / Информация, active item with an accent bar and tint), the workspace shows the selected category as titled cards (.card, 12 px radius) with an expandable "Подробности" area for advanced video information. The connection, voice footer and any stream keep running.
  • Saved servers sit above the tree as a compact list (name, address, action: Подключиться / Переключиться / Подключено); a bookmark button in the server header shows or hides it.
  • Stream viewer: black stage with the video contained, dark control bar (title, codec · resolution · fps, mute, volume 0–100 %, fullscreen, stop). Overlay text explains every non-live state.

Colour

Restrained strategy: warm neutrals plus one accent; state colours only where they mean something.

Token Light Dark Use
--bg #f6f3f0 #1b2029 window ground, settings background
--surface #fffdfb #242b37 workspace, inputs, settings cards
--sidebar #eee9e4 #1e242e sidebar, settings navigation
--sunken #e6e0da #171b23 footer, UID, group labels
--text / --text-2 / --text-3 #221c18 / #5e544d / #776c64 #e7ebf2 / #aab3c2 / #8e98aa text hierarchy
--accent #b24f26 #f09a6c primary buttons, selected tab, own name, focus
--accent-soft #fbe2d4 #3a3033 current channel, active settings category
--peach #f3a37c #f3a37c brand mark
--talk #1f8a5a #4fcf8e talking indicator, PTT held
--danger #b3261e #f08b82 mute/deafen active, errors

Theme follows the choice in Settings → Внешний вид (system by default, implemented through Electron nativeTheme.themeSource, so prefers-color-scheme stays the single switch). The dark palette uses the blue-gray surfaces of the owner's reference (--bg #1b2029, --surface #242b37, --sidebar #1e242e). Selection, caret, scrollbars and focus rings use the palette.

Type

System UI stack (system-ui, -apple-system, "Segoe UI", "Noto Sans", Ubuntu, Cantarell, …), 14 px base, line-height 1.45; headings 600–650 weight at 17–24 px; monospace only for the UID and codec lists (data). Tabular numerals for counts, times and statistics.

Components

Buttons (primary, default, ghost), 34 px icon buttons with aria-pressed states, fields with labels above, radio/checkbox choices with accent colour, range sliders, chat tabs with unread counters, toasts in a polite live region (errors 10 s, others 5 s). Icons are an inline SVG sprite drawn in one 1.8 stroke style.

Motion

Only colour transitions (120 ms) and the toast entrance (180 ms, exponential ease-out); everything is disabled under prefers-reduced-motion.