@wix/himalaya-cli 0.1745.0 → 0.1746.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts
CHANGED
|
@@ -838,7 +838,10 @@ export declare const ALL_ORIENTATIONS: readonly Orientation[];
|
|
|
838
838
|
*/
|
|
839
839
|
export interface IconConfig {
|
|
840
840
|
/** Hand-authored 1024x1024 PNG, path relative to config.ts. When set it is the ONLY
|
|
841
|
-
* source — no derivation, no generation. Mutually exclusive with `glyph`.
|
|
841
|
+
* source — no derivation, no generation. Mutually exclusive with `glyph`. The Android
|
|
842
|
+
* adaptive icon is still shaped from it: the tile is inset by `glyphScale` (absent ⇒ 72/108,
|
|
843
|
+
* the launcher's visible area) over a `backgroundColor` layer (absent ⇒ the tile's corner
|
|
844
|
+
* colour). */
|
|
842
845
|
source?: string;
|
|
843
846
|
/** Glyph name from the shared vocabulary (`npm run app-icons -- --glyphs` lists them).
|
|
844
847
|
* Absent ⇒ derived from `sha1(id)`. Validated by the generator, not here: the
|
|
@@ -851,12 +854,13 @@ export interface IconConfig {
|
|
|
851
854
|
accentColor?: string;
|
|
852
855
|
/** Colour TOKEN name for the Android adaptive-icon background layer. Absent ⇒ the same
|
|
853
856
|
* colour as the tile accent, so the adaptive background matches the iOS tile; the glyph
|
|
854
|
-
* drawn over it is darkened for contrast.
|
|
857
|
+
* drawn over it is darkened for contrast. With `source`, absent ⇒ the source's corner
|
|
858
|
+
* colour. */
|
|
855
859
|
backgroundColor?: string;
|
|
856
860
|
/** Fraction of the 1024 canvas the glyph occupies in the Android FOREGROUND layer.
|
|
857
861
|
* Android masks that layer to a circle inscribed in the middle 66/108 of the
|
|
858
862
|
* canvas, so a glyph drawn much larger than ~0.66 gets clipped on device.
|
|
859
|
-
* Absent ⇒ 0.62. Range [0.4, 0.9]. */
|
|
863
|
+
* Absent ⇒ 0.62 (72/108 with `source`, which scales the whole tile). Range [0.4, 0.9]. */
|
|
860
864
|
glyphScale?: number;
|
|
861
865
|
}
|
|
862
866
|
/** Default tile accent when `icon.accentColor` is absent — every app's tokens.json
|