Merged
Conversation
7d9e05f to
b39f8f1
Compare
1114c19 to
25596ce
Compare
92be5ee to
29fdbc8
Compare
add Relative Constraints
…etti fix swapped rowHeights/columnWidths
fix several bugs in FlexGridLayout and ConstrainedGrid
fix FlexGridConstraints nextRow and nextColumn
add FlexGridGridVisualiser
configure min/max size of VisualBox center text in VisualBox only open one instance of a visualizer at a time
temporarily? hide horizontal scroll bars of DeclarationSnippetPanels use FlexGridLayout in EntryTooltip
…n't intersect dock) put post-click repopulating moving in SwingUtilities::invokeLater after re-pack so it positions based on updated size
utilize new utils
update visualizers
…nd FlexGridLayout their own implementations cleanup
29fdbc8 to
439ae99
Compare
Member
Author
|
ready! |
…parsing only works on java source
eristhea
approved these changes
Feb 6, 2026
Member
eristhea
left a comment
There was a problem hiding this comment.
amazing work, this new layout is going to be so useful
| final Point oldMousePos = MouseInfo.getPointerInfo().getLocation(); | ||
| this.declarationSnippet.addSourceSetListener(source -> { | ||
| this.pack(); | ||
| // swing </3 |
enigma-swing/src/main/java/org/quiltmc/enigma/gui/util/layout/flex_grid/FlexGridLayout.java
Outdated
Show resolved
Hide resolved
enigma-swing/src/main/java/org/quiltmc/enigma/gui/util/layout/flex_grid/FlexGridLayout.java
Outdated
Show resolved
Hide resolved
| .build() | ||
| ); | ||
|
|
||
| this.repaint(); |
Member
There was a problem hiding this comment.
the white box shown in #337 is now less noticeable, but i can still reliably reproduce
enigma-swing/src/main/java/org/quiltmc/enigma/gui/panel/EntryTooltip.java
Outdated
Show resolved
Hide resolved
Co-authored-by: ix0rai <ix0rai64@gmail.com>
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.
based on #320 because both mess with editor panel scroll panesrebasedImproves entry tooltips:
no package,syntheticandanonymouslabel texts translatablegetPreferredSizemethodsBYTECODEbecause snippet parsing only works on java sourceFlexGridLayoutFlexGridLayoutis the custom layout manager used in tooltips.It's a general-purpose layout manager that aims to improve upon
GridBagLayout; most notably it replaces weights with priority.Its constraints are also much more programmer-friendly, IMO.
My hope is that it sees use throughout Enigma in the future.
The
:enigma-swing:visualizeGuitask allows opening various toy GUIs to visualize what GUI code is doing in lieu of a GUI test framework; currently it has a bunch of visualizations of various flex grid layouts.