File tree Expand file tree Collapse file tree 1 file changed +45
-1
lines changed
source/_guides/app-resources Expand file tree Collapse file tree 1 file changed +45
-1
lines changed Original file line number Diff line number Diff line change @@ -177,4 +177,48 @@ Destroy both the ``GBitmap`` and ``BitmapLayer`` when the app exits:
177177``` c
178178gbitmap_destroy (s_bitmap);
179179bitmap_layer_destroy(s_bitmap_layer);
180- ```
180+ ```
181+
182+ ## Menu Icon in the Launcher
183+
184+ The new launcher in firmware 4.0+ allows developers to provide a custom icon for
185+ their watchapps and watchfaces.
186+
187+ <div class="pebble-dual-image">
188+ <div class="panel">
189+ {% markdown %}
190+ 
191+ {% endmarkdown %}
192+ </div>
193+ <div class="panel">
194+ {% markdown %}
195+ 
196+ {% endmarkdown %}
197+ </div>
198+ </div>
199+
200+ You can add a 25x25 `png` to the `resources.media` section of the`package.json`
201+ file, and set `"menuIcon": true`. Please note that icons that are larger will be
202+ rejected by the SDK.
203+
204+ ```js
205+ "resources": {
206+ "media": [
207+ {
208+ "type": "bitmap",
209+ "name": "MENU_ICON",
210+ "file": "images/icon.png",
211+ "menuIcon": true
212+ }
213+ ]
214+ }
215+ ```
216+
217+ If your ` png ` file is color, we will use the luminance of the image to add some
218+ subtle gray when rendering it in the launcher, rather than just black and white.
219+ Transparency will be preserved.
220+
221+ The app icons specified during submission to the appstore are independent of
222+ this image resource (used in other places such as the mobile app and the
223+ appstore) - the ` menuIcon ` specified will always be used in the watch
224+ launcher list.
You can’t perform that action at this time.
0 commit comments