Skip to content

Commit

Permalink
Update lookAndFeel of refresh progress window
Browse files Browse the repository at this point in the history
  • Loading branch information
jsiegle committed Nov 8, 2024
1 parent b6bab03 commit 221306e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Source/NeuropixEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,13 @@ BackgroundLoaderWithProgressWindow::BackgroundLoaderWithProgressWindow (Neuropix
: ThreadWithProgressWindow ("Re-scanning Neuropixels devices", true, false),
BackgroundLoader (thread_, editor_)
{
progressWindowLookAndFeel = std::make_unique<LookAndFeel_V4>();
progressWindowLookAndFeel->setColour (AlertWindow::backgroundColourId, Colour (0xffededed));
progressWindowLookAndFeel->setColour (AlertWindow::textColourId, Colours::black);
progressWindowLookAndFeel->setColour (AlertWindow::outlineColourId, Colour (0xff666666));
progressWindowLookAndFeel->setColour (ProgressBar::backgroundColourId, Colours::lightgrey);
progressWindowLookAndFeel->setColour (ProgressBar::foregroundColourId, Colours::orange);
getAlertWindow()->setLookAndFeel (progressWindowLookAndFeel.get());
}

void BackgroundLoaderWithProgressWindow::updateProbeMap()
Expand Down
3 changes: 3 additions & 0 deletions Source/NeuropixEditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@ class BackgroundLoaderWithProgressWindow : public ThreadWithProgressWindow,

/** Updates the probe map */
void updateProbeMap();

private:
std::unique_ptr<LookAndFeel_V4> progressWindowLookAndFeel;
};


Expand Down

0 comments on commit 221306e

Please sign in to comment.