Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions smexoscope/Source/PluginEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,14 @@ void SmexoscopeEditor::updateLabels()
threshLabel->setText(processorRef.getDisplayText(SmexoscopeProcessor::PARAM_TRIGGER_LIMIT), juce::dontSendNotification);
}

bool SmexoscopeEditor::keyPressed(const juce::KeyPress&)
void SmexoscopeEditor::mouseDown (const juce::MouseEvent& event)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only annoying thing is the region you can click in is not the entire window, but honestly, it doesn't seem to matter in practise.

{
useDarkSkin = !useDarkSkin;
processorRef.useDarkSkin = useDarkSkin;
applySkin(useDarkSkin);
return true;
if (event.getNumberOfClicks() == 2)
{
useDarkSkin = !useDarkSkin;
processorRef.useDarkSkin = useDarkSkin;
applySkin(useDarkSkin);
}
}

void SmexoscopeEditor::applySkin(bool dark)
Expand Down
2 changes: 1 addition & 1 deletion smexoscope/Source/PluginEditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class SmexoscopeEditor : public juce::AudioProcessorEditor,

void paint(juce::Graphics&) override;
void resized() override {}
bool keyPressed(const juce::KeyPress& key) override;
void mouseDown (const juce::MouseEvent& event) override;

private:
void timerCallback() override;
Expand Down
Loading