Subscription appearance¶
Providers style their own subscription using separate response headers. These are not the global s-settings command. An active s-providerid is required. Ordinary subscription import and connections do not require a Provider ID.
s-providerid: YOUR_PROVIDER_ID
s-fonts: {"text":90,"subscription-name":95}
s-layout: {"density":"compact","info-gap":2}
s-actions: {"check":{"button":true,"scale":110,"size":0,"style":"glass"},"account":{"button":true,"style":"outline"},"support":{"scale":110}}
Three separate headers¶
| Header | Purpose |
|---|---|
s-fonts |
Text, subscription name, server name and protocol sizes: text, subscription-name, server-name, protocol; numeric percentages 60–120. |
s-layout |
Density (compact, normal, comfortable) and card/row spacing. |
s-actions |
Styles for check (Check), account (Account), support (Support). |
Full s-fonts and s-layout values: subscription metadata.
Action controls — s-actions¶
Supported from Android 615, Apple 3.0.50 (475), Windows/Linux 2.0.35 (387). Each action is an independent object with optional fields:
| Field | Value |
|---|---|
button |
JSON true: button; false: original link appearance. Changing text size alone does not enable a button. |
scale |
Numeric percentage 75–150: 110 means 110%, not 1.1. |
size |
Integer 0 compact, 1 regular, 2 large. Used only when button:true. |
style |
glass, filled, outline. Used only when button:true. |
App defaults: link appearance, 100% text size, compact button size 0, glass style. Local defaults remain editable under Appearance → Action controls.
Scope and precedence¶
- Account and Support use their own card's subscription. Check uses the selected server's subscription; without one it uses local defaults. Two subscriptions from the same provider remain independent.
- Headers do not write global preferences. Explicit fields from an active subscription override local defaults only while displaying that subscription. Other fields inherit local defaults.
- Missing header/field or JSON
nullmeans no override.falseand0are explicit values. Header removal or provider deactivation restores local appearance. Provider-panel values retain the existing ownership rule: each source clears only its own values. - HTTP takes priority over a same-name
#s-actions: {...}body line. Whole-list Base64 and existing crypt1/crypt2 metadata values are supported. - JSON limit: 8192 UTF-8 bytes, no CR/LF. An invalid known field invalidates the entire
s-actions; unknown fields are ignored. Do not Base64-wrap numeric fields. - Styling does not create missing links or enable support. In-app support still requires an active Provider ID, support enablement and a supported protocol.
Global app preferences¶
Theme, language, overall app text size, autostart and autoconnect belong to the app. Provider app settings now use a separate s-settings allowlist without card fonts, spacing or action.*.
Compatibility: Android 614 / Apple 474 / Desktop 386 accepted an incorrectly broad s-settings that saved appearance globally. Update clients and replace those action.*, layout.* and font keys with s-actions, s-layout, s-fonts. New clients ignore the old keys. Previously saved local values are not reset automatically: their earlier user values are unknown. Use the local appearance reset if needed.
Glass and the main connection button — s-appearance¶
The s-appearance header overrides only its own subscription. An active Provider ID is required. It never writes global app preferences.
s-appearance: {"glass":2,"connect-scale":85}
s-actions: {"check":{"button":true,"size":0,"style":"glass"},"account":{"button":true,"size":1},"support":{"button":true,"size":1}}
| s-appearance field | Value and scope |
|---|---|
glass |
Integer 0 Off, 1 Moderate, 2 Strong. Applies to this subscription's card and connection orb while one of its servers is selected. Navigation and other cards retain their own settings. |
connect-scale |
Number 75–125 percent. 85 scales the connection orb and its layout space to 85%; 100 retains its original size. Lists and action controls are not scaled. |
Both fields are optional. Missing glass uses local Appearance → Liquid glass; missing connect-scale uses 100%. null means no override; glass 0 explicitly disables the effect. Removing the header or deactivating the Provider ID restores local defaults. JSON is limited to 8192 UTF-8 bytes without CR/LF. An invalid known field rejects the entire object; unknown fields are ignored. HTTP wins over a #s-appearance: {...} body line; existing metadata encryption is supported. Two subscriptions from the same provider remain independent. System transparency and motion accessibility preferences retain priority.
Check, Account and Support sizes/styles remain in s-actions; fonts use s-fonts, density and spacing use s-layout. Do not use s-settings for subscription appearance.
Supported starting with Android619 / Apple479 / Windows/Linux2.0.39(391). Availability depends on distribution channel and review; previous618/478/390 builds ignore this header.
Complete backend reference: parameters, types and precedence.