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

Too short space for "Note Lock" #6613

Open
anytizer opened this issue Jan 17, 2023 · 9 comments
Open

Too short space for "Note Lock" #6613

anytizer opened this issue Jan 17, 2023 · 9 comments

Comments

@anytizer
Copy link
Contributor

The width of note lock dropdown list is small, and hence full text is hiding.

image

@anytizer anytizer added the bug label Jan 17, 2023
@Monospace-V
Copy link
Contributor

All the boxes have this issue.
image
Since we don't know the possible length of a user-added scale's name, for instance, we cannot increase it to the fixed length of the longest item in the list (in this case, Minor Pentatonic).
I'm not sure if changing size as per item selected is a good idea, since scrolling over one will then have an ugly effect.

@PhysSong PhysSong added the gui label Jan 17, 2023
@anytizer
Copy link
Contributor Author

I tried with some new width values to get the attached images.

Length of Old New in PianoRoll.cpp
Quantization 64 85
m_quantizeComboBox->setFixedSize( 64, ComboBox::DEFAULT_HEIGHT );
Note Length 105 105
m_noteLenComboBox->setFixedSize( 105, ComboBox::DEFAULT_HEIGHT );
Key 72 72
m_keyComboBox->setFixedSize(72, ComboBox::DEFAULT_HEIGHT);
Scale 105 155
m_scaleComboBox->setFixedSize( 105, ComboBox::DEFAULT_HEIGHT );
Chord 105 125
m_chordComboBox->setFixedSize( 105, ComboBox::DEFAULT_HEIGHT );
Snap Mode 105 96
m_snapComboBox->setFixedSize(105, ComboBox::DEFAULT_HEIGHT);

Defaults (max lengths selected):
image

And,
image

@Monospace-V
Copy link
Contributor

Again, setting a fixed length may not work. The user can add their own scales, can they not? These can be of any length. Perhaps would be better to show full word on hover?

@zonkmachine
Copy link
Member

Again, setting a fixed length may not work. The user can add their own scales, can they not?

Is there a way to add your own scales without editing the source code? I don't know, but that doesn't mean we can't tweak the default values and the ones suggested above look better than before. The scale names aren't translated so that's what it will look like right there.

@Veratil
Copy link
Contributor

Veratil commented Apr 15, 2024

Is there a way to add your own scales without editing the source code?

No, but I did throw out a PR with a way to define some. It needs some much better work though, and proper integration into lmms rather than an external file.

@Rossmaxx
Copy link
Contributor

Rossmaxx commented Apr 24, 2024

@anytizer if you are still around, would you consider opening a PR? Or if you can't, I'll open on your behalf.

@michaelgregorius
Copy link
Contributor

Again, setting a fixed length may not work. The user can add their own scales, can they not? These can be of any length. Perhaps would be better to show full word on hover?

IMO the solution is to get rid of the custom LMMS combo boxes in most contexts and to use styled QComboBox instances instead. QComboBox already knows how to "behave" in most situations while the LMMS combo box does not.

Most of the combo boxes shown above can also be automated which does not make any sense either.

@anytizer
Copy link
Contributor Author

@Rossmaxx These numbers (widths of combo boxes) were intended for 1k resolution screen. Other sizes may cause us to vary those widths. Yes, I would suggest, at least let us change these values for now to make the default appearance better.

Regarding automations, and changes to new combo box instances, can we still do that after correcting the existing values? We might also need a way to reject automations in these dropdowns. @michaelgregorius.

@michaelgregorius
Copy link
Contributor

@Rossmaxx These numbers (widths of combo boxes) were intended for 1k resolution screen. Other sizes may cause us to vary those widths. Yes, I would suggest, at least let us change these values for now to make the default appearance better.

Starting with pull request #7185 the combo boxes use pixel sized fonts again. Therefore the corrections should also look identical on other screen sizes, assuming that global scaling is used by the users.

Regarding automations, and changes to new combo box instances, can we still do that after correcting the existing values? We might also need a way to reject automations in these dropdowns. @michaelgregorius.

Sure, this can also be done later. I guess one approach would be to implement something like an LmmsComboBox (or however it should be called) which inherits from QComboBox and that knows how to deal with instances of ComboBoxModel. This combo box would simply not implement any automation abilities (or alternatively make them optional/configurable).

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

No branches or pull requests

7 participants