Skip to content

Commit

Permalink
Set background color to light gray so that the scalebar is more visible
Browse files Browse the repository at this point in the history
  • Loading branch information
smistad committed Sep 4, 2023
1 parent de6e674 commit b9aa346
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/gui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,10 @@ void MainWindow::updateAppTitleReceived(std::string title_suffix)
}

void MainWindow::createOpenGLWindow() {
float OpenGL_background_color = 0.0f; //0.0f; //200.0f / 255.0f;
view = createView();

view->set2DMode();
view->setBackgroundColor(Color(OpenGL_background_color, OpenGL_background_color, OpenGL_background_color)); // setting color to the background, around the WSI
view->setBackgroundColor(Color(0.9, 0.9, 0.9)); // setting color to the background, around the WSI
view->setAutoUpdateCamera(true);
view->setScalebar(true);

Expand Down

0 comments on commit b9aa346

Please sign in to comment.