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:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user