Enigma icon indicating copy to clipboard operation
Enigma copied to clipboard

Dockable dialogs

Open 2xsaiko opened this issue 4 years ago • 1 comments

image

2xsaiko avatar Jul 05 '21 17:07 2xsaiko

  • Language does not change on click on RPanels unlike the rest of the UI

yep, RPanel.setTitle seems to be broken, I didn't 100% test it since I had to add it in during the rebase (the original version of this code was written before on-the-fly language change was a thing)

  • Width of RPanels cannot be adjusted: it's the width of the text inside. This leads to very wide panels when the editor is not empty, and very thin otherwise

WorkspaceRPanelContainer which is supposed to handle this is very WIP, I just started actually implementing it today

  • Drag and drop doesn't work for me (yet I assume?)

Yep, will have to see how to do that, especially dropping windows back into the main frame, I don't think it's something that Swing has anything preexisting (or at least documented) for, like pretty much any of what I'm doing here (hell, just look at RotationLayerUI, the entire class is just to rotate the buttons and I had to go through obscure StackOverflow questions to manage to put something together that actually works)

Worst comes to worst, I'll have a menu on the panel that allows you to move it around like in IntelliJ but I'd really rather not because that's abysmal. I basically want to replicate how these work in Qt because the Qt dockable dialogs are great.

  • Details but the little java icons on every panel is a bit too much imo. Could be changed with proper icons or removed (JFrame.setIconImage)

Yup, the icon is going away, it's definitely unnecessary (edit: depends on the theme, it isn't there in the first place with Metal so I never noticed it originally)

2xsaiko avatar Jul 05 '21 21:07 2xsaiko