跳转至

应用壁纸

迁自 DESIGN.md §2,规范效力不变。文中未注明文档的 §N 均指 DESIGN.md。

Optional application wallpaper (user decision, 2026-10-01)

An explicitly selected Desktop wallpaper replaces the flat page canvas across the whole host application: title bar, navigation, messages, tool-pane chrome, settings and other host pages share continuous viewport-aligned artwork. This opt-in setting supersedes the CINDY sidebar-only backdrop treatment while active; selecting None switches to the native desktop backdrop described below, without modifying theme files or tokens. Blend wallpaper with the theme surface, never a fixed black overlay in Light mode. Image opacity must not affect text or icons. In-page raised surfaces — composer, message bubbles, tool and table-header cards, page cards, inputs and the selected sidebar row — tint the wallpaper with their own token at 72% (Light) / 64% (Dark) instead of covering it (user request, 2026-11-03), in the CINDY themes only: their translucent-ink text keeps its contrast on any wallpaper, while other built-in themes use fixed text colors calibrated against solid surfaces and keep them opaque. Higher visibility raises that opacity so the artwork contributes at most 16% under the surface, keeping the tertiary text tier at the 3:1 floor over any wallpaper (84% at 100% visibility). Fill only, no backdrop-filter, which would become the containing block for the composer's fixed palettes. Floating layers (menus, popovers, dialogs, tooltips, anything positioned over other content), any surface holding syntax-highlighted code, such as code blocks and diffs (the fixed syntax palette needs a solid surface, §15.4), and embedded web or editor content keep their readable opaque surfaces. Implementation: the in-page glass rule in globals.css, scoped to page containers and excluding floating roles and absolute / fixed / sticky surfaces; the floor comes from useWallpaperBackground. A sticky header filled with its own card's token (.wallpaper-sticky-header, such as the model list toolbar) stays clear over that glass card until it sticks over scrolled content, then takes back its opaque fill; elsewhere, and in browsers without scroll-state container queries, it keeps its fill unchanged. Desktop transparency uses this same rule and contrast floor, including its exclusions (user decision, 2026-11-08). Do not duplicate per-control styles by background source. At zero desktop transparency, keep raised surfaces fully opaque. The sidebar's own frost remains independent. Host layout dividers and plugin main-view canvases share the desktop background just as they share artwork; embedded controls retain their surfaces. Composer scroll masking must align with the same wallpaper instead of introducing an opaque footer rectangle. Built-in SVG wallpapers are decorative assets, not new semantic UI colors. Verify actual Light/Dark screenshots across host pages and the expanded tool pane.

Data-only v2 theme packages may supply wallpaper defaults through the same AppearanceService and media ingestion/decoding used by settings and approved fixed plugin operations. Explicit wallpaper overrides win; clearing the named override follows the selected theme. No second canvas, media protocol or per-theme glass styles are introduced. The shared renderer canvas lives in renderer/appearance/WallpaperPresenter.ts; the original hook is a thin export. Theme motion 0 also reduces transitions/playback, and OS Reduce motion always wins.

