jumPhp/games/hello-hybrid/ui/style.css
David Nurdin e0e82a22cc Desktop apps: hybrid games, clipboard, tray, global shortcuts, Windows / macOS runtime
- ui: hybrid: an SDL game that also drives Tauri (Application::run() hands over to JumPHP\Tauri\Hybrid): native
  dialogs, tray icon, shortcuts and HTML windows beside its own; a plain game headless, in the browser, on phones and
  without FFI. bin/jumphp run uses the Tauri image; export:standalone a micro with SDL + FFI (tools/hybrid-extensions.txt).
  games/hello-hybrid: SDL balls + an HTML control panel.
- JumPHP\Native\Clipboard (Tauri, browser copy), App::tray() (JumPHP\Tauri\Tray), App::globalShortcut();
  native.copy / native.paste for pages; a command PHP waits for that fails now fails its Task ('result' event)
- runtime: clipboard-manager, global-shortcut, tray-icon; panics of a command stay on the native side; idle time
  after each frame so WebViews keep painting beside a busy game; JUMPHP_TAURI_TRACE=1
- .github/workflows/tauri.yml: the library for Linux, Windows, macOS (universal), hello-desktop run for real on
  each, release tauri-<key> (tools/tauri-key.sh); bin/jumphp tauri:download, used before building
- app:export --windows; the standalone workflow takes an extension list (the apps' / hybrid games' micros)
- docs/tauri.md, docs/tauri.fr.md, AGENTS.md §16, README, TODO

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JkYTqpYNZKwTnRZHQRD5HP
2026-10-31 22:30:21 +01:00

18 lines
1.3 KiB
CSS

:root { color-scheme: dark; --bg: #12142a; --panel: #1b1e3a; --fg: #e8e8f4; --muted: #8d8fb3; --accent: #ffcc33; }
* { box-sizing: border-box; }
body { margin: 0; padding: 20px 18px; background: var(--bg); color: var(--fg); font: 14px/1.45 system-ui, sans-serif; }
h1 { margin: 0; font-size: 20px; }
.muted { color: var(--muted); margin: 4px 0 18px; }
.small { font-size: 12px; margin-top: 16px; }
label { display: flex; justify-content: space-between; margin: 14px 0 6px; font-weight: 600; }
output { color: var(--accent); font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.swatches { display: flex; gap: 8px; }
.swatches button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; padding: 0; }
.swatches button.on { border-color: #fff; }
.row { display: flex; gap: 8px; margin-top: 20px; }
.row button { flex: 1; padding: 9px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: #12142a; font: inherit; font-weight: 600; cursor: pointer; }
.row button.ghost { background: transparent; color: var(--accent); }
.stats { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin: 20px 0 0; padding: 12px; background: var(--panel); border-radius: 10px; }
.stats dt { color: var(--muted); }
.stats dd { margin: 0; font-variant-numeric: tabular-nums; }