Settings, themes, and personalization
Settings provide the local preferences that shape ZapFast's appearance, chat behavior, alerts, privacy, system integration, and file use. The application keeps device-wide choices separate from WhatsApp-account choices, then applies them to the active account and window as they change. See the application shell for the wider window lifecycle and navigation and accessibility for input and access behavior.
Settings model
Settings have two scopes. Device settings describe this installation and its window, while account settings follow one WhatsApp account and keep account-specific behavior separate when the user changes accounts. The account roster selects which account is active; it does not merge their preferences.
Device settings
Device settings cover the interface and local app behavior. They include the selected theme and font, language, zoom, wallpaper colors, notification presentation, media behavior, app lock, proxy, update choices, download location, and remembered window state. These choices affect the local application and do not become WhatsApp account data. References: src/settings.rs• L407-551
Account settings
Account settings cover choices that should stay with one WhatsApp account. They include read receipts, typing state, automatic downloads, notifications, notification limits, history prefetch, the last chat and list filters, contact saving, and that account's wallpaper image. References: src/settings.rs• L821-846
Persistence and application
The application loads local settings at startup and uses defaults when a file is absent or unreadable. Changes are marked for save and written after a short delay, while account settings are saved for the account that owns them. This lets the interface react at once without making every control wait for disk access. References: src/settings.rs• L683-721, src/app.rs• L6992-7010, src/app.rs• L7111-7119
flowchart LR
A[Settings UI] --> B[Device or account preference]
B --> C[Live application state]
B --> D[Local settings file]
D --> E[Next launch]
E --> C
Theme and appearance
Appearance settings define the palette, text face, scale, window decoration, and conversation surface. A theme supplies the colors used by the shell and chat, while wallpaper adds a separate background layer behind message bubbles.
Theme selection
The built-in choices are Dark, Light, Follow system, and Messages. Follow system uses the desktop appearance, while Messages follows the system's light or dark state but uses the visual style associated with Apple Messages. A selected theme is applied to the shell and controls, and a change can be shown as a brief visual transition. References: src/settings.rs• L29-55, src/app.rs• L7193-7279, src/theme.rs• L60-105
Custom theme catalog
Users can select local JSON palettes in the themes folder. The catalog also supports shared presets and, on Linux, a live Omarchy palette. If the selected palette is missing or cannot load, the application keeps the last usable appearance and reports the problem in the settings page instead of discarding the rest of the settings. References: src/theme.rs• L8-57, src/app.rs• L7149-7191, contrib/omarchy/zapfast.json.tpl#L1-L24
Font and scale
The Font setting chooses between the desktop interface font and the bundled Inter font. Zoom changes the whole interface and has keyboard controls for increasing, decreasing, and resetting the scale. The desktop's text-rendering choice can also be followed when the platform provides that signal. References: src/settings.rs• L57-77, src/…/settings.rs• L353-415, src/theme.rs• L767-880
Wallpaper
Wallpaper personalizes the conversation area without changing the rest of the theme. The user can use the theme's chat color, choose a light or dark color, show the built-in doodle pattern, or use a local image.
Wallpaper choices
The wallpaper page shows a live preview of the same look used in the open chat. Light and dark modes keep separate selected colors, so a change of theme does not erase the user's choice for the other mode. The Theme color follows the active palette and therefore changes with a theme or desktop palette reload. References: src/…/settings.rs• L1237-1387, src/settings.rs• L79-320
Wallpaper images
An imported image replaces both the selected color and the doodles in the conversation. ZapFast keeps its own copy, accepts common image formats, limits very large images, and falls back to the selected color if the copy is missing or damaged. An account owns the selected image, so switching accounts can show a different conversation background. References: src/wallpaper.rs• L31-95, src/wallpaper.rs• L229-359, src/app.rs• L2199-2218
flowchart LR
A[Theme palette] --> B[Wallpaper color]
C[Built-in doodles] --> D[Conversation background]
B --> D
E[Imported image] --> D
E -. replaces .-> B
E -. replaces .-> C
Localization
Localization controls the language of the interface while keeping English as the source and fallback language. The language can follow the operating system or use an explicit supported choice.
Language selection
Auto selects the first supported language preferred by the operating system. An explicit language wins over detection, and an untranslated message remains in English. Locale names stay in their own language in the picker, while stored locale names remain stable across launches. References: src/i18n.rs• L13-41, src/i18n.rs• L43-115, src/i18n.rs• L139-155
Configuration interface
The settings page groups controls by the user task rather than exposing the settings file as a raw list. It provides search, translated labels, live controls, and links to focused pages such as the wallpaper picker.
Settings sections
The page presents Appearance, Chats, Notifications, Privacy, System, Account, Files, and About sections. Device and account controls are shown through different control types so a user can see which choices belong to the active account. Search matches translated text and its English source, which keeps the page discoverable across language changes. References: src/…/settings.rs• L54-93, src/…/settings.rs• L214-297, src/…/settings.rs• L337-425, src/…/settings.rs• L428-916
Live changes
Most choices take effect as soon as the user selects them. Theme, font, language, and wallpaper actions update the active view directly; image selection and removal also update the account's stored wallpaper. Controls that depend on the account are kept separate from device settings and are saved with that account. References: src/model.rs• L3297-3321, src/app.rs• L9602-9665
Motion behavior
Motion behavior combines a user preference for pausing other media with an accessibility rule for decorative animation. The system does not expose a general “reduce motion” switch in this settings page.
Media pause preference
Where the platform supports it, the Chats section lets the user pause media in other applications while recording or while ZapFast plays audio or video. Other media resumes after the ZapFast activity ends. References: src/settings.rs• L509-518, src/…/settings.rs• L450-456
Accessibility-aware animation
When a screen reader is attached, decorative effects such as typing indicators, spinners, and recording indicators use fewer redraws so the window remains responsive to assistive technology. Video and other user content keep their own playback rate. References: src/motion.rs• L1-12, src/motion.rs• L81-113
Change checklist
When these files or sections are changed, remember to consider these:
- Keep device fields and account fields aligned with the scope shown by the settings UI. A control that moves scope can silently affect account switching and file paths.
- Keep theme selection, cached palettes, and fallback behavior aligned. A missing custom or desktop palette must not remove the last usable appearance.
- Keep the light and dark wallpaper fields aligned with the palette mode. The
Themecolor must continue to follow the active chat color. - Keep locale storage, operating-system tag mapping, and catalog availability aligned. An unsupported system language must still resolve to a supported fallback.
- Keep wallpaper import, account settings, image loading, and removal aligned. Clearing an image must restore the color and doodle path without leaving an old copy active.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| Selected custom theme is missing or unreadable | The chosen appearance cannot be rebuilt from the themes folder | Keep the cached last usable palette and show the theme status in Settings |
| Settings file is absent or unreadable | Preferences revert to defaults for that launch | Load defaults and save later changes as a complete settings file |
| Wallpaper image is missing or damaged | The conversation cannot show the selected image | Keep the selected color as the fallback background |
| Operating system language has no catalog | The requested language cannot be shown | Resolve to the first supported language or English |
| Account wallpaper is changed without account settings | A later account switch can show the wrong image | Store the image choice with the active account |
Key files
| File | Why to read it |
|---|---|
| src/settings.rs | Defines the device and account preference model, defaults, persistence, and migration rules. |
| src/…/settings.rs | Shows how configuration is grouped, searched, translated, and connected to live actions. |
| src/theme.rs | Explains the palette choices, custom theme catalog, font selection, and shared visual style. |
| src/wallpaper.rs | Describes wallpaper composition, image import, fallback behavior, and image lifecycle. |
| src/i18n.rs | Defines supported locales, system-language resolution, and fallback behavior. |
| src/motion.rs | Explains accessibility-aware pacing for decorative motion. |
| src/app.rs | Connects stored preferences to the active palette, locale, wallpaper, and save cycle. |