onionwire/android/app/src/main/res/drawable/ic_ow_warning.xml

21 lines
797 B
XML
Raw Normal View History

ui: design tokens and the shared component set (plan P1) One palette, one geometry, one button. The alpha build had a four-colour darkColorScheme and every screen inventing its own pill, which is why the app read as a debug harness; `ui/Theme.kt` now carries the tokens and new UI takes them from `OwColors` / `OwRadius` / `OwSize` instead of Material defaults. Tokens (§1.1, §1.2): canvas #0A0C0E, surface #12161A, interactive #1C2228, border #262E36, mint accent #2EE59D, text #F3F5F7 / #9BA3AE / #5E6773, and the amber/crimson status triples. Cards are 16dp; buttons and inputs are 12dp squircles; 999dp survives only for status pills. Typography is system sans for chrome, and `MonoStyle` is the single mono style, reserved for pubkeys, truncated locators, seeds, host:port and block heights. Primitives (§1.3), in `ui/components/`: - OwButton — primary / secondary / outline / destructive, exact heights and radii, no elevation; - OwSegmentedControl — one track, accent selected segment, animated; - OwAlertBanner — warning / error / info with a status icon and a tinted surface; - OwCard, OwDivider, OwPill, OwStatusDot, TorStatusPill, OwSectionTitle, OwIconButton (36dp), Identicon, OwConfirmDialog (typed confirmation), OwQrCode (zxing, light plate for scanning). Fourteen single-colour vector icons, so no `material-icons-extended` (a multi-MB dependency) and no icon font. `Label`/`Mono` moved here from the roster so the design system is not owned by one screen. Behaviour: none. These are pure view helpers.
2026-10-28 23:51:29 -04:00
<?xml version="1.0" encoding="utf-8"?>
<!-- OnionWire design-system icon. Outline only: a filled triangle would lose
its knock-out once the call site tints the drawable. -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#00000000"
android:strokeColor="#FF000000"
android:strokeWidth="1.8"
android:strokeLineJoin="round"
android:pathData="M12,3 L22,20.5 H2 Z" />
<path
android:fillColor="#00000000"
android:strokeColor="#FF000000"
android:strokeWidth="1.8"
android:strokeLineCap="round"
android:pathData="M12,9 V14.5 M12,17 V17.2" />
</vector>