-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d4a1e6c
commit 43be73a
Showing
6 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// | ||
// Created by arden on 7/18/23. | ||
// | ||
|
||
#include "TitlePanel.h" | ||
|
||
TitlePanel::TitlePanel (juce::AudioProcessorValueTreeState& p) : StageWindow(p) {} | ||
|
||
TitlePanel::~TitlePanel() | ||
{ | ||
} | ||
|
||
|
||
void TitlePanel::paint (juce::Graphics& g) | ||
{ | ||
auto inner_rect = draw_beveled_rectangle(g, getLocalBounds(), true); | ||
auto gradient = juce::ColourGradient::horizontal(juce::Colours::darkblue, | ||
juce::Colours::lightblue, | ||
inner_rect); | ||
g.setGradientFill(gradient); | ||
g.fillRect(inner_rect); | ||
|
||
|
||
g.setColour (juce::Colours::white); | ||
g.setFont(title_font); | ||
g.drawText ("Maim", inner_rect, | ||
juce::Justification::centredLeft, true); | ||
} | ||
|
||
void TitlePanel::resized() | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// Created by arden on 7/18/23. | ||
// | ||
|
||
#ifndef MAIM_TITLEPANEL_H | ||
#define MAIM_TITLEPANEL_H | ||
|
||
#include "StageWindow.h" | ||
|
||
class TitlePanel : public StageWindow | ||
{ | ||
public: | ||
TitlePanel (juce::AudioProcessorValueTreeState& p); | ||
~TitlePanel(); | ||
void paint (juce::Graphics& g) override; | ||
void resized() override; | ||
|
||
private: | ||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (TitlePanel) | ||
}; | ||
|
||
#endif //MAIM_TITLEPANEL_H |