Show effect name as title of dialog

Add the effect name as the title in the content of the window. This improves the structure of the dialog as it is now clearer from the content itself to which effect the controls belong to.

This duplicates the information from the window title. However, the window title is rather small and the larger font in the content makes it easier to find an effect in a set of opened dialogs.
This commit is contained in:
Michael Gregorius
2023-10-03 10:36:09 +02:00
parent 3b119f98f3
commit 8ce0d366d0
3 changed files with 16 additions and 0 deletions

View File

@@ -467,6 +467,12 @@ lmms--gui--EffectControlDialog QGroupBox::title {
padding: 2px 1px;
}
lmms--gui--LadspaMatrixControlDialog QLabel#ladspaheader {
font-size: 14pt;
font-weight: bold;
qproperty-alignment: AlignCenter;
}
/* main toolbar */
QWidget#mainToolbar {

View File

@@ -490,6 +490,12 @@ lmms--gui--EffectControlDialog QGroupBox::title {
padding: 2px 1px;
}
lmms--gui--LadspaMatrixControlDialog QLabel#ladspaheader {
font-size: 14pt;
font-weight: bold;
qproperty-alignment: AlignCenter;
}
/* main toolbar */
QWidget#mainToolbar {

View File

@@ -55,6 +55,10 @@ LadspaMatrixControlDialog::LadspaMatrixControlDialog(LadspaControls * ladspaCont
{
QVBoxLayout * mainLayout = new QVBoxLayout(this);
QLabel * label = new QLabel(ladspaControls->effect()->displayName(), this);
label->setObjectName("ladspaheader");
mainLayout->addWidget(label);
m_scrollArea = new QScrollArea(this);
m_scrollArea->setWidgetResizable(true);
m_scrollArea->setFrameShape(QFrame::NoFrame);