--- # Copyright 2025 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. title: Round App Design description: | Tips and advice for designing apps that take advantage of the Pebble Time Round display guide_group: design-and-interaction menu: true permalink: /guides/design-and-interaction/in-the-round/ generate_toc: true order: 3 --- > This guide is about designing round apps. For advice on implementing a round > design in code, read {% guide_link user-interfaces/round-app-ui %}. With the release of the Chalk [platform](/faqs#pebble-sdk), developers must take new features and limitations into account when designing their apps. New and existing apps that successfully adapt their layout and colors for both Aplite and Basalt should also endeavor to do so for the Chalk platform. ## Minor Margins The Pebble Time Round display requires a small two pixel border on each edge, to compensate for the bezel design. To this end, it is highly encouraged to allow for this in an app's design. This may involve stretching a background color to all outer edges, or making sure that readable information cannot be displayed in this margin, or else it may not be visible. Avoid thin rings around the edge of the display, even after accounting for the two pixel margin as manufacturing variations may cause them to be visibly off-center. Instead use thick rings, or inset them significantly from the edge of the screen. ## Center of Attention With the round Chalk display, apps no longer have the traditional constant amount of horizontal space available. This particularly affects the use of the ``MenuLayer``. To compensate for this, menus are now always centered on the highlighted item. Use this to display additional information in the cell with the most space available, while showing reduced content previews in the unhighlighted cells. ![centered >{pebble-screenshot,pebble-screenshot--time-round-silver-20}](/images/guides/design-and-interaction/center-layout~chalk.png) Menus built using the standard cell drawing functions will automatically adopt this behavior. If performing custom cell drawing, new APIs are available to help implement this behavior. For more information, look at the ``Graphics`` documentation, as well as the ``menu_layer_set_center_focused()`` and ``menu_layer_is_index_selected()`` to help with conditional drawing. ## Pagination Another key concept to bear in mind when designing for a round display is text flow. In traditional Pebble apps, text in ``ScrollLayer`` or ``TextLayer`` elements could be freely moved and scrolled with per-pixel increments without issue. However, with a round display each row of text can have a different width, depending on its vertical position. If such text was reflowed while moving smoothly down the window, the layout would reflow so often the text would be very difficult to read. ![center-layout >{pebble-screenshot,pebble-screenshot--time-round-silver-20}](/images/guides/design-and-interaction/scrolling-with-text-flow.gif) The solution to this problem is to scroll through text in pages, a technique known as pagination. By moving through the text in discrete sections, the text is only reflowed once per 'page', and remains easily readable as the user is navigating through it. The ``ScrollLayer`` has been updated to implement this on Chalk. To inform the user that more content is available, the Chalk platform allows use of the ``ContentIndicator`` UI component. This facilitates the display of two arrows at the top and bottom of the display, similar to those seen in the system UI. ![content-indicator >{pebble-screenshot,pebble-screenshot--time-round-silver-20}](/images/guides/design-and-interaction/content-indicator.png) A ``ContentIndicator`` can be created from scratch and manually managed to determine when the arrows should be shown, or a built-in instance can be obtained from a ``ScrollLayer``. ## Platform-Specific Designs Sometimes a design that made sense on a rectangular display does not make sense on a circular one, or could be improved. Be open to creating a new UI for the Chalk platform, and selecting which to use based on the display shape. For example, in the screenshot below the linear track display was incompatible with the round display and center-focused menus, leading to a completely different design on Chalk that shows the same information. {% screenshot_viewer %} { "image": "/images/guides/design-and-interaction/caltrain-stops.png", "platforms": [ {"hw": "basalt", "wrapper": "time-red"}, {"hw": "chalk", "wrapper": "time-round-rosegold-14"} ] } {% endscreenshot_viewer %} ## What's Next? Read {% guide_link design-and-interaction/implementation %} to learn how to use and implement the UI components and patterns encouraged in SDK 3.x apps.