Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inspector improvements #555

Merged
merged 3 commits into from
Feb 21, 2024
Merged

Inspector improvements #555

merged 3 commits into from
Feb 21, 2024

Conversation

skalarproduktraum
Copy link
Member

@skalarproduktraum skalarproduktraum commented Feb 20, 2024

This PR improves the inspector in the following ways:

  • the font size is changed to 90% the regular font size to accommodate more controls in the inspector
  • the MigLayout managers for all the inspector's constituents are changed to decrease white space in the inspector and make things more compact
  • the transfer function editor for volumes now correctly shows up under the Volume group and transforms correctly
  • in SwingGroupingInputHarvester, the group names are saved to the name of the respective component, such that they are identifiable later on in the lifecycle

Screenshot 2024-02-20 at 11 03 14

…utton for volumes to prevent superfluous hide/show events for histogram
val newFont = it.font.deriveFont(it.font.size * scale)
it.font = newFont

if(it is Container) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do Container types have visible fonts themselves or are they just meta objects for the hierarchy? If the second is the case, you could put lines 348-349 in an else clause?

@Throws(ModuleException::class)
override fun buildPanel(inputPanel: InputPanel<JPanel, JPanel>, module: Module) {
buildPanel(inputPanel, module, false)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reason for creating the overloaded function here instead of setting uiDebug: Boolean = false per default?

Copy link
Contributor

@smlpt smlpt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, left two comments where I wasn't sure why you did things that way.

Copy link
Member

@kephale kephale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ctrueden
Copy link
Member

  • the font size is changed to 90% the regular font size to accommodate more controls in the inspector
  • the MigLayout managers for all the inspector's constituents are changed to decrease white space in the inspector and make things more compact

Yaaaaas! Fight back against the "clean whitespace" propaganda!

@kephale kephale merged commit 6a02c5b into main Feb 21, 2024
4 checks passed
@kephale kephale deleted the ui/inspector-improvements branch February 21, 2024 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants