Upgrade Amplifier plugin PNG assets with SVG (#7770)
Replaces the .png raster assets for the native Amplifier plugin with .svg vector assets.
This commit is contained in:
@@ -42,14 +42,14 @@ AmplifierControlDialog::AmplifierControlDialog(AmplifierControls* controls) :
|
||||
|
||||
auto makeKnob = [this](int x, int y, const QString& label, const QString& hintText, const QString& unit, FloatModel* model, bool isVolume)
|
||||
{
|
||||
Knob* newKnob = new Knob(KnobType::Bright26, this);
|
||||
newKnob->move(x, y);
|
||||
newKnob->setModel(model);
|
||||
newKnob->setLabel(label);
|
||||
newKnob->setHintText(hintText, unit);
|
||||
newKnob->setVolumeKnob(isVolume);
|
||||
return newKnob;
|
||||
};
|
||||
Knob* newKnob = new Knob(KnobType::Bright26, this);
|
||||
newKnob->move(x, y);
|
||||
newKnob->setModel(model);
|
||||
newKnob->setLabel(label);
|
||||
newKnob->setHintText(hintText, unit);
|
||||
newKnob->setVolumeKnob(isVolume);
|
||||
return newKnob;
|
||||
};
|
||||
|
||||
makeKnob(16, 10, tr("VOL"), tr("Volume:"), "%", &controls->m_volumeModel, true);
|
||||
makeKnob(57, 10, tr("PAN"), tr("Panning:"), "%", &controls->m_panModel, false);
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
INCLUDE(BuildPlugin)
|
||||
|
||||
BUILD_PLUGIN(amplifier Amplifier.cpp AmplifierControls.cpp AmplifierControlDialog.cpp MOCFILES AmplifierControls.h AmplifierControlDialog.h EMBEDDED_RESOURCES artwork.png logo.png)
|
||||
BUILD_PLUGIN(amplifier Amplifier.cpp AmplifierControls.cpp AmplifierControlDialog.cpp MOCFILES AmplifierControls.h AmplifierControlDialog.h EMBEDDED_RESOURCES artwork.svg logo.svg)
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 7.6 KiB |
13
plugins/Amplifier/artwork.svg
Normal file
13
plugins/Amplifier/artwork.svg
Normal file
@@ -0,0 +1,13 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" width="100" height="110">
|
||||
<defs>
|
||||
<linearGradient id="a">
|
||||
<stop offset="0" stop-color="#08090c"/>
|
||||
<stop offset="1" stop-color="#101116"/>
|
||||
</linearGradient>
|
||||
<linearGradient xlink:href="#a" id="b" x1="0" x2="0" y1="110" y2="0" gradientUnits="userSpaceOnUse"/>
|
||||
</defs>
|
||||
<g>
|
||||
<path fill="url(#b)" d="M0 0h100v110H0z"/>
|
||||
<path stroke="#191a20" stroke-width="2" d="M100 55H0"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 524 B |
Binary file not shown.
|
Before Width: | Height: | Size: 774 B |
3
plugins/Amplifier/logo.svg
Normal file
3
plugins/Amplifier/logo.svg
Normal file
@@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="48" height="48">
|
||||
<path fill="#fff" d="M7.86719 2C3.95608 2 2 3.95608 2 7.86719V40.1328C2 44.04392 3.95608 46 7.86719 46H40.1328C44.04392 46 46 44.04392 46 40.13281V7.8672C46 3.95608 44.04392 2 40.13281 2H7.8672zM24 9l15 8.4375V35.25l-5.625 2.8125L27.75 35.25v-6.5625l5.625-2.8125V20.25L24 15.5625 14.625 20.25v5.625l5.625 2.8125V35.25l-5.625 2.8125L9 35.25V17.4375L24 9z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 451 B |
Reference in New Issue
Block a user