mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-14 19:45:49 +00:00
inspector: add grid section to screen
This commit is contained in:
@@ -261,7 +261,6 @@ fn setupLayout(self: *Inspector, dock_id_main: cimgui.c.ImGuiID) void {
|
||||
// Surface is docked first so it appears as the first tab.
|
||||
cimgui.ImGui_DockBuilderDockWindow(inspector.surface.Window.name, dock_id_main);
|
||||
cimgui.ImGui_DockBuilderDockWindow(inspector.terminal.Window.name, dock_id_main);
|
||||
cimgui.ImGui_DockBuilderDockWindow(inspector.screen.Window.name, dock_id_main);
|
||||
cimgui.ImGui_DockBuilderDockWindow(window_keyboard, dock_id_main);
|
||||
cimgui.ImGui_DockBuilderDockWindow(window_termio, dock_id_main);
|
||||
cimgui.ImGui_DockBuilderDockWindow(window_cell, dock_id_main);
|
||||
|
||||
@@ -44,7 +44,6 @@ pub const Window = struct {
|
||||
}
|
||||
|
||||
fn renderContent(self: *Window, data: FrameData) void {
|
||||
_ = self;
|
||||
const screen = data.screen;
|
||||
|
||||
// Show warning if viewing an inactive screen
|
||||
@@ -143,6 +142,13 @@ pub const Window = struct {
|
||||
} // table
|
||||
} // keyboard
|
||||
|
||||
if (cimgui.c.ImGui_CollapsingHeader(
|
||||
"Grid",
|
||||
cimgui.c.ImGuiTreeNodeFlags_None,
|
||||
)) {
|
||||
self.renderGrid();
|
||||
} // grid
|
||||
|
||||
if (cimgui.c.ImGui_CollapsingHeader(
|
||||
"Kitty Graphics",
|
||||
cimgui.c.ImGuiTreeNodeFlags_None,
|
||||
@@ -283,4 +289,10 @@ pub const Window = struct {
|
||||
}
|
||||
} // terminal state
|
||||
}
|
||||
|
||||
/// Render the grid section.
|
||||
fn renderGrid(self: *Window) void {
|
||||
_ = self;
|
||||
cimgui.c.ImGui_Text("Mode");
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user