Skip to content

Commit 919f9a1

Browse files
authored
Upgrade Amplifier plugin PNG assets with SVG (LMMS#7770)
Replaces the .png raster assets for the native Amplifier plugin with .svg vector assets.
1 parent d4fe398 commit 919f9a1

File tree

6 files changed

+25
-9
lines changed

6 files changed

+25
-9
lines changed

plugins/Amplifier/AmplifierControlDialog.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ AmplifierControlDialog::AmplifierControlDialog(AmplifierControls* controls) :
4242

4343
auto makeKnob = [this](int x, int y, const QString& label, const QString& hintText, const QString& unit, FloatModel* model, bool isVolume)
4444
{
45-
Knob* newKnob = new Knob(KnobType::Bright26, this);
46-
newKnob->move(x, y);
47-
newKnob->setModel(model);
48-
newKnob->setLabel(label);
49-
newKnob->setHintText(hintText, unit);
50-
newKnob->setVolumeKnob(isVolume);
51-
return newKnob;
52-
};
45+
Knob* newKnob = new Knob(KnobType::Bright26, this);
46+
newKnob->move(x, y);
47+
newKnob->setModel(model);
48+
newKnob->setLabel(label);
49+
newKnob->setHintText(hintText, unit);
50+
newKnob->setVolumeKnob(isVolume);
51+
return newKnob;
52+
};
5353

5454
makeKnob(16, 10, tr("VOL"), tr("Volume:"), "%", &controls->m_volumeModel, true);
5555
makeKnob(57, 10, tr("PAN"), tr("Panning:"), "%", &controls->m_panModel, false);

plugins/Amplifier/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
INCLUDE(BuildPlugin)
22

3-
BUILD_PLUGIN(amplifier Amplifier.cpp AmplifierControls.cpp AmplifierControlDialog.cpp MOCFILES AmplifierControls.h AmplifierControlDialog.h EMBEDDED_RESOURCES artwork.png logo.png)
3+
BUILD_PLUGIN(amplifier Amplifier.cpp AmplifierControls.cpp AmplifierControlDialog.cpp MOCFILES AmplifierControls.h AmplifierControlDialog.h EMBEDDED_RESOURCES artwork.svg logo.svg)

plugins/Amplifier/artwork.png

-7.56 KB
Binary file not shown.

plugins/Amplifier/artwork.svg

Lines changed: 13 additions & 0 deletions
Loading

plugins/Amplifier/logo.png

-774 Bytes
Binary file not shown.

plugins/Amplifier/logo.svg

Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)