Skip to content

[feat] Dialog types, dialog titles #4183

@Levminer

Description

@Levminer

Describe the problem

Electron has this option.

And there is currently no way to change the icon of the dialog.

Also currently the dialog title is very inconsistant (ask and confirm has title option, but message don't.)

Describe the solution you'd like

This would be an optional property, example:

import { dialog } from "@tauri-apps/api"

dialog.message("message", {type: "info", title: "test"})

Types should be: "info", "error", "warning"

Alternatives considered

I'm currently using a cargo package native-dialog

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