forked from aparoksha/adwaita-swift
Update demo about dialog
This commit is contained in:
parent
407fca10ff
commit
9cb8ca266d
@ -150,15 +150,16 @@ struct Demo: App {
|
||||
}
|
||||
.collapsed(!wide)
|
||||
.breakpoint(minWidth: 550, matches: $wide)
|
||||
.aboutDialog(
|
||||
visible: $about,
|
||||
app: "Demo",
|
||||
developer: "david-swift",
|
||||
version: "Test",
|
||||
icon: .default(icon: .applicationXExecutable),
|
||||
website: .init(string: "https://adwaita-swift.aparoksha.dev/"),
|
||||
issues: .init(string: "https://git.aparoksha.dev/aparoksha/adwaita-swift/issues")
|
||||
)
|
||||
.aboutDialog(visible: $about) { cfg in
|
||||
cfg.appName = "Demo"
|
||||
cfg.developer = "david-swift"
|
||||
cfg.version = "Test"
|
||||
cfg.icon = .default(icon: .applicationXExecutable)
|
||||
cfg.website = URL(string: "https://adwaita-swift.aparoksha.dev/")
|
||||
cfg.issues = URL(string: "https://git.aparoksha.dev/aparoksha/adwaita-swift/issues")
|
||||
cfg.releaseNotes = AdwaitaAboutDialogConfig.demoReleaseNotes
|
||||
cfg.comments = AdwaitaAboutDialogConfig.demoComments
|
||||
}
|
||||
.preferencesDialog(visible: $preferences)
|
||||
.preferencesPage("Page 1", icon: .default(icon: .audioHeadset)) { page in
|
||||
page
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user