The built-in picker lists 13 artworks (user curation, 2026-10-17): the Cindy group — Whisper, Night Glance, Scarlet Stroll, Neon Silhouette, Prism Shards — followed by Night Launch, Silent Orbits, Dune Dawn, Planet Dawn, Indigo Folds, Dune Sphere, Ocean Clouds and Rose Quartz. All five Cindy wallpapers offer Static / Dynamic; their 1920×1080, 24fps, 10-second loops keep the source composition as first and last frame. The other eight are stills. All official originals are metadata-free WebP/MP4 delivered on demand from the CDN (user decision, 2026-10-17); only lightweight thumbnails and the three legacy scene previews ship with the app. Window Companion, Future Atelier and Dream Wander are retired from the picker (RETIRED_WALLPAPER_IDS, 2026-10-17). Their manifest entries and CDN objects stay, so a saved selection keeps its still and motion; while one is in use it appears selected right after None with its Static / Dynamic choice, and it disappears once the user switches away. Removing a catalog choice never rewrites appearance preferences or deletes CDN objects. All official images share the existing on-demand downloader, verified cache reuse, and preview fallback; only manifest entries with video metadata offer motion. Download progress appears as a 3px bottom track inside the selected thumbnail (user choice, 2026-10-19), with no visible percentage or separate row. Its transform interpolates the precise byte ratio over the base motion tier, linearly for this transfer indicator to avoid restarting an ease-in/out on every progress sample (registered narrow exception, DESIGN.md §14.4); reduced motion updates immediately. It follows real transfer progress and disappears once ready; cache hits show the original directly. A failed tile shows a retry icon and supports click, Enter and Space to retry, preserving the grid's single Tab stop and selected border. Expose progress and failure descriptions to assistive technology outside the radio descendants. Show the selected official wallpaper's bundled preview immediately while its original is loading or decoding (user decision, 2026-11-03, #8591). Download or decode failure keeps that selection's preview, not the previous wallpaper. Reuse already decoded original URLs directly when revisiting a selection. Crossfade both the preview and the ready original on the static canvas and its composer copies using opacity and the fast motion token, respecting reduced motion. Custom image replacements still retain the previous background until decoding succeeds. Reuse the settings download percentage normalization. Browsing the grid or hiding the wallpaper does not download originals; only a selected, visible image is requested. Reuse valid cached images offline and after upgrades. Do not request CDN assets for IDs absent from the manifest. Earlier unreleased artwork (including Blue Gaze, Amber Light and the 2026-10-16 batch trimmed on 2026-10-17) is not shipped and needs no compatibility. The new artwork uses the existing continuous cover fit, theme-derived visibility and blur controls. None remains the default. With None selected, visibility controls desktop background transparency (0% opaque, 100% clear); the left sidebar follows the same controls (user decision, 2026-11-10; refined 2026-11-11, below). Both controls remain sliders with the same ranges, preview/commit behavior and reset action when switching between None and artwork (user decision, 2026-11-08). Their labels and hints identify the current background source; do not replace desktop blur with a separate switch, except on Windows, where it is an on/off Switch (user decision, 2026-11-11; see below). Desktop transparency has its own optional desktopVisibility override, defaulting to 0% for both upgrades and new installs. Never infer desktop opt-in from legacy wallpaperVisibility or wallpaperOverlay; artwork keeps its existing values. Switching background sources restores each source's visibility. Reset removes the desktop override and returns to the original backdrop with its frosted sidebar. At 0% desktop transparency or wallpaper visibility, disable the blur slider and suspend background blur without writing over its saved value. Restore that value as soon as visibility becomes positive. macOS passes the numeric radius to the native window backdrop. See desktop-backdrop-blur-research.md. Text and controls are never faded. The left task sidebar follows the same visibility and blur controls as the main area (user decision, 2026-11-10). Do not add a separate sidebar preference, and do not add a shadow to the docked sidebar (owner decision, 2026-11-10: a trialed --shadow-menu edge was rejected); only its 1px divider separates it. With artwork, the docked sidebar paints no tint of its own and shows the same blurred canvas as the main area. On the desktop (user decision, 2026-11-11), the docked sidebar has the main area's hue and transparency, one step deeper: the shared veil on the aside plus a fixed shade on its frost layer (black, 4% light / 10% dark), so it is slightly deeper at every setting. The main veil starts at the sidebar's visible edge so the two coats never stack. On macOS a non-interactive native effect view covers only the sidebar's visible width (local per-window geometry following collapse/rail/peek animation and UI zoom; cleared when hidden or covered by artwork) and adds a fixed frost over the adjustable window radius. It keeps only the material's blur: its tint, blend and desktop-tinting layers and saturation boost are removed, and it stays active in an inactive window, because the system tint read as a cooler, different hue than Cindy's surfaces. An unrecognized private layer layout is left untouched (system material fallback), and leaving desktop mode restores the untouched material. Windows has no regional material: its sidebar shares the whole-window Acrylic and only the tint rule applies. The peek drawer takes the main area's color (owner decision, 2026-11-10) but covers at least 90%: it overlays app content, and CSS backdrop blur does not render in the transparent window, so a fully see-through drawer lets the text beneath collide with its own. The shared veil hides none of that content, so the drawer's own surface coat is max(main area's veil, 90%). It drops that ineffective blur and keeps its divider and its --shadow-menu floating-layer elevation. At 0% desktop transparency the original backdrop, docked sidebar and peek drawer are unchanged. 0% desktop transparency does not enter desktop-background mode on any platform: the window keeps its original backdrop (macOS HUD vibrancy with the frosted sidebar, Windows 11 22H2+ Acrylic, otherwise opaque) until transparency is raised (#9424). Electron applies Windows system backdrops only from build 22621, so earlier Windows 11 builds keep the opaque backdrop rather than a translucent backing without its material. The controls reuse the visibility and blur overrides. On macOS, the own-window native addon applies CGSSetWindowBackgroundBlurRadius (0–20), with fixed vibrancy removed so it cannot obscure radius changes. Artwork clears this native radius. Positive blur must preserve AppKit's native rounded window mask: a completely clear NSWindow background needs a visually negligible alpha (0.001), restored when blur is cleared without overwriting the next theme's background. The private API is resolved at runtime; a missing addon or failed call falls back to the system material. Windows 11 continues to use Acrylic for nonzero values; its tint follows each window's own light/dark mode, which Cindy sets from its resolved theme rather than the Windows setting (2026-11-11: a dark theme on light Windows had shown a white-tinted backdrop) and re-asserts after Windows theme changes. Acrylic's own tint strength is system-defined, so 100% desktop transparency with blur remains a theme-tinted frost rather than clear glass. Because that strength is fixed, the Windows desktop blur control is a Switch rather than a slider (artwork blur stays a slider); turning it on restores the last nonzero shared blur value; systems without a native material retain clear transparency. The hint describes system-default fallback where adjustable blur is unavailable. On Windows 11 22H2+ a window is created transparent only when the last session ended on a clear desktop (blur off); otherwise it is a regular frameless window, because a transparent window carrying Acrylic flickers (2026-11-11; see the research document's Windows device finding). transparent is fixed at creation, so turning desktop blur off in a regular window keeps Acrylic until the next launch, and turning it on in a transparent window may flicker until then; the switch hint tells users to restart after turning it off. Systems without a system backdrop always create transparent windows. A successful native call alone is not visual acceptance; keep the research document's validation limits. Selecting artwork restores the image/video controls. Reset removes these overrides. While a window's opaque in-app wallpaper canvas is active, disable its covered native macOS Vibrancy / Windows backdrop material. With None selected, restore the user's desktop backdrop choice when that canvas is removed. Use actual per-window canvas state rather than the saved selection; pending replacements may retain the previous canvas. The visibility veil (including 0%) remains opaque to the desktop. Wallpaper blur and in-app overlay blur keep their existing behavior. The picker remains an inline compact grid (user choice, 2026-10-15): use container-width-driven columns with a 6rem minimum, 8px grid gaps, 16:9 previews, and a 4px gap before each readable name. At the standard 1280px window width this shows eight columns; narrower windows naturally show fewer. Keep direct click-to-apply selection, the existing selected/focus treatment, and full names in accessible labels and hover/focus tooltips when the visible label is truncated. The grid has one Tab entry, using the selected visible tile or the first tile for a hidden saved selection. Arrow keys move focus and selection with wrapping; Home / End reach the first / last tile. An empty Custom tile only receives focus during arrow navigation; Enter / Space explicitly opens the file picker. Custom wallpaper is available through Choose Wallpaper, Replace Wallpaper and Remove Wallpaper in the same section (user addition, 2026-10-01; video support, 2026-10-05). Accept local PNG/JPEG/WebP up to 20 MB and 40 megapixels, store a metadata-free static image up to 3840 pixels in the managed media store. Also accept local MP4 videos up to 100 MB, preserving their bytes; H.264 is recommended for playback compatibility. Wallpaper selection and the custom media reference are shared within the Desktop profile, just like theme preferences (user decision, 2026-10-02). Import, replacement, removal and recycling are client-wide as well: no account database, account-bound operation guard or pre-release owner migration. The media store's client wallpaper scope isolates its bytes from chat attachments; switching accounts (or signing out) keeps the same wallpaper. Font-only utility renderers never receive custom media URLs. Detached sidebar and plugin-panel host chrome use the same wallpaper provider; plugin main-view documents share the host canvas while wallpaper is active, including when docked or detached. Only their html/body background color becomes transparent; theme surface tokens, controls, author background images, regular panels and settings webviews retain their own surfaces. Disabling wallpaper restores the page background without reloading the plugin. All webviews retain their permission boundary. Cancellation and import failures retain the existing media. Switching to a built-in or None keeps the imported media available; Remove Wallpaper forgets it. Custom imagery shares the continuous cover-fit canvas and readability veil. Custom MP4 exposes the existing Static / Dynamic choice: Static and reduced motion show a paused frame; Dynamic loops silently and pauses when hidden/minimized. Playback failure releases the decoder, leaves the theme surface visible and shows an actionable error in wallpaper settings. The custom video tile uses a film icon instead of opening a second decoder for a thumbnail. Wallpaper Visibility ranges from 0% (hidden) to 100% (fully visible), in 1% steps (user decision, 2026-10-05). Static images use the theme-surface veil with opacity equal to 100% minus visibility. Video uses visibility directly as the displayed frame's opacity over an opaque theme-surface backing, without a separate translucent veil; this avoids the observed Windows HDR brightness shift when P3 content changes the output composition. The video wrapper's opacity is reserved for loading/exit crossfades. Visibility never fades text or controls: they keep their token colors (including the translucent text tiers of §2) and no element opacity is layered on top. Release video playback at 0%. Blend-mode controls remain out of scope. Optional Wallpaper Blur (user addition, 2026-10-06) ranges from 0 (off, default) to 20 in whole steps, applying a CSS-pixel radius only to the wallpaper image/video. No UI, theme backing, or text is blurred; opacity remains on the displayed video frame. At zero, retain the existing filter-free rendering path. Overscan the artwork by three radii and clip the video at the viewport to avoid transparent edges; static and video crops must match. For blurred static scenes, reuse the moving-scene message fade instead of repainting a sharp wallpaper behind the composer. Persist only explicit overrides; Reset removes the blur override. Reuse the settings Slider with a localized accessible label and hint; None uses the desktop behavior above. Explain the additional GPU cost for video. Dragging previews both visibility and blur locally; only a committed pointer/keyboard value is saved and broadcast to other windows. Cancelled gestures, window blur or leaving settings discard the preview; a failed save restores the saved value. The macOS dispatcher caches successful native state per window: radius-only changes do not recreate the material, and failed native calls remain retryable. It also owns background-color writes so redundant updates cannot erase the tiny alpha backing that preserves AppKit window corners. Existing artwork preferences without an explicit visibility override keep the previous Light/Dark veil mapping and display its equivalent visibility. The unchanged soft default is 37% visible in Light and 27% in Dark. Adjusting the slider saves literal visibility, shared across themes; Reset removes that override and restores the theme-dependent default. Do not rewrite old preferences just because they were read or a theme changed. The earlier arrow, standalone portrait, gradient and paper options and their assets are removed; those saved selections normalize to None, leaving theme and font preferences unchanged. Built-in and custom wallpapers all share the same cover fit, so there is no fit selector.

Dynamic wallpapers (2026-10-01, applies to every built-in video): Static remains the default. Dynamic is a silent loop with a fixed camera that keeps the still's composition and full-window crop: no pans, tilts, dolly movement, zooms or perspective drift, and matching first and last frames alone is not enough (user correction, 2026-10-02). Download only selected, visible assets and request video only for active dynamic mode without reduced motion. Verify byte length and SHA-256 before placing assets in the existing client-wallpaper media scope. Valid cached content is reused across restarts, upgrades and accounts without another download; failures retain the preview and permit retry. The download and cache contract is defined in media-storage-and-protocols.md. Decode one local video per window and suspend playback while hidden/minimized. On macOS, keep the decoder out of layout and display its frames on a canvas so the wallpaper does not hold the display awake. Use the original still for reduced motion or playback failure. Static / Dynamic switches crossfade the video over the retained high-resolution still using fast/ease-move (150ms, the same pair as the still-image crossfade; maintainer ruling D-11, 2026-11-11), starting only after playback is ready. Switching back to Static releases the video after the fade; rapid toggles reverse it without adding a decoder. Reduced motion bypasses the transition and releases the video immediately. For moving scenes, fade the message layer above the composer instead of painting a static duplicate of the wallpaper over it. Check the loop seam and actual Light/Dark chat readability, including collapsed sidebars and resized windows.

Retired scenes (compatibility only)

Window Companion, Future Atelier and Dream Wander left the picker on 2026-10-17 (see above); these rules only matter while a saved selection still uses one of them. They place the Cindy character and black cat in a sunny window, a futuristic atelier and a floating garden, each as one viewport-sized, cover-fitted canvas behind navigation, chat and tools that is never confined to chat, edge-faded or moved when sidebars open; only window resizing changes the crop (user correction, 2026-10-01). They use a lighter theme-derived veil than arbitrary photos, with a stronger Dark veil. Their stills are 3584×2240 WebP and their videos 2304×1440, 24fps MP4 (Real-ESRGAN anime-video super-resolution of the approved 1214×758 sources, not native 2K generation), both downloaded on demand (2026-10-15 decision) with no resolution switching on window resize; only the bundled 640×400 previews enter the Renderer bundle. Do not regenerate, retime or reverse the accepted motion. Their art direction and motion acceptance notes (2026-10-01 / 10-02) are archived in design-decision-log.md (entry 「11-11 壁纸文档退役场景归档(D-12)」).

本页原文 Markdown:在 AtomGit 查看·内容源自开源项目 cind/cindy