Skip to content

Conversation

@supersaiyansubtlety
Copy link
Member

@supersaiyansubtlety supersaiyansubtlety commented Dec 8, 2025

based on #320 because both mess with editor panel scroll panes

Improves entry tooltips:

  • uses a custom layout manager to handle multiple scroll panes in the tooltip
  • repaints the tooltip when populating; fixes artifacts from prior population when repacking doesn't trigger a repaint
  • makes the no package, synthetic and anonymous label texts translatable
  • prevents tooltips from overlapping with screen insets (no dock overlap)
  • fixes Tooltips get cut off when horizontal scrollbar is present #342 by accounting for scroll bar size in scroll panes' getPreferredSize methods
  • rebase once Token type markers #320 is merged

FlexGridLayout

FlexGridLayout is 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:visualizeGui task 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.

@supersaiyansubtlety supersaiyansubtlety self-assigned this Dec 8, 2025
@supersaiyansubtlety supersaiyansubtlety added bug Something isn't working enhancement New feature or request user interface affects the enigma ui labels Dec 8, 2025
rename FlexGridConstraints' width/height -> xExtent/yExtent
add FlexGridDiagonalBricksVisualizer
…alizer

fix type alightCenterLeft -> alignCenterLeft
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request user interface affects the enigma ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant