hanna
63fe99809f
remove hard dependency on libadwaita
2023-11-02 21:54:05 -07:00
Mitchell Hashimoto
bbf333c5c6
Merge pull request #783 from xdBronch/glfw-drop
...
add support for file dropping to glfw runtime
2023-11-02 21:35:02 -07:00
Mitchell Hashimoto
657111c410
apprt/glfw: small line length fixes
2023-11-02 21:34:43 -07:00
Hanna
2d7e2c8345
Integrate libadwaita for the gtk backend ( #792 )
...
* When using gtk as the backend, link libadwaita
* Update c.zig
* Use libadwaita's theme manager for gtk
* update the documentation for window-theme
* build: add libadwaita to the nix devshell
* forgot to properly import libadwaita
* apprt/gtk: adwaita style change
---------
Co-authored-by: Mitchell Hashimoto <mitchell.hashimoto@gmail.com>
2023-11-02 21:29:29 -07:00
xdBronch
008736c3bf
add support for file dropping to glfw runtime
2023-11-01 19:19:30 -04:00
Mitchell Hashimoto
59a53251cf
apprt/gtk: create new tab after current tab
...
This behaves the same as macOS, and personally I prefer this behavior
because when I create a new tab, it is often contextual to what I'm
currently working on and keeping the tab nearby feels right.
2023-10-31 09:49:39 -07:00
Mitchell Hashimoto
9b134a60c1
apprt/embedded: add API to detect if a single surface needs quit confirm
2023-10-30 09:06:23 -07:00
Mitchell Hashimoto
e188aba7f4
apprt/gtk: if no parent is set on new window, do not inherit wd
2023-10-30 08:50:58 -07:00
Mitchell Hashimoto
c2adf22858
apprt/gtk: comment on what is going on with keyval mapping
2023-10-28 08:42:35 -07:00
Vlad Pănăzan
6b7dd1479d
apprt/gtk: handle non-unicode keyvals
2023-10-28 15:35:16 +02:00
Mitchell Hashimoto
25e3b21eae
apprt/gtk: comment about future API
2023-10-27 15:09:52 -07:00
Mitchell Hashimoto
b985b28918
apprt/gtk: use gtk widget scale to get content scale
2023-10-27 15:03:41 -07:00
Vlad Pănăzan
ffaa7e11e2
apprt/gtk: handle surface scale changes
2023-10-27 23:27:53 +02:00
Mitchell Hashimoto
cf6ee6ed14
apprt/gtk: only create window header bar with window decorations
...
Fixes #737
2023-10-27 10:08:59 -07:00
Gregory Anders
2ee80a52df
macos: set window resizeIncrements when cell size changes
...
The resizeIncrements property is only modified when the cell size of the
focused window changes. If two splits have the same cell size then the
property is not modified when focusing between the two splits.
2023-10-26 20:27:58 -05:00
Mitchell Hashimoto
28aace4393
Merge pull request #728 from mitchellh/cimgui
...
Terminal Inspector v1
2023-10-26 10:12:39 -07:00
Nameless
41de71ae9e
fuzz: termio.MessageData small_size is max of 255, not 256
2023-10-25 11:44:21 -05:00
Mitchell Hashimoto
a162c7c47f
inspector: move inspector to dedicated folder
2023-10-24 15:27:16 -07:00
Mitchell Hashimoto
a9279f9871
apprt/glfw: does not implement inspector
2023-10-24 15:27:16 -07:00
Mitchell Hashimoto
6cfa9de4df
apprt/embedded: do not lock render state for inspector render
2023-10-24 15:27:16 -07:00
Mitchell Hashimoto
880d7869a9
inspector: show modes
2023-10-24 15:27:16 -07:00
Mitchell Hashimoto
c8b9bea1e1
apprt: none has app/surface so tests pass
2023-10-24 15:27:15 -07:00
Mitchell Hashimoto
5a299e14e4
all threads are notified of inspector state, trigger render
2023-10-24 15:27:15 -07:00
Mitchell Hashimoto
afa08ffc02
initial work on basic inspector information
2023-10-24 15:27:15 -07:00
Mitchell Hashimoto
c1fade6e5b
apprt/embedded: also must render imgui multiple times
2023-10-24 15:27:15 -07:00
Mitchell Hashimoto
a1a398be4d
inspector: setup basic modes window (empty), dock
2023-10-24 15:27:15 -07:00
Mitchell Hashimoto
597c1a17ae
apprt/embedded: render in native dpi
2023-10-24 15:27:15 -07:00
Mitchell Hashimoto
55f681a0fd
inspector is scaled to native dpi
2023-10-24 15:27:15 -07:00
Mitchell Hashimoto
d65b29a537
apprt/embedded: render inspector
2023-10-24 15:27:15 -07:00
Mitchell Hashimoto
865bf7441c
apprt/gtk: initialize and run the inspector
2023-10-24 15:27:15 -07:00
Mitchell Hashimoto
7a30d1080e
core: hook up all the inspector activation state and such
2023-10-24 15:27:15 -07:00
Mitchell Hashimoto
dcb6eef9c4
apprt/gtk: different bg color for imgui widget
2023-10-24 15:27:15 -07:00
Mitchell Hashimoto
522d6b8ba1
apprt/gtk: destory the inspector properly on close
2023-10-24 15:27:15 -07:00
Mitchell Hashimoto
6a50a938d6
apprt/gtk: button to toggle inspector
2023-10-24 15:27:15 -07:00
Mitchell Hashimoto
199e1cae29
apprt/gtk: surface has inspector state
2023-10-24 15:27:15 -07:00
Mitchell Hashimoto
29bbcbbf92
core: add input binding to control terminal inspector
2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
92d172377e
macos: don't do full surface-style key translation for imgui
2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
ddd7ff4bbb
apprt/gtk: use shared key => imgui key helper
2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
52ccef3b8e
macos: only re-render the inspector when requested
2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
d50ff6ece7
macos: complete cimgui events
2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
2c40183c3c
macos: rendering basic imgui
2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
775a734892
apprt/gtk: use new imgui opengl API
2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
f3d99efcd8
apprt/gtk: imgui widget calls callback to populate imgui frame
2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
c0ace7a29e
apprt/gtk: complete imgui backend
2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
869e4133f1
apprt/gtk: can render imgui
2023-10-24 15:27:14 -07:00
Mitchell Hashimoto
a60f9eb9e6
apprt/gtk: empty inspector window
2023-10-24 15:27:13 -07:00
Mitchell Hashimoto
e74897fa01
config: add option to disable working directory inheritance
...
Fixes #618
2023-10-05 21:55:43 -07:00
Mitchell Hashimoto
ee832aa361
apprt/embedded: ghostty_surface_text function, remove _char
2023-10-04 07:56:56 -07:00
Mitchell Hashimoto
3046fb6dd7
core: textCallback to send text directly to the terminal
2023-10-04 07:50:05 -07:00
Mitchell Hashimoto
bb5246c65d
apprt/embedded: validate directory for wd
2023-10-03 22:13:36 -07:00