# Windows, files, and the system {#c13}

> Chapter 13 of the App Design Guide 3.0.0. Index: https://www.designguide.dev/llms.txt

A desktop app lives in windows, files, and system services. A phone has one window and no menu bar, so it uses its own Back control, share and file sheets, and push notices.

## Window size and layout {#s13-1}

### 13.1 Work at every window size  {#work-at-every-window-size}

Default

**Rule:** Make the app work in a window down to the Compact class, and state the smallest size it supports.

**Why:** A layout that breaks at one width breaks for people who snap, narrow, or zoom the window.  **When not:** A tool that cannot work under a width, such as a canvas editor, can state a higher minimum.

- Compact is under 600, Medium 600 to 839, Expanded 840 to 1199, Large 1200 up.
- Test at 320 wide ([Rule 15.25](https://www.designguide.dev/r/reflow-at-320-wide-and-at-400-zoom.md)).
- Set the minimum window size in code and in the product notes.

**Picture:** Do: A narrow window shows one pane and keeps every function. Don't: The app gives up below a set width.

**See:** [15.25 Reflow at 320 wide and at 400% zoom](https://www.designguide.dev/r/reflow-at-320-wide-and-at-400-zoom.md)

### 13.2 Remember the layout  {#remember-the-layout}

Default · Desktop only

**Rule:** Restore the window size, pane widths, and last view at the next start.

**Applies with:** Width 840+

**Why:** A layout that resets each day costs people the same work each day.

- Save when the drag ends, not on each frame.
- Fit a restored window to the screens that exist now.
- Offer Reset layout in the View menu.

**Picture:** Figure: The next start brings back the pane width, the filter, and the open order.

### 13.3 Show the same data in every window  {#show-the-same-data-in-every-window}

Default · Desktop only

**Rule:** Show the same data in every window or tab of the app, and never let one overwrite another.

**Applies with:** Width 840+

**Why:** People expect one truth, and a stale window can overwrite fresh edits.  **When not:** A draft that one window owns can stay in that window until the person saves it.

- Tell the other windows at once when data changes.
- Keep selection and scroll place apart in each window.
- Offer Open in new window as a choice, never by default.

**Picture:** Figure: A banner in the second window names the change and offers a way to see it.

### 13.4 Name the item first in every title  {#name-the-item-first-in-every-title}

Default · Desktop only

**Rule:** Start each window and tab title with the item name, then the area, and end with the app name.

**Applies with:** Width 840+

**Why:** People switch between windows and tabs by title, and an app-name-only title cannot be told apart.

- Put the item name first, since a narrow tab cuts the end.
- Keep a toolbar title under about 15 characters.
- Update the title with the item, and keep titles unique.

**Picture:** Figure: Each tab and the title bar start with the item name.

## Menus and platform habits {#s13-2}

### 13.5 List every command in the menu bar  {#list-every-command-in-the-menu-bar}

Default · Desktop only

**Rule:** Where the platform has a menu bar, list every command in it and show one that cannot run as disabled.

**Applies with:** Width 840+, Fine pointer

**Why:** A command that vanishes when it is off hides that it exists.  **When not:** A web app with no menu bar uses a command menu instead ([Rule 12.24](https://www.designguide.dev/r/open-the-command-menu-with-one-key.md)).

- Follow the platform if it hides a command that cannot run.
- Write items as verb phrases, with three dots when more input follows.
- Keep each menu to about 12 items and one level of submenu.

**Picture:** Figure: Redo, Cut, and Copy stay in the menu, but disabled, when they cannot run.

**See:** [12.24 Open the command menu with one key](https://www.designguide.dev/r/open-the-command-menu-with-one-key.md)

### 13.6 Follow the platform's habits  {#follow-the-platforms-habits}

Default · Desktop only

**Rule:** Follow the platform for button order, standard shortcuts, menu places, and window controls, and keep your style inside them.

**Applies with:** Fine pointer, Keyboard

**Why:** A different button order or a custom close button causes wrong clicks.

- Use the platform's own window controls, and draw none yourself.
- Put Settings and Help where the platform puts them.
- Keep the brand in color, type, and tone, not in behavior.

| Part | Follow the platform for |
| --- | --- |
| Dialog buttons | The order of the safe and the main button |
| Window controls | Close, minimize, and zoom |
| Standard keys | Undo, copy, paste, and save |
| Menu places | Settings, Help, and Quit |
| Pointer | Cursors and scroll direction |

**Picture:** Do: The window has the platform controls only. Don't: The app draws its own minimize and close buttons.

## Addresses and Back {#s13-3}

### 13.7 Give each view its own address  {#give-each-view-its-own-address}

Default

**Rule:** Give each view its own address, so a copied link opens the same view with the same filters.

**Why:** Without an address, a shared link, a bookmark, or a new tab lands on the home view.

- Put the view, filters, sort, and open item in the address.
- Keep scroll place and typed text out of the address.
- Add a history entry per view change, and use real links.

**Picture:** Figure: The address holds the filter and the open order.

### 13.8 Make Back and Forward work  {#make-back-and-forward-work}

Default

**Rule:** Make the Back and Forward buttons move between views, and restore the filters and scroll on Back.

**Why:** People press Back to step out of a view, not out of the app.

- Let Back close a dialog or sheet before leaving the page.
- Keep typed text ([Rule 7.8](https://www.designguide.dev/r/keep-entered-data-on-back-and-on-error.md)), and never trap Back in a loop.
- On a phone, the system Back gesture does the same ([Rule 4.8](https://www.designguide.dev/r/keep-back-and-close-in-the-same-place.md)).

**Picture:** Do: Back returns to the form. The typed note stays. Don't: Back returns to an empty form. The note is gone.

**See:** [7.8 Keep entered data on back and on error](https://www.designguide.dev/r/keep-entered-data-on-back-and-on-error.md), [4.8 Keep back and close in the same place](https://www.designguide.dev/r/keep-back-and-close-in-the-same-place.md)

## Files, clipboard, and undo {#s13-4}

### 13.9 Open and save in the platform's way  {#open-and-save-in-the-platforms-way}

Default · Desktop only

**Rule:** Use the platform's open and save dialogs, name files by title, and list recent files by name.

**Applies with:** Width 840+

**Why:** People trust the dialog that they know, and a title is easier to know than a path.

- Save on its own, and offer Duplicate or Save as.
- Name the file and the place when you confirm a save.
- Put New and Open in the File menu and a visible button.

**Picture:** Figure: The save form shows the file name and the place.

### 13.10 Offer a button first, then a drop zone  {#offer-a-button-first-then-a-drop-zone}

Default · Adapts

**Rule:** Give every file input a Choose file button, and say which file types and sizes it takes.

**Wide screen:** On a wide screen, also accept a dropped file on a visible drop zone that states what it takes. (Triggers: Fine pointer, Width 840+)

**Why:** A button works for keyboard and touch, and a stated limit saves a failed upload.

- Show a solid zone border only while a file is over it.
- Show the name and the size of each file at once.
- When a file is refused, say if type or size is wrong.

**Picture:** Size pair (Phone, 375; Window, 1280): Both show Plan.pdf and a Choose file button. The window adds a drop zone.

### 13.11 Make copy and paste useful  {#make-copy-and-paste-useful}

Default

**Rule:** Support cut, copy, and paste for text, rows, and items, and paste in the form that the target takes.

**Why:** A row that copies as one lump of text is of no use in a sheet.

- Copy rows as tab-separated text, so a sheet takes cells.
- Keep the target's style on paste, and offer Paste as plain text.
- Confirm a copy with a short toast: Copied.

**Picture:** Figure: The Edit menu names the copied rows and offers a plain-text paste.

### 13.12 Support undo and redo everywhere  {#support-undo-and-redo-everywhere}

Default

**Rule:** Support undo and redo everywhere on the system keys, and name the action in the menu label.

**Why:** A label that names the action tells people what will change.

- Use undo, not a confirm, for a reversible action ([Rule 8.11](https://www.designguide.dev/r/offer-undo-not-a-confirm-for-reversible-actions.md)).
- Join many small changes into one step, with no low limit.
- In a long session, show a history naming each step.

**Picture:** Figure: The menu says what undo will reverse and what redo will bring back.

**See:** [8.11 Offer Undo, not a confirm, for reversible actions](https://www.designguide.dev/r/offer-undo-not-a-confirm-for-reversible-actions.md)

## Unsaved work and print {#s13-5}

### 13.13 Protect unsaved work on close and reload  {#protect-unsaved-work-on-close-and-reload}

Hard

**Rule:** Save a draft when a person closes or reloads, and ask only when the work would be lost.

**Why:** Lost typed work is the cost that people refuse to pay.

- Save a draft on its own as the person works.
- Ask on close only when no draft fits ([Rule 7.9](https://www.designguide.dev/r/warn-before-discarding-entered-work.md)).
- Warn on a reload or a tab close only while changes exist.

**Picture:** Figure: The dialog offers to save a draft, and names what the person would lose.

**See:** [7.9 Warn before discarding entered work](https://www.designguide.dev/r/warn-before-discarding-entered-work.md)

### 13.14 Print and export a clean page  {#print-and-export-a-clean-page}

Default

**Rule:** Give print and export a clean page that holds the content only, with a clear file name.

**Why:** A page with a sidebar and buttons wastes paper, and a file named export hides what it holds.

- Hide navigation, buttons, and hover parts in print.
- Fit tables to the page width, and repeat the header row.
- Name the file by title and date.

**Picture:** Do: The page holds the title and the table. Don't: The same page also prints tabs and a button.

## Offline, notices, and system settings {#s13-6}

### 13.15 Show sync state in one fixed place  {#show-sync-state-in-one-fixed-place}

Default · Adapts

**Rule:** Show Saved, Saving, Offline, or Waiting to sync in the fixed place that [Rule 8.27](https://www.designguide.dev/r/show-the-connection-state-in-one-fixed-place.md) sets.

**Wide screen:** On a wide screen, show it in the status bar at the bottom of the window. (Triggers: Width 840+, Fine pointer)

**Why:** A state that moves between places gets missed.

- Change the state at once when the connection changes.
- Show the last save time and old data's age ([Rule 8.10](https://www.designguide.dev/r/show-offline-and-partial-data-in-place.md)).
- Keep the bar to 3 items in one line, with no actions.

**Picture:** Size pair (Phone, 375; Window, 1280): The phone shows a banner at the top. The window shows the state in the status bar.

**See:** [8.27 Show the connection state in one fixed place](https://www.designguide.dev/r/show-the-connection-state-in-one-fixed-place.md), [8.10 Show offline and partial data in place](https://www.designguide.dev/r/show-offline-and-partial-data-in-place.md)

### 13.16 Keep the app usable offline  {#keep-the-app-usable-offline}

Default

**Rule:** Let people read and type offline, queue the changes, and say when the server saves them.

**Why:** A change that shows as saved when it is not leads to a second loss.

- Turn off only server actions, and say why in text.
- Mark each queued change: Waiting to sync.
- Show Saved only after the server confirms, else Not saved with Retry.

**Picture:** Figure: A banner says Offline. One order waits to sync, and one is saved.

### 13.17 Notify only for what the person asked  {#notify-only-for-what-the-person-asked}

Default

**Rule:** Send a notice only for an event the person asked about, and name the exact outcome.

**Why:** Each extra notice teaches people to turn all of them off.

- Open the item when the person taps or clicks the notice.
- Batch many events into one summary, and withdraw a stale notice.
- Ask first ([Rule 7.11](https://www.designguide.dev/r/ask-for-permission-at-the-moment-of-need.md)), offer an off switch, and respect focus mode.

**Picture:** Do: The notice names the result. Don't: The notice names no result.

**See:** [7.11 Ask for permission at the moment of need](https://www.designguide.dev/r/ask-for-permission-at-the-moment-of-need.md)

### 13.18 Follow the system settings  {#follow-the-system-settings}

Default

**Rule:** Follow the system's theme, text size, reduced-motion, language, and number format, and update when they change.

**Why:** People set these once for every app, and an app that ignores them looks wrong or hurts.

- Theme: [Rule 15.8](https://www.designguide.dev/r/offer-light-dark-and-system-themes.md). Reduced motion: [Rule 14.11](https://www.designguide.dev/r/honor-the-reduced-motion-setting.md).
- Text size and language follow the chapter 15 rules.
- Use the person's date, number, and unit format, with no restart.

| System setting | What the app does |
| --- | --- |
| Theme | Follows light or dark, and updates at once |
| Text size | The layout reflows and nothing is cut |
| Reduced motion | Shows the end state with no movement |
| Language | Translated text, with room for longer words |
| Number and date format | Uses the person's own format |

**See:** [15.8 Offer light, dark, and system themes](https://www.designguide.dev/r/offer-light-dark-and-system-themes.md), [14.11 Honor the reduced-motion setting](https://www.designguide.dev/r/honor-the-reduced-motion-setting.md)

### 13.19 Keep every function at 400 percent zoom  {#keep-every-function-at-400-percent-zoom}

Default

**Rule:** Test the window at 200 and 400 percent zoom, as [Rule 15.25](https://www.designguide.dev/r/reflow-at-320-wide-and-at-400-zoom.md) sets, and keep every function.

**Why:** People with low vision zoom in, and at 400 percent a 1280 window reads as 320 wide.

- Reflow to one column.
- Make sticky bars static at small sizes, so they never cover content.
- Never switch off zoom in the viewport tag.

**Picture:** Do: At 400 percent zoom, one column holds every function. Don't: At 400 percent zoom, search and New order are gone.

**See:** [15.25 Reflow at 320 wide and at 400% zoom](https://www.designguide.dev/r/reflow-at-320-wide-and-at-400-zoom.md)
