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

Scale channel name labels to fit window size. #7509

Open
1 task done
Gabrielxd195 opened this issue Sep 18, 2024 · 1 comment
Open
1 task done

Scale channel name labels to fit window size. #7509

Gabrielxd195 opened this issue Sep 18, 2024 · 1 comment

Comments

@Gabrielxd195
Copy link

Enhancement Summary

Channel name labels in the mixer cannot be stretched; however, volume controls can, which makes the mixer look very disproportionate and unpleasant to look at, and you cannot see the full titles on the channels.
Make labels and volume controls proportional to the size of the windows: half and half.

Implementation Details / Mockup

Escalar etiquetas conforme al tamaño de la ventana

Please search the issue tracker for existing feature requests before submitting your own.

  • I have searched all existing issues and confirmed that this is not a duplicate.
@michaelgregorius
Copy link
Contributor

michaelgregorius commented Sep 18, 2024

Unfortunately, this is not as simple as it might seem at first sight. Normally, one would change the 0 in the following line to something else, e.g. a 1:

mainLayout->addWidget(m_renameLineEditView, 0, Qt::AlignHCenter);

This would then let the name label grow one unit whenever the fader grows a unit, because it's also set to 1:

mainLayout->addWidget(m_fader, 1, Qt::AlignHCenter);

However, making these changes leads to the same behavior as before. That's because the (re)name label is set to a fixed size:

m_renameLineEditView->setFixedSize(m_renameLineEdit->height() + 5, m_renameLineEdit->width() + 5);

Commenting this out makes the name label take more potential space but the label text is still small and the mixer strips become quite a lot wider:

7509-ScalableMixerChannelNames

As you can see the actual label texts are still small though.

Setting the edit to a fixed width instead of a fixed size also has not effect, i.e. the following does not work:

m_renameLineEditView->setFixedWidth(m_renameLineEdit->width() + 5);

The reason is that the name label has quite some complex implementation, i.e. it is a QGraphicsScene which display the actual line edit. I think this was done so that the rename dialog is also rotated by 90 degrees if you rename the channel.

The width of the mixer channel is the width that's set here:

m_renameLineEdit->setFixedWidth(65);

If you increase this size then the mixer channel will become even wider.

This all needs to be fixed or reimplemented if someone wants to tackle this.

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

2 participants