From 803cefd653c7a41f1c7a28c20430ed623d41ef7e Mon Sep 17 00:00:00 2001 From: Moepchi Date: Sun, 18 Oct 2026 17:46:29 +0000 Subject: [PATCH] Give Command Center its own sounds and a pixel terminal font Command Center now plays short synthesized blips instead of the default chimes, and every layout gets a mute toggle sound. The layout uses the self-hosted VT323 pixel font throughout; a design option switches back to the previous sans/mono mix. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU --- web/src/App.tsx | 35 +++++++- web/src/assets/fonts/OFL-VT323.txt | 93 +++++++++++++++++++++ web/src/assets/fonts/vt323-latin-ext.woff2 | Bin 0 -> 16372 bytes web/src/assets/fonts/vt323-latin.woff2 | Bin 0 -> 17936 bytes web/src/locales/cs-CZ.json | 2 + web/src/locales/de.json | 2 + web/src/locales/en.json | 2 + web/src/locales/fa.json | 2 + web/src/locales/zh-CN.json | 2 + web/src/soundpack.ts | 1 + web/src/sounds.ts | 72 +++++++++++++--- web/src/styles/ide.css | 77 +++++++++++++---- 12 files changed, 260 insertions(+), 28 deletions(-) create mode 100644 web/src/assets/fonts/OFL-VT323.txt create mode 100644 web/src/assets/fonts/vt323-latin-ext.woff2 create mode 100644 web/src/assets/fonts/vt323-latin.woff2 diff --git a/web/src/App.tsx b/web/src/App.tsx index c8fe814..3f908d0 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -132,6 +132,7 @@ import { loadSoundsEnabled, loadSoundsVolume, playSound, + setSoundStyle, saveCustomSound, saveEventSoundEnabled, saveSoundsEnabled, @@ -565,6 +566,7 @@ const AWAY_PRESETS_KEY = "webspeak3:away-presets"; /** "off" hides the server banner: it loads from whatever host the server * admin picked, which then sees the viewer's IP (review S12). */ const SERVER_BANNER_KEY = "webspeak3:server-banner"; +const IDE_PIXEL_FONT_KEY = "webspeak3:ide-pixel-font"; // Off by default: an inline chat image loads from whatever host the sender picked. const CHAT_IMAGES_KEY = "webspeak3:chat-images"; const DISCONNECT_MESSAGE_KEY = "webspeak3:disconnect-message"; @@ -5589,12 +5591,16 @@ function DesignPanel({ customThemes, onSaveCustomTheme, onDeleteCustomTheme, + idePixelFont, + onIdePixelFontChange, }: { designSelection: string; onSelectionChange: (next: string) => void; customThemes: CustomTheme[]; onSaveCustomTheme: (theme: CustomTheme) => void; onDeleteCustomTheme: (id: string) => void; + idePixelFont: boolean; + onIdePixelFontChange: (on: boolean) => void; }) { const t = useT(); const [editing, setEditing] = useState(null); @@ -5712,6 +5718,12 @@ function DesignPanel({ <>

{t("options.section.design")}

{t("design.subtitle")}

+ {resolveDesignThemeBase(designSelection, customThemes) === "ide" && ( + + )}
{builtins.map((th) => (