Skip to content

Commit

Permalink
Added Darkstyle theme to macOS edit and view code.
Browse files Browse the repository at this point in the history
  • Loading branch information
alanspencer committed Apr 12, 2020
1 parent 77c47d7 commit 5861f95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions SPIERSedit/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ int main(int argc, char *argv[])
{
class main a(argc, argv);

//Style program with our dark style
QApplication::setStyle(new DarkStyleTheme);

NetModule n;
n.checkForNew();

Expand Down
5 changes: 2 additions & 3 deletions SPIERSview/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ int main(int argc, char *argv[])
surfaceFormat.setMinorVersion(GL_MINOR_MAC);
surfaceFormat.setRenderableType(QSurfaceFormat::OpenGL);
surfaceFormat.setProfile(QSurfaceFormat::CoreProfile);
//surfaceFormat.setOption(QSurfaceFormat::DebugContext);
QSurfaceFormat::setDefaultFormat(surfaceFormat);

// Set to allow the OpenGL context (ie. the same threads) to be shared between normal and full screen mode
Expand All @@ -240,8 +239,8 @@ int main(int argc, char *argv[])
// Create main class
class main app(argc, argv);

// Install the message handler to log to file
//qInstallMessageHandler(logMessageOutput);
//Style program with our dark style
QApplication::setStyle(new DarkStyleTheme);

// Check for any version updates
NetModule netModule;
Expand Down

0 comments on commit 5861f95

Please sign in to comment.