Skip to content

Commit

Permalink
Add new Valentine logo
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseDiazRohena committed Jan 3, 2024
1 parent c05d1ea commit 948c085
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} PREFIX "" FILES ${SourceFiles})
set(AssetFiles
src/gui/assets/fonts/Roboto-Medium.ttf
src/gui/assets/fonts/RobotoMono-Medium.ttf
src/gui/assets/logos/valentine_logo_black.svg
src/gui/assets/logos/val_totebag_logo.svg
)

# Setup our binary data as a target
Expand Down
10 changes: 5 additions & 5 deletions src/gui/panels/ValentineCenterPanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ CenterPanel::CenterPanel (ValentineAudioProcessor& processor)
, saturateSlider (detail::kSaturateSliderText,
parameterID (VParameter::saturation),
processor.treeState)
, valentineLogo (
juce::Drawable::createFromImageData (BinaryData::valentine_logo_black_svg,
BinaryData::valentine_logo_black_svgSize))
, valentineTblLogo (
juce::Drawable::createFromImageData (BinaryData::val_totebag_logo_svg,
BinaryData::val_totebag_logo_svgSize))
, ratioSlider (detail::kRatioSliderText,
parameterID (VParameter::ratio),
processor.treeState)
Expand All @@ -63,7 +63,7 @@ CenterPanel::CenterPanel (ValentineAudioProcessor& processor)
addAndMakeVisible (compressSlider);
addAndMakeVisible (saturateEnableButton);
addAndMakeVisible (saturateSlider);
addAndMakeVisible (valentineLogo.get());
addAndMakeVisible (valentineTblLogo.get());
addAndMakeVisible (ratioSlider);
addAndMakeVisible (attackSlider);
addAndMakeVisible (releaseSlider);
Expand Down Expand Up @@ -158,7 +158,7 @@ void CenterPanel::resized()
topRowComponents.removeFromLeft (juce::roundToInt (logoWidth))
.removeFromTop (juce::roundToInt (logoHeight));

valentineLogo->setTransformToFit (
valentineTblLogo->setTransformToFit (
valentineLogoBounds.toFloat(),
juce::RectanglePlacement (juce::RectanglePlacement::centred
| juce::RectanglePlacement::fillDestination));
Expand Down
2 changes: 1 addition & 1 deletion src/gui/panels/ValentineCenterPanel.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class CenterPanel : public juce::Component
ToggleButton saturateEnableButton;
LabelSlider saturateSlider;

std::unique_ptr<juce::Drawable> valentineLogo;
std::unique_ptr<juce::Drawable> valentineTblLogo;

LabelSlider ratioSlider;
LabelSlider attackSlider;
Expand Down

0 comments on commit 948c085

Please sign in to comment.