Requested behavior
Resizable desktop/app windows should expose Minimize, Maximize/Restore, and Close controls by default, with working framework-owned behavior. Application developers should not have to wire the standard window controls individually.
Current public defaults
src/dialog/header/Toolbar.mjs already defines:
actions: ['maximize', 'close']
Its actionMap contains maximize and close, but no minimize action. Therefore this is not a claim that the stock dialog lacks Maximize.
A custom headerConfig.actions list replaces the defaults. A consumer that supplies only a customized Close action also loses Maximize. The default-controls contract and the supported way to customize icons while retaining standard controls should be clear.
Desired default contract
- A resizable desktop window offers Minimize, Maximize/Restore, and Close without application-specific header-action wiring.
- Maximizing uses the usable desktop/workspace area, and Restore returns to the previous normal size and position.
- Minimizing integrates with the desktop window manager/taskbar so the window has a clear restore path.
- Standard action icons can be customized without inadvertently removing the other default controls; document the existing supported mechanism or provide an appropriate one.
- Keep explicit opt-outs and intentional custom action lists available.
- Define behavior for non-resizable windows and modal dialogs explicitly. Minimize needs a restore owner and should not leave an unmanaged dialog inaccessible.
Acceptance criteria
- A minimal resizable desktop window exposes all standard actions without consumer handlers for them.
- Maximize and Restore form a working state toggle, with matching icons and accessible labels.
- Minimize and taskbar/manager restore preserve the normal window geometry.
- Changing the Close icon through the documented customization mechanism retains the default Minimize and Maximize controls.
- A documented opt-out can suppress individual controls when inappropriate.
Related
- #21201 already proposes desktop AppWindow with minimize, maximize, and close. This request makes the default action/capability and customization contract explicit.
- #21199 provides window-manager minimize/restore ownership.
- #21271 requests preservation of user geometry when desktop bounds change.
Requested behavior
Resizable desktop/app windows should expose Minimize, Maximize/Restore, and Close controls by default, with working framework-owned behavior. Application developers should not have to wire the standard window controls individually.
Current public defaults
src/dialog/header/Toolbar.mjsalready defines:actions: ['maximize', 'close']Its actionMap contains maximize and close, but no minimize action. Therefore this is not a claim that the stock dialog lacks Maximize.
A custom headerConfig.actions list replaces the defaults. A consumer that supplies only a customized Close action also loses Maximize. The default-controls contract and the supported way to customize icons while retaining standard controls should be clear.
Desired default contract
Acceptance criteria
Related