diff --git a/src/host/setup/HostSetup.cpp b/src/host/setup/HostSetup.cpp index fa773ae0..d85b52c7 100644 --- a/src/host/setup/HostSetup.cpp +++ b/src/host/setup/HostSetup.cpp @@ -183,6 +183,8 @@ int HostSetup::run(int argc, char** argv) "Portions Copyright (c) 2015-2021 by Jonathan Naylor, G4KLX and others\r\n" \ ">> Modem Setup\r\n"); + finalcut::FApplication::setColorTheme(); + // setup the finalcut tui SetupApplication app{this, argc, argv}; @@ -248,7 +250,6 @@ int HostSetup::run(int argc, char** argv) // show and start the application setupWnd.show(); - finalcut::FApplication::setColorTheme(); app.resetColors(); app.redraw(); return app.exec(); diff --git a/src/monitor/MonitorMain.cpp b/src/monitor/MonitorMain.cpp index 36cb43ae..372fff6e 100644 --- a/src/monitor/MonitorMain.cpp +++ b/src/monitor/MonitorMain.cpp @@ -200,6 +200,8 @@ int main(int argc, char** argv) ::fatal("cannot read the configuration file - %s (%s)", g_iniFile.c_str(), e.message()); } + finalcut::FApplication::setColorTheme(); + // setup the finalcut tui MonitorApplication app{argc, argv}; @@ -234,7 +236,6 @@ int main(int argc, char** argv) // show and start the application wnd.show(); - finalcut::FApplication::setColorTheme(); app.resetColors(); app.redraw(); diff --git a/src/peered/PeerEdMain.cpp b/src/peered/PeerEdMain.cpp index 116ad27c..9792ccbd 100644 --- a/src/peered/PeerEdMain.cpp +++ b/src/peered/PeerEdMain.cpp @@ -200,6 +200,8 @@ int main(int argc, char** argv) ::fatal("cannot read the configuration file - %s (%s)", g_iniFile.c_str(), e.message()); } + finalcut::FApplication::setColorTheme(); + // setup the finalcut tui PeerEdApplication app{argc, argv}; @@ -215,7 +217,6 @@ int main(int argc, char** argv) // show and start the application wnd.show(); - finalcut::FApplication::setColorTheme(); app.resetColors(); app.redraw(); diff --git a/src/sysview/SysViewMain.cpp b/src/sysview/SysViewMain.cpp index 1572e21b..8362492d 100644 --- a/src/sysview/SysViewMain.cpp +++ b/src/sysview/SysViewMain.cpp @@ -1208,6 +1208,8 @@ int main(int argc, char** argv) if (!Thread::runAsThread(nullptr, threadNetworkPump)) return EXIT_FAILURE; + finalcut::FApplication::setColorTheme(); + // setup the finalcut tui SysViewApplication* app = nullptr; SysViewMainWnd* wnd = nullptr; @@ -1273,7 +1275,6 @@ int main(int argc, char** argv) // show and start the application wnd->show(); - finalcut::FApplication::setColorTheme(); app->resetColors(); app->redraw(); diff --git a/src/tged/TGEdMain.cpp b/src/tged/TGEdMain.cpp index d8fc5a08..744c5cf8 100644 --- a/src/tged/TGEdMain.cpp +++ b/src/tged/TGEdMain.cpp @@ -200,6 +200,8 @@ int main(int argc, char** argv) ::fatal("cannot read the configuration file - %s (%s)", g_iniFile.c_str(), e.message()); } + finalcut::FApplication::setColorTheme(); + // setup the finalcut tui TGEdApplication app{argc, argv}; @@ -215,7 +217,6 @@ int main(int argc, char** argv) // show and start the application wnd.show(); - finalcut::FApplication::setColorTheme(); app.resetColors(); app.redraw();