WebExeBuilder Documentation

setRoundedCorners

Category: Window Management

Namespace: web.window.setRoundedCorners

Description

Sets the rounded corners style for the window (Windows 11 feature).

Syntax

const success = await web.window.setRoundedCorners({
    corners: 'on'
});

Parameters

  • corners (required) - Corner style string: "on", "off", or "small"

Returns

Promise<boolean> - Returns a promise that resolves with true if successful, false otherwise

Examples

Enable rounded corners

await web.window.setRoundedCorners({
    corners: 'on'
});

Small rounded corners

await web.window.setRoundedCorners({
    corners: 'small'
});

Disable rounded corners

// Use sharp corners
await web.window.setRoundedCorners({
    corners: 'off'
});

Use Cases

  • Enable modern Windows 11 appearance
  • Disable rounded corners for classic look
  • Match system theme preferences

Notes

  • Valid values: "on", "off", "small"
  • "on" = Full rounded corners (Windows 11 default)
  • "small" = Slightly rounded corners
  • "off" = Sharp/square corners
  • Windows 11 feature — may not have visible effect on Windows 10 or earlier
  • Changes apply immediately