Skip to content

[feat] allow to set traffic light position in JavaScript API #13790

@LemonNekoGH

Description

@LemonNekoGH

Describe the problem

import { Window, LogicalPosition } from '@tauri-apps/api/window'

const window = new Window('sample', {
  title: 'Sample',
  decorations: true,
  titleBarStyle: 'overlay',
  width: 600,
  height: 800,
  trafficLightPosition: new LogicalPosition(14, 20),
  ^^^^^^^^^^^^^^^^^^^^
  Unknown property `trafficLightPosition`
})

Describe the solution you'd like

Allow to pass this property:

interface WindowOptions {
  trafficLightPosition: LogicalPosition
  // ...other exists property

Alternatives considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions