Antonio Scandurra
735347ffc1
Don't focus incoming call and project shared notification windows
2022-11-02 14:17:16 +01:00
Antonio Scandurra
6c28b49edd
Log instead of panicking when we can't retrieve a drawable
2022-10-26 14:30:48 +02:00
Antonio Scandurra
99113fcc8c
Convert window frame rect to screen coordinates
2022-10-26 14:27:53 +02:00
Antonio Scandurra
3d4906f002
Add the ability to open a window on a given screen
...
This is done by supplying the screen in the `WindowOptions` struct.
Note that it's optional, and we will let the operating system choose
which screen to show the window on when `screen` is not provided, as
we did before this change.
2022-10-26 12:04:45 +02:00
K Simmons
d6ce5e5da9
remove derive_more
2022-10-25 00:06:43 -07:00
K Simmons
a092dda8cd
Add fn modifier to modifier keys in gpui and refactor platform events to use a single modifiers struct
2022-10-24 23:50:39 -07:00
Nathan Sobo
25476bcbc6
Move handling of modifier changes to new View hook
2022-10-16 12:47:48 -06:00
Max Brunsfeld and Mikayla Maki
7c96e0d6e6
Add MovePageUp and MovePageDown editor commands
...
Co-authored-by: Mikayla Maki <mikayla@zed.dev >
2022-10-14 12:36:46 -07:00
Max Brunsfeld
245db0b084
Merge pull request #1715 from zed-industries/scrollbars
...
Add scrollbars
2022-10-11 13:34:15 -07:00
Max Brunsfeld
4c9e2492a0
Enable/disable scrollbar auto-hide based on OS setting
2022-10-11 09:13:34 -07:00
Antonio Scandurra
794bea8dbd
Merge remote-tracking branch 'origin/main' into room
2022-10-10 15:43:38 +02:00
Antonio Scandurra
6a15c0481f
Show all room participants in titlebar
...
...and allow following them into external projects.
2022-10-10 14:20:45 +02:00
Antonio Scandurra
bf258be248
Style incoming call notification
2022-10-10 11:36:39 +02:00
Antonio Scandurra
bd9db2e919
Cache CGEventSource and avoid leaking CGEvent when handling events
2022-09-30 09:51:03 +02:00
Max Brunsfeld
dd734fcea6
wip
2022-09-26 15:23:10 -07:00
Max Brunsfeld
81af17d294
Start work on a client-side telemetry system
2022-09-23 12:23:12 -07:00
Antonio Scandurra
540c108797
💄
2022-09-16 11:09:30 +02:00
Antonio Scandurra
446b6af44b
Don't assume BOOL is a boolean
2022-09-16 11:03:15 +02:00
Antonio Scandurra
c1726e7802
Introduce workaround for spurious windowDidBecomeKey event
2022-09-16 10:55:15 +02:00
Antonio Scandurra
1b4ae29aab
Allow panels to appear on top of full-screen apps
2022-09-16 10:48:20 +02:00
Antonio Scandurra
53e1245402
Inline empty NSTrackingArea rect
2022-09-16 09:54:48 +02:00
Antonio Scandurra
aa3b22ebf1
Autorelease NSTrackingArea to avoid leaking it
2022-09-15 16:24:02 +02:00
Antonio Scandurra
ce1b0564a5
Query isKeyWindow on windowDidBecomeKey or windowDidResignKey
...
Before we were assuming that receiving a callback meant that the window
was in that "key" state accordingly, but with popups that's not always
the case. In particular, there was a bug that caused an unrelated window
to receive `windowDidBecomeKey` when making an `NSPanel` the key window.
2022-09-15 15:57:02 +02:00
Antonio Scandurra
d755b791e0
Use an "always active" tracking area to detect mouseMoved events
...
This ensures that we can still receive mouse moved events (e.g. for
setting the cursor style) for panels that float above other windows
even if the application isn't active.
2022-09-15 15:45:08 +02:00
Antonio Scandurra
aaf099faa5
Animate popup window as if it were an NSMenu
2022-09-15 12:15:40 +02:00
Antonio Scandurra
a4f2fa0d27
Merge branch 'main' into capture
2022-09-15 12:02:07 +02:00
Antonio Scandurra
d23507c6ac
Allow contacts popover to be activated even if app isn't foregrounded
2022-09-15 11:44:51 +02:00
Antonio Scandurra
05770545a7
Add the ability to specify a level when creating windows
...
This lets some windows stay on top of others, independently of
whether the application is in the foreground.
2022-09-14 17:40:04 +02:00
Antonio Scandurra
a53e49d83c
Use viewDidChangeEffectiveAppearance to detect appearance changes
2022-09-14 15:49:08 +02:00
Antonio Scandurra
1ba6ea28b3
Toggle contacts popover when clicking on status bar icon
2022-09-14 15:43:51 +02:00
Antonio Scandurra
0281cc2c48
Extract a common App::register_platform_window
2022-09-14 11:58:05 +02:00
Antonio Scandurra
fe728a9eb8
Refresh windows when OS appearance changes
2022-09-14 11:47:43 +02:00
Antonio Scandurra
504d134546
Rework status bar item to use a custom view
2022-09-13 16:20:34 +02:00
Antonio Scandurra
b87eb76a9c
🎨
2022-09-13 14:50:18 +02:00
Antonio Scandurra
382088c377
Use a transparent layer for status bar
...
This allows the compositor to blend the GPUI view with the background.
2022-09-13 14:11:50 +02:00
Antonio Scandurra
88d4122786
Set contents scale and drawable size when creating status metal layer
2022-09-13 14:11:50 +02:00
Antonio Scandurra
2c17c517a4
Wire up event handling for status items
2022-09-13 14:11:50 +02:00
Antonio Scandurra
0d1cc813b0
WIP: Start rendering GPUI views to macOS status bar
2022-09-13 14:11:48 +02:00
Antonio Scandurra
bf15fcb1d2
Encapsulate metal layer into Renderer
2022-09-13 14:10:13 +02:00
Antonio Scandurra and Nathan Sobo
c22a637d1e
Remove platform::WindowContext trait
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-09-13 14:10:13 +02:00
Antonio Scandurra and Nathan Sobo
9fc3d5fd7b
WIP: Show status bar item with a backing metal layer
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-09-13 14:10:13 +02:00
Antonio Scandurra
d28cf44d57
WIP
2022-09-13 14:10:13 +02:00
Antonio Scandurra and Nathan Sobo
ae66bf4749
Add the ability to hide the titlebar when creating windows
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-09-13 14:10:13 +02:00
Antonio Scandurra
99dc2f3444
Render surfaces correctly when encoded in 420YpCbCr8BiPlanarFullRange
2022-09-13 14:10:13 +02:00
Antonio Scandurra
62484540da
WIP: render screen-sharing frames
2022-09-13 14:10:13 +02:00
Antonio Scandurra
5010b8bf6e
Honor scale factor when rendering
2022-09-13 14:10:13 +02:00
Antonio Scandurra
6d6c5efc96
Return results for fallible media APIs
2022-09-13 14:10:13 +02:00
Antonio Scandurra
0e67c8e28e
Capture screen in BGRA8 and render it in capture example app
2022-09-13 14:10:13 +02:00
Nathan Sobo
ba47bf20bd
Start on using CVMetalTextureCache
2022-09-13 14:10:13 +02:00
Nathan Sobo
fbc89c7546
Pass CVImageBuffers into GPUI instead of IOSurfaces
2022-09-13 14:10:13 +02:00