Fix track operations button alignment, size, and style (#7779)
Make the track ops button consistently sized and style it and the solo & mute buttons using CSS instead of SVG assets
This commit is contained in:
@@ -56,9 +56,9 @@ CrossoverEQControlDialog::CrossoverEQControlDialog(CrossoverEQControls *controls
|
||||
layout->addLayout(knobsLayout);
|
||||
|
||||
const auto makeKnob = [this, knobsLayout](
|
||||
FloatModel *model,
|
||||
const QString &label,
|
||||
const QString &txt_before
|
||||
FloatModel* model,
|
||||
const QString& label,
|
||||
const QString& txt_before
|
||||
) {
|
||||
auto k = new Knob(KnobType::Bright26, this);
|
||||
k->setModel(model);
|
||||
@@ -76,8 +76,8 @@ CrossoverEQControlDialog::CrossoverEQControlDialog(CrossoverEQControls *controls
|
||||
layout->addLayout(bandsLayout);
|
||||
|
||||
const auto makeFader = [this, bandsLayout](
|
||||
FloatModel *model,
|
||||
const QString &label,
|
||||
FloatModel* model,
|
||||
const QString& label,
|
||||
int column
|
||||
) {
|
||||
auto f = new Fader(model, label, this, false);
|
||||
@@ -92,20 +92,16 @@ CrossoverEQControlDialog::CrossoverEQControlDialog(CrossoverEQControls *controls
|
||||
makeFader(&controls->m_gain3, tr("Band 3 gain"), 2);
|
||||
makeFader(&controls->m_gain4, tr("Band 4 gain"), 3);
|
||||
|
||||
const auto muteOn = embed::getIconPixmap("mute_active");
|
||||
const auto muteOff = embed::getIconPixmap("mute_inactive");
|
||||
|
||||
const auto makeMuteBtn = [this, bandsLayout, muteOn, muteOff](
|
||||
BoolModel *model,
|
||||
const QString &label,
|
||||
const auto makeMuteBtn = [this, bandsLayout](
|
||||
BoolModel* model,
|
||||
const QString& label,
|
||||
int column
|
||||
) {
|
||||
auto b = new PixmapButton(this, label);
|
||||
b->setActiveGraphic(muteOff);
|
||||
b->setInactiveGraphic(muteOn);
|
||||
auto b = new AutomatableButton(this, label);
|
||||
b->setCheckable(true);
|
||||
b->setModel(model);
|
||||
b->setToolTip(label);
|
||||
b->setObjectName("btn-mute-inv");
|
||||
bandsLayout->addWidget(b, 1, column, Qt::AlignCenter);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user