Skip to content

Commit

Permalink
[fix] Fix the background color of the export dialog (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
christofmuc committed Feb 13, 2024
1 parent 274da22 commit 3b63cf4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions The-Orm/ExportDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ static std::function<void(midikraft::Librarian::ExportParameters)> sCallback_;
ExportDialog::ExportDialog()
{
// Properties to edit...
props_.push_back(std::make_shared<TypedNamedValue>(TypedNamedValue("Sysex format", "Export options", midikraft::Librarian::PROGRAM_DUMPS,
props_.push_back(std::make_shared<TypedNamedValue>(TypedNamedValue("Sysex format", "", midikraft::Librarian::PROGRAM_DUMPS,
{ {midikraft::Librarian::PROGRAM_DUMPS, "Sysex format individual program dumps"}, { midikraft::Librarian::EDIT_BUFFER_DUMPS, "Sysex format individual edit buffer dumps" } })));
props_.push_back(std::make_shared<TypedNamedValue>(TypedNamedValue("File format", "Export options", midikraft::Librarian::MANY_FILES,
props_.push_back(std::make_shared<TypedNamedValue>(TypedNamedValue("File format", "", midikraft::Librarian::MANY_FILES,
{ {midikraft::Librarian::MANY_FILES, "Each patch separately into a file"}, { midikraft::Librarian::ZIPPED_FILES, "Each patch separately into a file, but all zipped up" },
{ midikraft::Librarian::ONE_FILE, "One sysex file with all messages" }, { midikraft::Librarian::MID_FILE, "One MIDI file (SMF) to play from a player or DAW" } })));

Expand Down Expand Up @@ -66,7 +66,6 @@ void ExportDialog::showExportDialog(Component *centeredAround, std::string const
launcher.componentToCentreAround = centeredAround;
launcher.dialogTitle = title;
launcher.useNativeTitleBar = false;
launcher.dialogBackgroundColour = Colours::black;
sWindow_ = launcher.launchAsync();
ModalComponentManager::getInstance()->attachCallback(sWindow_, ModalCallbackFunction::forComponent(dialogClosed, sExportDialog_.get()));

Expand Down

0 comments on commit 3b63cf4

Please sign in to comment.