Skip to content

Commit

Permalink
Merge pull request #4 from rafaeldatarock/development
Browse files Browse the repository at this point in the history
Acceptable interface
  • Loading branch information
rafaeldatarock authored Jun 13, 2022
2 parents f56cc23 + bbce772 commit 9e4a954
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
25 changes: 21 additions & 4 deletions Source/PluginEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,24 @@ UltiknobAudioProcessorEditor::~UltiknobAudioProcessorEditor()
void UltiknobAudioProcessorEditor::paint (juce::Graphics& g)
{
// (Our component is opaque, so we must completely fill the background with a solid colour)
g.fillAll (getLookAndFeel().findColour (juce::ResizableWindow::backgroundColourId));

g.setColour (juce::Colours::white);
getLookAndFeel().setColour(0, juce::Colour(55, 55, 55)); // Gunmetal
getLookAndFeel().setColour(1, juce::Colour(67, 80, 88)); // Charcoal
getLookAndFeel().setColour(2, juce::Colour(132, 140, 142)); // Grey
getLookAndFeel().setColour(3, juce::Colour(255, 255, 255)); // White
getLookAndFeel().setColour(10, juce::Colour(252, 194, 0)); // Yellow
getLookAndFeel().setColour(11, juce::Colour(211, 78, 36)); // Dark Orange
getLookAndFeel().setColour(20, juce::Colour(20, 20, 20)); // Black

getLookAndFeel().setColour(juce::Slider::thumbColourId, getLookAndFeel().findColour(10));
getLookAndFeel().setColour(juce::Slider::trackColourId, getLookAndFeel().findColour(2));
getLookAndFeel().setColour(juce::Slider::backgroundColourId, getLookAndFeel().findColour(0));
getLookAndFeel().setColour(juce::Slider::rotarySliderOutlineColourId, getLookAndFeel().findColour(0));
getLookAndFeel().setColour(juce::Slider::rotarySliderFillColourId, getLookAndFeel().findColour(2));

g.setColour(getLookAndFeel().findColour(20));
g.fillRect(getLocalBounds());

g.setColour (getLookAndFeel().findColour (3));
g.setFont (48.f);
g.drawFittedText("Ultiknob", logoArea, juce::Justification::centred, 1);

Expand All @@ -70,7 +85,9 @@ void UltiknobAudioProcessorEditor::resized()
// subcomponents in your editor..

auto bounds = getLocalBounds();
logoArea = bounds.removeFromTop(bounds.getHeight() * 0.30);
bounds.removeFromLeft(bounds.getWidth() * 0.08);
bounds.removeFromRight(bounds.getWidth() * 0.08);
logoArea = bounds.removeFromTop(bounds.getHeight() * 0.25);
footerArea = bounds.removeFromBottom(bounds.getHeight() * 0.20);

dirtyMode.setBounds(bounds.removeFromBottom(bounds.getHeight() * 0.20));
Expand Down
2 changes: 1 addition & 1 deletion Ultiknob.jucer
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<VS2019 targetFolder="Builds/VisualStudio2019">
<CONFIGURATIONS>
<CONFIGURATION isDebug="1" name="Debug" targetName="Ultiknob"/>
<CONFIGURATION isDebug="0" name="Release" targetName="Ultiknob"/>
<CONFIGURATION isDebug="0" name="Release" targetName="Ultiknob" useRuntimeLibDLL="0"/>
</CONFIGURATIONS>
<MODULEPATHS>
<MODULEPATH id="juce_audio_basics" path="../JUCE-master/modules"/>
Expand Down

0 comments on commit 9e4a954

Please sign in to comment.