Repository navigation
Ariadne: a window's maximize button, tree.<id>.maximized, and maximizable: - #1086
Merged
Merged
Conversation
…able:
A window could collapse to its title bar, but not fill the screen. Now its title bar has a maximize
button beside the collapse arrow and the close X: pressed, the window fills the screen under the
main menu bar; pressed again, it goes back to the place and size it had.
- Its state is tree.<id>.maximized (1 / 0), which a document may write. While a window is
maximized its tree.<id>.geometry is not written, so it keeps where the window goes back to,
across a restart too.
- maximizable: false (default true) gives a window no button.
- Backend::next_window_maximize(bool *) before begin_window: a backend that can returns true and
flips the flag when its button is pressed. Capabilities::maximize -> token ui.maximize.
- ImGui: a square (two while maximized) in the title bar, an item clipped to it as ImGui's own
close button is; maximized, the window is set to the work area each frame, not movable or
resizable, and the place and size it had come back after.
- FTXUI: [^] / [=] (an up / up-down arrow with Unicode) beside the [x]; maximized, the window is
drawn from the top-left as big as the terminal, its placement kept.
- Hosted (the tvision desktop): none; tvision's zoom box is its own.
Docs: ARIADNE.md section 5.9 and the 5.7 token table.
Tests: ariadne_ftxui_test's AWindowMaximizesToTheScreenAndBack, ariadne_loader_test's
MaximizableWindow, new cvcgl_imgui_maximize (a tap on the square through ImGui's input, back, the
state key both ways, the geometry kept, maximizable: false).
Every ImGui window's title bar now has the maximize square, so the five documents' goldens move by its pixels. These are the frames CI's llvmpipe drew (package-linux / libcvc-release-grpc's ari-golden artifact); the Windows job's matched them, and so does a local Intel GPU within the tolerance. The macOS variants (scene, widgets) follow from the macOS job.
…ttons scene.macos.png and widgets.macos.png from the macOS package job's ari-golden artifact (Apple's renderer), whose only difference from the old ones is each title bar's maximize square.
…/ariadne-window-maximize # Conflicts: # inc/cvc/ariadne/backend.h # inc/cvc/ariadne/ftxui_backend.h # src/cvc/ariadne/ftxui_backend.cpp # src/cvcGL/CMakeLists.txt # src/cvcGL/ariadne/ImGuiBackend.cpp
transfix
enabled auto-merge (squash)
November 9, 2026 18:24
This was referenced Nov 10, 2026
transfix
added a commit
to cy-pca/cypkg
that referenced
this pull request
Nov 12, 2026
The previous commit moved the unit frames to ari 3.7.13's window titles ([↑] after the title, transfix/libcvc#1086). The snapshots in tests/expected/ draw the same windows: the cypkg window, and the Builders, Builds, Activity and Account windows over it. Only those title lines change.
transfix
added a commit
to cy-pca/cypkg
that referenced
this pull request
Nov 12, 2026
…rch once; frames for ari 3.7.13 (#11) * search: the filter combos ask for the search; a request reads its search once - The Platform, Arch and Link combos search again from the first row in their on:, as the query field does. on_tick no longer compares the filters with the ones it last sent: a combo's on: has fired since transfix/libcvc#902. - on_tick read the search's key at its top and took the request further down. A tick can run over frames, so a query typed in between was searched under the key from before it: the reply counted as no new query, and the status kept the old package count. The request now reads the query and the filters once as it is taken, for the key, the request and the prefetch alike. (search_test caught it on ari 3.7.13 once the filter compare was gone.) - search_test sets a filter as the combo's on: does; tests/interactive.sh picks one with the keyboard in both terminal backends. ROADMAP's L15 is done. * tests: ari 3.7.13 draws a window's maximize marker in its title transfix/libcvc#1086 gave windows a maximize button; FTXUI draws it as [↑] in the title bar. The six unit frames with a window title take it. Only the first line of each changes. tests/run.sh had not run on 3.7.13 before: the scheduled runs skip it. * tests: the whole-document frames carry ari 3.7.13's maximize marker too The previous commit moved the unit frames to ari 3.7.13's window titles ([↑] after the title, transfix/libcvc#1086). The snapshots in tests/expected/ draw the same windows: the cypkg window, and the Builders, Builds, Activity and Account windows over it. Only those title lines change. * tests: the integration filter tests ask for the search as a combo does A filter combo's on: sets the offset to 0 and req.search (views.ari); a state-set on search.platform, .arch or .link alone no longer searches. The integration copy of the filter tests set the filters alone, so each waited for a search that never came (max_steps_exceeded). They now do what the combos do, as tests/modules/search_test.ari already does. * tests: the integration frames carry the maximize marker too The integration step's snapshots against a local cvcpkg-server (tests/integration/expected/) draw the same cypkg window as tests/expected/; its title line gains ari 3.7.13's [↑]. Nothing else in those frames changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A window's title bar gets a maximize button, as the user asked: "the dropdown arrow is really nice to 'minimize' into a bar. But we should also have a square icon to maximize the window to fill the screen under the main menu. this should be general to ariadne."
Pressed, the window fills the screen under the main menu bar. Pressed again, it goes back to the place and size it had.
tree.<id>.maximized(1/0), which a document may write, as it writestree.<id>.open.tree.<id>.geometryisn't written, so it keeps where the window goes back to, across a restart too.maximizable: falsegives a window no button. The default istrue.Backend::next_window_maximize(bool *), called beforebegin_window. A backend that can maximize returns true and flips the flag when its button is pressed (the default returns false).Capabilities::maximizefeeds the tokenui.maximize.[↑]beside the[x], and[↕]to go back ([^]/[=]without those glyphs). Maximized, the window is drawn from the top-left as big as the terminal, its own placement untouched.The golden images will change. Every ImGui window's title bar now has the square, so
cvcgl_ari_golden's five documents differ by the icon's pixels (64 to 320 px each, beyond the 0.002% tolerance). The goldens are made under Mesa llvmpipe, and two have macOS variants, so I'll replace them with the frames the package jobs upload (ari-golden-*artifacts) once they have run. That will be a follow-up commit on this PR.Docs: ARIADNE.md §5.9 and the §5.7 token table.
Tests:
ariadne_ftxui_test:AWindowMaximizesToTheScreenAndBackchecks:maximizable: falsewindow has no marker.ariadne_loader_test:MaximizableWindow.cvcgl_imgui_maximize, through ImGui's own mouse input:maximizable: false.Locally on Windows (FTXUI on), every Ariadne suite and every
cvcgl_imgui_*test pass. The golden test fails only on the icon, as described above.