Skip to content

feat(gui): A a tree structure usage search information - JTree Render#2503

Merged
skylot merged 7 commits intoskylot:masterfrom
17307:jtree
May 22, 2025
Merged

feat(gui): A a tree structure usage search information - JTree Render#2503
skylot merged 7 commits intoskylot:masterfrom
17307:jtree

Conversation

@17307
Copy link
Copy Markdown
Contributor

@17307 17307 commented May 22, 2025

I tried your suggestion and replaced the list with a Jtree. The effect feels really good. Now there is more space to display the data.

image

The highlighted part represents the currently selected level.

@skylot
Copy link
Copy Markdown
Owner

skylot commented May 22, 2025

@17307 great work! Thank you 👍

Although, I notice that you hardcoded highlighting color, so text become unreadable in dark themes. It is better to use (or mix in) color from current editor theme, check DynamicCodeAreaTheme class for some hints, like detecting dark theme and getting color from theme (UIManager.getColor("EditorPane.selectionBackground")).

To check all current colors (will open FlatLaf UI Inspector window):

  • set JADX_GUI_DEBUG=true environment variable
  • run jadx-gui
  • press ctrl shift alt Y

Added in jadx by this code:

if (UiUtils.JADX_GUI_DEBUG) {
FlatInspector.install("ctrl shift alt X");
FlatUIDefaultsInspector.install("ctrl shift alt Y");
}

@skylot skylot merged commit 00f0f55 into skylot:master May 22, 2025
4 checks passed
@MrIkso MrIkso mentioned this pull request May 23, 2025
@skylot
Copy link
Copy Markdown
Owner

skylot commented May 23, 2025

I notice that you hardcoded highlighting color

Fixed by @MrIkso in PR #2506

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants