Commit Graph
29 Commits
Author SHA1 Message Date
LukasandClaude Opus 5 daab08ec01 macOS: drop the cross-platform check and abstraction
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-12 14:00:03 +02:00
Lukas 0226bcf034 macOS: update window appearance for About and ConfigurationErrors 2026-05-12 09:20:08 +02:00
Louis Qian 010880a90a chore: make url computed property & rework enum signature 2026-03-30 20:15:01 -07:00
Louis Qian 183e2cef2f chore: clean up switch statement 2026-03-30 18:51:45 -07:00
Louis Qian 90d71dd2f6 chore: clean up comments 2026-03-30 18:49:17 -07:00
Louis Qian b29f261dc8 chore: clean up versionConfig to be init-able 2026-03-30 18:44:49 -07:00
Louis Qian ed6f0588a3 feat: make version clickable depending on type 2026-03-30 18:41:26 -07:00
Lukas a79557f521 macOS: stop cycling icons when AboutWindow is closed
and start cycling with current icon
2026-02-24 08:58:15 +01:00
Jon Parise 6052f664cf macos: swiftlint 'opening_brace' rule 2026-02-19 18:53:13 -05:00
Jon Parise a8903c1bb1 macos: swiftlint 'comment_spacing' rule 2026-02-19 18:34:02 -05:00
Jon Parise 1537590a5f macos: cycle through our icons in the About view
Clicking on the icon immediately advances to the next one. Hovering on
the icon pauses the automatic cycling, and the "help" tooltip displays
the icon's configuration name (for `macos-icon`).
2026-01-12 15:20:14 -05:00
Mitchell Hashimoto adba2036e3 macos: custom app icon goes into About window 2024-12-21 19:31:30 -08:00
Mitchell Hashimoto 330bbd0502 macos: add "Docs" button to the About window 2024-12-20 09:11:04 -08:00
Jon Parise 8a74b59a7e macos: struct attributes can be private 2024-11-15 22:47:38 -05:00
Jon Parise de60382824 macos: further simplify using a @ViewBuilder 2024-11-15 22:43:21 -05:00
Jon Parise 2db43158a8 macos: formatting 2024-11-15 22:36:11 -05:00
Jon Parise 1807eabcb8 macos: prefer private View structs to functions 2024-11-15 22:33:27 -05:00
Jon Parise 6c3eaaf647 macos: support linkable AboutView properties
This allows us to enrich the build's commit property as a GitHub link.

This change also displays the property values using a monospaced font,
which I think looks a little nicer (especially the commit SHA).
2024-11-15 20:04:06 -05:00
Mitchell Hashimoto 85db4d0277 macos: personal nitpicks and improvements 2024-10-19 14:07:04 -07:00
Josh cc42dc57b9 fix: add text-selection back in the about dialoge. 2024-10-19 11:52:12 -07:00
Josh d291fcfd52 style: add line break in the caption of the about dialog. 2024-10-19 11:45:24 -07:00
Josh 4b08b3f8d8 refactor: hide buttons when URLs are invalid and change variable mutability and visibility. 2024-10-19 11:23:04 -07:00
Josh 42bf37af32 feat: Update about menu design to match macOS. 2024-10-19 00:31:43 -07:00
pnodet 7ff9af1520 style(macos): cleanup trailing spaces 2024-08-21 21:53:09 +02:00
Mitchell Hashimoto 1be85e9d36 macos: show build in about window 2024-03-27 09:56:56 -07:00
Mitchell Hashimoto 789107ff1b macos: text in about window is selectable
Fixes #1163

I also fixed the AppIconImage from being 1024x1024 to much smaller so we
don't see as many artifacts in the downsize.
2023-12-27 07:53:28 -08:00
Mitchell Hashimoto 68a23e786d macos: put build numbers back into info.plist, other metadata
This adds more metadata back into the Info.plist for a build. This
metadata is used with the About window. The reason I want the build
number back is so that we have a monotonically increasing number to do
self-updating with (i.e. Sparkle).
2023-12-18 18:56:34 -08:00
Mitchell Hashimoto 97433d3aa1 macos: close all windows
Fixes #1052

This implements a `close_all_windows` binding in the core and implements
it for macOS specifically. This will ask for close confirmation if any
surface in any of the windows requires confirmation.

This is bound by default to option+shift+command+w to match Safari. The
binding is generall option+command+w but users may expect this to also
mean "Close All Other Tabs" which is the changed behavior if any tabs
are present in a standard macOS application. So I chose to follow Safari
instead.

This doesn't implement this feature for GTK, that's left as an exercise
for a contributor.
2023-12-17 20:54:57 -08:00
Mitchell Hashimoto 2e74a0f9d4 macos: custom about window so we can be a first responder
Fixes #1052

This implements the about window as a custom window with a view
controller. This lets us implement the proper responder chain so that
our custom close window IBActions do the right thing.

This has an additional benefit that we can easily customize this window
going forward.
2023-12-17 15:51:04 -08:00