Mitchell Hashimoto
16f5af8b32
macos: relable tabs when config is reloaded
2023-09-28 08:36:02 -07:00
Mitchell Hashimoto
0e4b91de88
macos: stylistic changes
2023-09-28 08:34:27 -07:00
Gregory Anders
137d24db9c
macos: display keybinding instead of index in tab label
2023-09-28 08:28:46 -07:00
Gregory Anders
1fbd5e5590
macos: add keyEquivalent overload to also return modifier string
2023-09-28 08:28:46 -07:00
Gregory Anders
4837d840f6
macos: create modifier flags as OptionSet instead of from array
...
Nit picky change, but the OptionSet class (which NSEvent.ModifierFlags
is an instance of) has an API for incrementally setting values without
needing to create an array.
2023-09-28 08:28:46 -07:00
Gregory Anders
8f75e83958
macos: rename indexTabs() to relabelTabs()
...
This is a better name because the tab label may not necessarily be an
index (if a user binds some non-numeric key, for instance).
2023-09-28 08:28:46 -07:00
Gregory Anders
59ba6fac2b
macos: add tab index labels
2023-09-28 08:28:46 -07:00
Mitchell Hashimoto
6be4e4d45d
Revert "macos: on Sonoma, manually add menu height padding for visible-menu"
...
This reverts commit 1dab2f9dd3bb19f8decc30826fd75d59bf412cc2.
2023-09-27 22:13:55 -07:00
Mitchell Hashimoto
3188056bb2
Merge pull request #565 from mitchellh/macos-fs-menu
...
macos: custom fullscreen menu item to respect non-native fullscreen
2023-09-27 18:43:13 -07:00
Mitchell Hashimoto
21b46bd612
macos: change text to "toggle full screen"
2023-09-27 18:41:30 -07:00
Mitchell Hashimoto
57213547cd
macos: custom fullscreen menu item to respect non-native fullscreen
...
Related to #392
2023-09-27 18:34:04 -07:00
Mitchell Hashimoto
1dab2f9dd3
macos: on Sonoma, manually add menu height padding for visible-menu
...
See the comment.
2023-09-27 18:17:35 -07:00
Mitchell Hashimoto
f4886bb80e
macos: read from clipboard uses UTF-8 encoded string, proper byte count
2023-09-25 17:26:23 -07:00
Mitchell Hashimoto
300ba32ad0
macos: enum does not need to be a string
2023-09-22 15:48:41 -07:00
Mitchell Hashimoto
1eb0dbb548
macos: more robust cursor visibility handling
...
Fixes #519
The core issue here was that `mouseEntered` was called AFTER
`cursorUpdate` (by Cocoa) so we were messing up our NSCursor state. To
fix this more robustly, all cursor state should ONLY be handled by
cursorUpdate and mouseEntered/Exit goes through that system now.
2023-09-22 15:47:08 -07:00
Mitchell Hashimoto
7f549c5b41
macos: detect mouseEntered/Exit on frame change
2023-09-21 09:42:17 -07:00
Mitchell Hashimoto
d12f07ceda
macos: mouse tracking area should always send
...
Without this, non-first-responder views would not receive mouse
entered/exit events. This would break some of our mouse hiding state.
See comments for more info.
2023-09-21 09:30:42 -07:00
Mitchell Hashimoto
960edee559
macos: background-opacity getter
2023-09-20 22:05:23 -07:00
Mitchell Hashimoto
3ad39dd5e4
macos: sync NSAppearance for app based on window-theme setting
2023-09-20 21:54:50 -07:00
Mitchell Hashimoto
bd528f5c11
macos: set the proper env var
2023-09-20 12:43:35 -07:00
Mitchell Hashimoto
7059b4f74d
apprt/embedded: ghostty_cli_main
2023-09-20 12:35:52 -07:00
Mitchell Hashimoto
cdbf16e13b
macos: set env var for app bundle to detect app launch vs CLI
2023-09-20 11:10:46 -07:00
Mitchell Hashimoto
6cee9e57f6
macos: prevent mouseEntered/Exited processing if already in that state
...
See the comment in the code.
Fixes #494
2023-09-20 08:53:31 -07:00
Mitchell Hashimoto
5a02635d2c
macos: async style clipboard reading
2023-09-19 10:36:17 -07:00
Mitchell Hashimoto
d911c49f44
macos: remove unnecessary call
2023-09-17 12:01:36 -07:00
SoraTenshi
833be445ba
Spawn alert box on new tab if decorations disabled
...
Stray spaces
Fix check for windowDecoration
2023-09-17 11:58:11 -07:00
Mitchell Hashimoto
2b380ad37e
macos: stylistic changes
2023-09-17 11:57:36 -07:00
Will Pragnell
81efb2dfe5
macos: always use latest window decoration config from runtime
2023-09-17 11:57:01 -07:00
SoraTenshi
ddb9be0971
Remove custom CAPI function
...
and use the already existing get_config function
2023-09-17 11:57:01 -07:00
SoraTenshi
3cb21dd76e
Store and restore style mask on fullscreen
2023-09-17 11:57:00 -07:00
SoraTenshi
ed8b5bc283
macos: allow to hide decorations
2023-09-17 11:57:00 -07:00
Mitchell Hashimoto
2dccf4596a
macos: consistent text
2023-09-15 15:58:14 -07:00
Mitchell Hashimoto
f8fea2f65b
macos: show warning in debug mode
2023-09-15 15:40:41 -07:00
Mitchell Hashimoto
724900f143
macos: implement setCursorVisibility
2023-09-14 19:37:30 -07:00
Mitchell Hashimoto
cb2931cb27
rename cursor shape to mouse shape for OSC 22
2023-09-14 11:12:17 -07:00
Mitchell Hashimoto
3356146bb4
macos: support cursor style
2023-09-14 10:40:40 -07:00
Mitchell Hashimoto
c1fe1f6646
macos: AppState config must be published and observed
...
Fixes #440
We previously weren't observing changes so they weren't being
automatically propagated. We were using an old pointer which at best
returned the wrong value and at worst crashed. I was able to make it
crash eventually, too.
This changes the fields to be properly published and observed and as a
result the config is immediately available to all users.
2023-09-13 15:06:41 -07:00
Mitchell Hashimoto
9c42b9976a
macos: use appearance-sensitive bg color for error window
...
Fixes #432
2023-09-13 08:10:19 -07:00
Mitchell Hashimoto
a95a1a8838
macos: add button to ignore configuration errors
...
The popup will return on the next launch or configuration load.
2023-09-12 22:25:24 -07:00
Mitchell Hashimoto
999d17c49d
macos: integrate needsConfirmQuit to quit if all windows are at prompt
2023-09-11 15:44:28 -07:00
Mitchell Hashimoto
2f0905b60c
macos: reload config MUST go through Zig core
2023-09-11 15:20:31 -07:00
Mitchell Hashimoto
42bbcbfb9b
macos: add a reload configuration button
2023-09-11 15:13:02 -07:00
Mitchell Hashimoto
ffd181f10d
macos: don't steal focus for config errors
2023-09-11 13:59:03 -07:00
Mitchell Hashimoto
6f7fdf002f
macos: hook up proper data events
2023-09-11 13:52:47 -07:00
Mitchell Hashimoto
711e3a5043
macos: add reload configuration to the Ghostty menu bar
2023-09-11 13:49:20 -07:00
Mitchell Hashimoto
4c0871b6dc
macos: don't clear contentview for configuration on close
2023-09-11 13:39:29 -07:00
Mitchell Hashimoto
f485672d4e
macos: fix some error window styling
2023-09-11 13:28:48 -07:00
Mitchell Hashimoto
db799d53e6
macos: UI for configuration errors
2023-09-11 13:21:13 -07:00
Mitchell Hashimoto
f0ee2fb454
macos: log configuration errors
2023-09-11 09:39:58 -07:00
Mitchell Hashimoto
2b04a7114b
macos: use the configured unfocused split opacity
2023-09-10 18:52:40 -07:00